1 |
fordfrog 08/06/21 17:36:41 |
2 |
|
3 |
Added: commons-collections-3.2.1.ebuild |
4 |
Log: |
5 |
Version bump. |
6 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r5 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-java/commons-collections/commons-collections-3.2.1.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-collections/commons-collections-3.2.1.ebuild?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-collections/commons-collections-3.2.1.ebuild?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: commons-collections-3.2.1.ebuild |
15 |
=================================================================== |
16 |
# Copyright 1999-2008 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-collections/commons-collections-3.2.1.ebuild,v 1.1 2008/06/21 17:36:41 fordfrog Exp $ |
19 |
|
20 |
JAVA_PKG_IUSE="doc source test" |
21 |
|
22 |
inherit java-pkg-2 java-ant-2 eutils |
23 |
|
24 |
DESCRIPTION="Jakarta-Commons Collections Component" |
25 |
HOMEPAGE="http://jakarta.apache.org/commons/collections/" |
26 |
SRC_URI="mirror://apache/jakarta/${PN/-//}/source/${P}-src.tar.gz" |
27 |
|
28 |
LICENSE="Apache-2.0" |
29 |
SLOT="0" |
30 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
31 |
IUSE="test-framework" |
32 |
|
33 |
COMMON_DEP="test-framework? ( =dev-java/junit-3.8* )" |
34 |
DEPEND=">=virtual/jdk-1.4 |
35 |
test? ( dev-java/ant-junit ) |
36 |
${COMMON_DEP}" |
37 |
RDEPEND=">=virtual/jre-1.4 |
38 |
${COMMON_DEP}" |
39 |
|
40 |
S="${WORKDIR}/${P}-src" |
41 |
|
42 |
src_compile() { |
43 |
local antflags |
44 |
if use test-framework; then |
45 |
antflags="tf.jar -Djunit.jar=$(java-pkg_getjars junit)" |
46 |
#no support for installing two sets of javadocs via dojavadoc atm |
47 |
#use doc && antflags="${antflags} tf.javadoc" |
48 |
fi |
49 |
eant jar $(use_doc) ${antflags} |
50 |
} |
51 |
|
52 |
src_test() { |
53 |
if [[ "${ARCH}" = "ppc" ]]; then |
54 |
einfo "Tests are disabled on ppc" |
55 |
else |
56 |
ANT_TASKS="ant-junit" eant testjar -Djunit.jar="$(java-pkg_getjars junit)" |
57 |
fi |
58 |
} |
59 |
|
60 |
src_install() { |
61 |
java-pkg_newjar build/${P}.jar ${PN}.jar |
62 |
use test-framework && \ |
63 |
java-pkg_newjar build/${PN}-testframework-3.2.jar \ |
64 |
${PN}-testframework.jar |
65 |
|
66 |
dodoc README.txt || die |
67 |
java-pkg_dohtml *.html || die |
68 |
if use doc; then |
69 |
java-pkg_dojavadoc build/docs/apidocs |
70 |
#use test-framework && java-pkg_dojavadoc build/docs/testframework |
71 |
fi |
72 |
use source && java-pkg_dosrc src/java/* |
73 |
} |
74 |
|
75 |
|
76 |
|
77 |
-- |
78 |
gentoo-commits@l.g.o mailing list |