diff options
author | Thomas Sachau <tommy@gentoo.org> | 2011-12-23 14:06:14 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2011-12-23 14:06:14 +0000 |
commit | 6ad1a1dc35f581525d0379db6698bff06b3258d5 (patch) | |
tree | c7555b819f78207397b37a441cd3363a9178e9e0 /dev-java/commons-compress | |
parent | Version bump. (diff) | |
download | gentoo-2-6ad1a1dc35f581525d0379db6698bff06b3258d5.tar.gz gentoo-2-6ad1a1dc35f581525d0379db6698bff06b3258d5.tar.bz2 gentoo-2-6ad1a1dc35f581525d0379db6698bff06b3258d5.zip |
Version bump
(Portage version: 2.2.0_alpha81-r1/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/commons-compress')
-rw-r--r-- | dev-java/commons-compress/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/commons-compress/commons-compress-1.3.ebuild | 50 |
2 files changed, 57 insertions, 1 deletions
diff --git a/dev-java/commons-compress/ChangeLog b/dev-java/commons-compress/ChangeLog index 711b005ff6f9..5ef19b1e2477 100644 --- a/dev-java/commons-compress/ChangeLog +++ b/dev-java/commons-compress/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/commons-compress # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-compress/ChangeLog,v 1.1 2011/07/31 14:21:09 tommy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-compress/ChangeLog,v 1.2 2011/12/23 14:06:14 tommy Exp $ + +*commons-compress-1.3 (23 Dec 2011) + + 23 Dec 2011; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +commons-compress-1.3.ebuild: + Version bump 31 Jul 2011; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> +commons-compress-1.1.ebuild, +files/MANIFEST.MF, +files/build.xml, diff --git a/dev-java/commons-compress/commons-compress-1.3.ebuild b/dev-java/commons-compress/commons-compress-1.3.ebuild new file mode 100644 index 000000000000..f4561ad17af1 --- /dev/null +++ b/dev-java/commons-compress/commons-compress-1.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-compress/commons-compress-1.3.ebuild,v 1.1 2011/12/23 14:06:14 tommy Exp $ + +EAPI="4" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Commons Compress defines an API for working with ar, cpio, tar, zip, gzip and bzip2 files." + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.5" +DEPEND=">=virtual/jdk-1.5 + test? ( dev-java/junit:4 + dev-java/hamcrest-core )" + +S="${WORKDIR}/${P}-src" + +JAVA_ANT_BSFIX_EXTRA_ARGS="--maven-cleaning" +EANT_BUILD_TARGET="compile package" +EANT_TEST_GENTOO_CLASSPATH="junit-4 hamcrest-core" + +java_prepare() { + cp "${FILESDIR}"/build.xml . || die "Failed to copy build.xml" + + # osgi stuff mvn ant:ant doesn't handle + mkdir -p target/osgi || die "Failed to create target dir" + cp "${FILESDIR}"/MANIFEST.MF target/osgi/ || die "Failed to copy manifest" + + if ! use test; then + find -name "*.jar" -delete || die "Failed to remove test resources" + fi +} + +src_test() { + EANT_TEST_TARGET="compile-tests test" + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${PN}-1.1.jar + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/* +} |