Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 496108 | Differences between
and this patch

Collapse All | Expand All

(-)commons-pool-1.6.ebuild (-7 / +17 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 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/commons-pool/commons-pool-1.6.ebuild,v 1.1 2013/08/12 18:00:41 tomwij Exp $
3
# $Header: $
4
4
5
EAPI="5"
5
EAPI="5"
6
6
Lines 8-40 Link Here
8
8
9
inherit eutils java-pkg-2 java-ant-2
9
inherit eutils java-pkg-2 java-ant-2
10
10
11
MY_PN="${PN}2"
12
MY_P="${MY_PN}-${PV}"
13
11
DESCRIPTION="Provides general purpose object pooling API"
14
DESCRIPTION="Provides general purpose object pooling API"
12
HOMEPAGE="http://commons.apache.org/pool/"
15
HOMEPAGE="http://commons.apache.org/pool/"
13
SRC_URI="mirror://apache/commons/pool/source/${P}-src.tar.gz"
16
SRC_URI="mirror://apache/commons/pool/source/${MY_PN}-${PV}-src.tar.gz"
14
17
15
LICENSE="Apache-2.0"
18
LICENSE="Apache-2.0"
16
SLOT="0"
19
SLOT="0"
17
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
20
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
18
21
19
RDEPEND=">=virtual/jre-1.5"
22
COMMON_DEP="dev-java/cglib:3
20
DEPEND=">=virtual/jdk-1.5
23
	dev-java/asm:4"
24
RDEPEND="${COMMON_DEP}
25
	>=virtual/jre-1.6"
26
DEPEND="${COMMON_DEP}
27
	>=virtual/jdk-1.6
21
	test? (
28
	test? (
22
		dev-java/ant-junit
29
		dev-java/ant-junit
23
		dev-java/junit:0
30
		dev-java/junit:0
24
	)"
31
	)"
25
32
26
S="${WORKDIR}/${P}-src"
33
S="${WORKDIR}/${MY_P}-src"
34
35
JAVA_ANT_REWRITE_CLASSPATH="yes"
27
36
28
EANT_BUILD_TARGET="build-jar"
37
EANT_BUILD_TARGET="build-jar"
38
EANT_GENTOO_CLASSPATH="cglib-3,asm-4"
29
39
30
src_test() {
40
src_test() {
31
	ANT_TASKS="ant-junit" eant -Dclasspath="$(java-pkg_getjars junit)" test
41
	ANT_TASKS="ant-junit" eant -Dclasspath="$(java-pkg_getjars junit)" test
32
}
42
}
33
43
34
src_install() {
44
src_install() {
35
	java-pkg_newjar dist/${P}-SNAPSHOT.jar
45
	java-pkg_newjar dist/${MY_P}.jar
36
	dodoc README.txt RELEASE-NOTES.txt
46
	dodoc README.txt RELEASE-NOTES.txt
37
47
38
	use doc && java-pkg_dojavadoc dist/docs/api
48
	use doc && java-pkg_dojavadoc dist/docs/api
39
	use source && java-pkg_dosrc src/java/org
49
	use source && java-pkg_dosrc src/main/java/org
40
}
50
}

Return to bug 496108