diff options
Diffstat (limited to 'dev-java/backport-util-concurrent/backport-util-concurrent-3.0-r1.ebuild')
-rw-r--r-- | dev-java/backport-util-concurrent/backport-util-concurrent-3.0-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-java/backport-util-concurrent/backport-util-concurrent-3.0-r1.ebuild b/dev-java/backport-util-concurrent/backport-util-concurrent-3.0-r1.ebuild new file mode 100644 index 000000000000..37d306bf7428 --- /dev/null +++ b/dev-java/backport-util-concurrent/backport-util-concurrent-3.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/backport-util-concurrent/backport-util-concurrent-3.0-r1.ebuild,v 1.1 2009/10/03 23:40:29 caster Exp $ + +JAVA_PKG_IUSE="doc source test" +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A backport of java.util.concurrent API, from Java 5.0, to 1.4, and from Java 6.0 to 5.0" +HOMEPAGE="http://www.mathcs.emory.edu/dcl/util/backport-util-concurrent/" +SRC_URI="http://dcl.mathcs.emory.edu/util/${PN}/dist/${P}/Java50/${PN}-Java50-${PV}-src.zip" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="" + +DEPEND="=virtual/jdk-1.5* + test? ( =dev-java/junit-3* ) + app-arch/unzip" +RDEPEND=">=virtual/jdk-1.5" + +S="${WORKDIR}/${P}-src" + +src_unpack() { + unpack ${A} + # This is just workaround because setting ${S} in pkg_setup doesn't currently + # work and this seems better than doing it in global scope + mv ${PN}-Java50-${PV}-src ${P}-src || die + cd "${S}" + + if use test; then + # make test not dependo n make + epatch "${FILESDIR}/${P}-test.patch" + else + # don't compile test classes + epatch "${FILESDIR}/${P}-notest.patch" + fi + + cd "${S}/external" + rm -v *.jar || die + + use test && java-pkg_jar-from --build-only junit +} + +EANT_BUILD_TARGET="javacompile archive" + +src_test() { + eant test +} + +src_install() { + java-pkg_dojar ${PN}.jar + dohtml README.html || die + + use doc && java-pkg_dojavadoc doc/api + use source && java-pkg_dosrc src/* +} |