diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-10-15 16:16:02 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-10-15 16:16:45 +0000 |
commit | 544d0c89b4a86a824fa9218649101c7d143ded75 (patch) | |
tree | a7294de95c12a956de3347eb2ff783f1d7780928 /dev-java/commons-compress | |
parent | dev-python/lockfile: Fix installation problems due to file renaming (diff) | |
download | gentoo-544d0c89b4a86a824fa9218649101c7d143ded75.tar.gz gentoo-544d0c89b4a86a824fa9218649101c7d143ded75.tar.bz2 gentoo-544d0c89b4a86a824fa9218649101c7d143ded75.zip |
dev-java/commons-compress: Version bump.
Package-Manager: portage-2.2.20.1
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/commons-compress')
-rw-r--r-- | dev-java/commons-compress/Manifest | 1 | ||||
-rw-r--r-- | dev-java/commons-compress/commons-compress-1.10.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-java/commons-compress/Manifest b/dev-java/commons-compress/Manifest index 3e5e50883991..521dda49159c 100644 --- a/dev-java/commons-compress/Manifest +++ b/dev-java/commons-compress/Manifest @@ -1 +1,2 @@ +DIST commons-compress-1.10-src.tar.gz 8528642 SHA256 049814de8a1e1548d9673e2a6e3b9b6e387910feefba8a877a13bfdad2046419 SHA512 1eee157134d861f49b735df02f028781ef86370d7d246cb8fbfc1f445427d5cdd753a9df7a78e760d53667c43ab5c37df315a1e36e845e5d308961ebe138d910 WHIRLPOOL 04bae895867aeb9d787c21ee7fdfa8e72aa1d40c3917f39476576a4858dacb190c091b007394cb11d58604815d54d373ea4fb7be05e83095684ef2e4802b6860 DIST commons-compress-1.8.1-src.tar.gz 8476056 SHA256 aa1221643331d9de5c8155b032c7fde23fc8cf3d962155092de89c44d4978412 SHA512 4e4f9633cc3c470970a8da41344a819ff63430a46e219e93896dbe2374738349f78942cff93ad8d348599cfc2dd7d014ae4ff3b09d76a924bb11ca1c4a2c05ea WHIRLPOOL 2d7f3230f47186a72b4b31efd10c5dfd68488d263e26d97b6e715b2b2eab3e22ae3e5946d232ca014aa2a3d14f3abf87ce97bf2e70c7c06788c4093df4156aef diff --git a/dev-java/commons-compress/commons-compress-1.10.ebuild b/dev-java/commons-compress/commons-compress-1.10.ebuild new file mode 100644 index 000000000000..53223291a330 --- /dev/null +++ b/dev-java/commons-compress/commons-compress-1.10.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +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" +HOMEPAGE="https://commons.apache.org/proper/commons-compress/" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CDEPEND="dev-java/xz-java:0" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.6 + ${CDEPEND} + test? ( + dev-java/junit:4 + dev-java/ant-junit:0 + dev-java/hamcrest-core:1.3 + )" + +S="${WORKDIR}/${P}-src" + +JAVA_ANT_BSFIX_EXTRA_ARGS="--maven-cleaning" +EANT_GENTOO_CLASSPATH="xz-java" +EANT_BUILD_TARGET="compile package" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4,hamcrest-core-1.3" + +# Dubious tests. +JAVA_RM_FILES=( + src/test/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestampTest.java +) + +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/* +} |