Lines 1-8
Link Here
|
1 |
# Copyright 1999-2010 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/cglib/cglib-2.2.ebuild,v 1.6 2010/04/24 17:47:55 grobian Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="4" |
6 |
JAVA_PKG_IUSE="test doc examples source" |
6 |
JAVA_PKG_IUSE="test doc examples source" |
7 |
|
7 |
|
8 |
inherit eutils java-pkg-2 java-ant-2 |
8 |
inherit eutils java-pkg-2 java-ant-2 |
Lines 11-54
Link Here
|
11 |
SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.jar" |
11 |
SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.jar" |
12 |
HOMEPAGE="http://cglib.sourceforge.net" |
12 |
HOMEPAGE="http://cglib.sourceforge.net" |
13 |
LICENSE="Apache-2.0" |
13 |
LICENSE="Apache-2.0" |
14 |
SLOT="2.2" |
14 |
SLOT="3" |
15 |
KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris" |
15 |
KEYWORDS="~amd64" |
16 |
COMMON_DEP="dev-java/asm:3 |
16 |
COMMON_DEP="dev-java/asm:4 |
17 |
>=dev-java/ant-core-1.7.0" |
17 |
>=dev-java/ant-core-1.7.0" |
18 |
RDEPEND=">=virtual/jre-1.4 |
18 |
RDEPEND=">=virtual/jre-1.5 |
19 |
${COMMON_DEP}" |
19 |
${COMMON_DEP}" |
20 |
DEPEND=">=virtual/jdk-1.4 |
20 |
DEPEND=">=virtual/jdk-1.5 |
21 |
app-arch/unzip |
21 |
app-arch/unzip |
22 |
test? ( dev-java/junit ) |
22 |
test? ( dev-java/junit:0 ) |
23 |
${COMMON_DEP}" |
23 |
${COMMON_DEP}" |
24 |
IUSE="" |
24 |
IUSE="" |
25 |
|
25 |
|
26 |
S=${WORKDIR} |
26 |
S=${WORKDIR} |
27 |
|
27 |
|
28 |
src_prepare() { |
28 |
JAVA_ANT_REWRITE_CLASSPATH="yes" |
29 |
epatch "${FILESDIR}/${P}-build.patch" |
29 |
EANT_GENTOO_CLASSPATH="asm-4 ant-core" |
30 |
# mem leak tests fail on ppc #284316 |
|
|
31 |
# assuming gc() guarantees to free all memory is wrong, so don't make them fail |
32 |
epatch "${FILESDIR}/${P}-no-leak-test.patch" |
33 |
|
30 |
|
34 |
cp "${FILESDIR}/words.txt" "${S}/src/test/net/sf/cglib/util/" |
31 |
java_prepare() { |
|
|
32 |
find . -iname '*.jar' -print0 | xargs -0 rm -v |
33 |
epatch "${FILESDIR}"/${P}-build.xml.patch |
35 |
} |
34 |
} |
36 |
|
35 |
|
37 |
src_unpack() { |
36 |
EANT_TEST_EXTRA_ARGS="-Dcglib.debugLocation=${T}/debug" |
38 |
unpack ${A} |
|
|
39 |
|
40 |
cd "${S}/lib" |
41 |
rm -v *.jar || die |
42 |
java-pkg_jar-from asm-3 asm.jar |
43 |
java-pkg_jar-from asm-3 asm-util.jar |
44 |
java-pkg_jar-from asm-3 asm-commons.jar |
45 |
java-pkg_jar-from ant-core ant.jar |
46 |
} |
47 |
|
48 |
EANT_TEST_JUNIT_INTO="lib" |
49 |
EANT_TEST_EXTRA_ARGS="-DdebugLocation=${T}/debug" |
50 |
|
37 |
|
51 |
src_test() { |
38 |
src_test() { |
|
|
39 |
mkdir "${T}/debug" |
40 |
cp -v "${FILESDIR}/words.txt" "${S}/src/test/net/sf/cglib/util/" |
52 |
java-pkg-2_src_test |
41 |
java-pkg-2_src_test |
53 |
} |
42 |
} |
54 |
|
43 |
|