summaryrefslogtreecommitdiff
blob: f14d3c2acb798202dd6f0d7db42d5d2ac7be2ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/classworlds/classworlds-1.0-r3.ebuild,v 1.2 2008/03/22 22:53:18 betelgeuse Exp $

EAPI=1

inherit java-pkg-2 java-ant-2

DESCRIPTION="Advanced classloader framework"
HOMEPAGE="http://dist.codehaus.org/classworlds/distributions/classworlds-1.0-src.tar.gz"
SRC_URI="http://dist.codehaus.org/classworlds/distributions/${P}-src.tar.gz"
LICENSE="codehaus-classworlds"
SLOT="1"
KEYWORDS="amd64 ~ppc x86"
IUSE="doc"

RDEPEND=">=virtual/jre-1.4
	dev-java/xerces:2"
DEPEND=">=virtual/jdk-1.4
	${RDEPEND}"

# They fail
RESTRICT="test"

src_unpack() {
	unpack ${A}
	cp "${FILESDIR}/build-${PV}.xml" "${S}/build.xml" || die
	mkdir -p "${S}/target/lib"

	cd "${S}/target/lib"

	java-pkg_jar-from xerces-2
}

EANT_TEST_JUNIT_INTO="target/lib"

src_install() {
	java-pkg_newjar target/${P}.jar ${PN}.jar
	use doc && java-pkg_dojavadoc dist/docs/api
}