diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/commons-compress |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/commons-compress')
-rw-r--r-- | dev-java/commons-compress/Manifest | 7 | ||||
-rw-r--r-- | dev-java/commons-compress/commons-compress-1.10.ebuild | 65 | ||||
-rw-r--r-- | dev-java/commons-compress/files/MANIFEST.MF | 24 | ||||
-rw-r--r-- | dev-java/commons-compress/files/build.xml | 269 | ||||
-rw-r--r-- | dev-java/commons-compress/metadata.xml | 8 |
5 files changed, 373 insertions, 0 deletions
diff --git a/dev-java/commons-compress/Manifest b/dev-java/commons-compress/Manifest new file mode 100644 index 000000000000..874024f53287 --- /dev/null +++ b/dev-java/commons-compress/Manifest @@ -0,0 +1,7 @@ +AUX MANIFEST.MF 1222 SHA256 ba7f4de845c9c5d1df55ce434be9b89f79081f15e1d77643f52d98330bb40d9d SHA512 048b09aa2ae2e20c8b5b0e116eb49fd680634e9b654d5026004e32a39bec4e5b669afcadea8338764a157f70cc0c3fdb5d2ce98513bfeae267be7ae02935381d WHIRLPOOL 7faa17713d3745d07310974a4a4f3faf7a999579754d75553886d692279412381d1f0a8cc7da30e0b45429222b13f128aad9141f887a568bc775b80a9cf78714 +AUX build.xml 11340 SHA256 d22d5efb3d31b41e9283cfbf4f8cca12f97051dc7f681be03100addf4dc68d2d SHA512 09abd59212021ac20fae760ce127546bde53e40e2ed0db26a0a93417c681e46b038d1940964e55fd46a8f7db44b5ea2666459d75358ee1dd5882895c803e0c89 WHIRLPOOL 1e003d0969e4900866f2dd6df0011efe3df1ba4a2f7a4c03afef8fb1803fcc47068b26cb31ba3cdfc842fb6d24b4f69ee3ae2b0ec9ebefc093abbf5133acc25b +DIST commons-compress-1.10-src.tar.gz 8528642 SHA256 049814de8a1e1548d9673e2a6e3b9b6e387910feefba8a877a13bfdad2046419 SHA512 1eee157134d861f49b735df02f028781ef86370d7d246cb8fbfc1f445427d5cdd753a9df7a78e760d53667c43ab5c37df315a1e36e845e5d308961ebe138d910 WHIRLPOOL 04bae895867aeb9d787c21ee7fdfa8e72aa1d40c3917f39476576a4858dacb190c091b007394cb11d58604815d54d373ea4fb7be05e83095684ef2e4802b6860 +EBUILD commons-compress-1.10.ebuild 1498 SHA256 e1248b6082ddb784417fff9cfa1812a941c59cbc538273f61c29522c2de71d6e SHA512 0a172dfe3c1026925fd92418085c1324e9fae506f85917e84fee68d9ee4fb38d38c8019c7730157deb2e3fea7ab241296ff74787be3e5a23c996f81267695537 WHIRLPOOL 28a648324639cc9efcae56dabcec3197ab369fe6fa02772e6e805b5edc6477dd3d63319cb504217980c034d5bb7fcddf4801da87b71991554d020b0d8fbdb53a +MISC ChangeLog 3613 SHA256 0310b79b38b629eea7f0ba298b6d7dd0e745995b2e251d88904e2bd594b62192 SHA512 8a96da9df7979e30cf3f1c5f1ad20b936444c5f31459be56f7220b737baaaf0c0f9907cd0d2cda2db3acdc4d0bc120e0ce19cabb7f817cf32628e905c8fb9dfb WHIRLPOOL 9a87b68b315b2ed60c5fe7adebf4c2b49904861a9ab3b1cf3f7353cd184b05ccb472a1b6a3341c7ff9c28836450181963e864156e5f7bf7dfc2b42cd6d6562d9 +MISC ChangeLog-2015 2340 SHA256 b5c54010b77ad512beccc2b93b2688d9d085176e47fa3558b9d367a98edf2181 SHA512 402f7434ae7403323ea42655bc167397410b38ce4a1b3d41c98212818d19702a9495c66f662b98d1a52e5547bacf08e90944c8b8c6b48fef1853d0de7d67b227 WHIRLPOOL 7f6300e01e2cd5b8526f032a7091e7151440ef23fe92438a2450f940008cc5d16794bd2f42752c570bb32db31a4635625db78a54c82e911ed32ec43803ffd0ad +MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac 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..5670329df835 --- /dev/null +++ b/dev-java/commons-compress/commons-compress-1.10.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java API for working with archive files" +HOMEPAGE="https://commons.apache.org/proper/commons-compress/" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" + +CDEPEND="dev-java/xz-java:0" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6 + 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/* +} diff --git a/dev-java/commons-compress/files/MANIFEST.MF b/dev-java/commons-compress/files/MANIFEST.MF new file mode 100644 index 000000000000..ab91795ef624 --- /dev/null +++ b/dev-java/commons-compress/files/MANIFEST.MF @@ -0,0 +1,24 @@ +Manifest-Version: 1.0
+Export-Package: org.apache.commons.compress.changes;version="1.1",org.
+ apache.commons.compress.archivers.ar;version="1.1",org.apache.commons
+ .compress.archivers.jar;version="1.1",org.apache.commons.compress.arc
+ hivers.cpio;version="1.1",org.apache.commons.compress.archivers.zip;v
+ ersion="1.1",org.apache.commons.compress.archivers;version="1.1",org.
+ apache.commons.compress.archivers.tar;version="1.1",org.apache.common
+ s.compress.compressors.bzip2;version="1.1",org.apache.commons.compres
+ s.compressors;version="1.1",org.apache.commons.compress.utils;version
+ ="1.1",org.apache.commons.compress.compressors.gzip;version="1.1"
+Tool: Bnd-0.0.255
+Bundle-Name: Commons Compress
+Created-By: 1.7.0-ea (Oracle Corporation)
+Bundle-Vendor: The Apache Software Foundation
+Bundle-Version: 1.1
+Bnd-LastModified: 1311506267618
+Bundle-ManifestVersion: 2
+Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
+Bundle-Description: Commons Compress defines an API for working with c
+ ompression and archive formats. These include: bzip2, gzip and ar, c
+ pio, jar, tar, zip.
+Bundle-SymbolicName: org.apache.commons.compress
+Bundle-DocURL: http://commons.apache.org/compress/
+
diff --git a/dev-java/commons-compress/files/build.xml b/dev-java/commons-compress/files/build.xml new file mode 100644 index 000000000000..f42093f83866 --- /dev/null +++ b/dev-java/commons-compress/files/build.xml @@ -0,0 +1,269 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- ====================================================================== --> +<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> +<!-- ====================================================================== --> + +<!-- ====================================================================== --> +<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> +<!-- ====================================================================== --> +<!-- --> +<!-- Any modifications will be overwritten. --> +<!-- --> +<!-- Generated by Maven Ant Plugin on 7/24/11 12:42 PM --> +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> +<!-- --> +<!-- ====================================================================== --> + +<project name="commons-compress-from-maven" default="package" basedir="."> + + <!-- ====================================================================== --> + <!-- Build environment properties --> + <!-- ====================================================================== --> + + <property file="${user.home}/.m2/maven.properties"/> + <property file="maven-build.properties"/> + + <property name="maven.build.finalName" value="commons-compress-1.1"/> + <property name="maven.build.dir" value="target"/> + <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> + <property name="maven.build.srcDir.0" value="src/main/java"/> + <property name="maven.build.resourceDir.0" value="."/> + <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> + <property name="maven.build.testDir.0" value="src/test/java"/> + <property name="maven.build.testResourceDir.0" value="src/test/resources"/> + <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> + <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> + + <property name="maven.repo.local" value="${user.home}/.m2/repository"/> + <property name="maven.settings.offline" value="false"/> + <property name="maven.settings.interactiveMode" value="true"/> + + <!-- ====================================================================== --> + <!-- Defining classpaths --> + <!-- ====================================================================== --> + + <path id="build.classpath"/> + <path id="build.test.classpath"> + <pathelement location="junit.jar"/> + </path> + + <!-- ====================================================================== --> + <!-- Cleaning up target --> + <!-- ====================================================================== --> + + <target name="clean" description="Clean the output directory"> + <delete dir="${maven.build.dir}"/> + </target> + + <!-- ====================================================================== --> + <!-- Compilation target --> + <!-- ====================================================================== --> + + <target name="compile" depends="get-deps" description="Compile the code"> + <mkdir dir="${maven.build.outputDir}"/> + <javac destdir="${maven.build.outputDir}" + encoding="iso-8859-1" + nowarn="false" + debug="true" + optimize="false" + deprecation="true" + target="1.4" + verbose="false" + fork="false" + source="1.4"> + <src> + <pathelement location="${maven.build.srcDir.0}"/> + </src> + <classpath refid="build.classpath"/> + </javac> + <mkdir dir="${maven.build.outputDir}/META-INF"/> + <copy todir="${maven.build.outputDir}/META-INF"> + <fileset dir="${maven.build.resourceDir.0}"> + <include name="NOTICE.txt"/> + <include name="LICENSE.txt"/> + </fileset> + </copy> + </target> + + <!-- ====================================================================== --> + <!-- Test-compilation target --> + <!-- ====================================================================== --> + + <target name="compile-tests" + depends="compile" + description="Compile the test code" + unless="maven.test.skip"> + <mkdir dir="${maven.build.testOutputDir}"/> + <javac destdir="${maven.build.testOutputDir}" + encoding="iso-8859-1" + nowarn="false" + debug="true" + optimize="false" + deprecation="true" + target="1.4" + verbose="false" + fork="false" + source="1.4"> + <src> + <pathelement location="${maven.build.testDir.0}"/> + </src> + <classpath> + <path refid="build.test.classpath"/> + <pathelement location="${maven.build.outputDir}"/> + </classpath> + </javac> + <copy todir="${maven.build.testOutputDir}"> + <fileset dir="${maven.build.testResourceDir.0}"/> + </copy> + </target> + + <!-- ====================================================================== --> + <!-- Run all tests --> + <!-- ====================================================================== --> + + <target name="test" + depends="compile-tests, junit-missing" + unless="junit.skipped" + description="Run the test cases"> + <mkdir dir="${maven.test.reports}"/> + <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> + <sysproperty key="basedir" value="."/> + <formatter type="xml"/> + <formatter type="plain" usefile="false"/> + <classpath> + <path refid="build.test.classpath"/> + <pathelement location="${maven.build.outputDir}"/> + <pathelement location="${maven.build.testOutputDir}"/> + </classpath> + <batchtest todir="${maven.test.reports}" unless="test"> + <fileset dir="${maven.build.testDir.0}"> + <include name="**/Test*.java"/> + <include name="**/*Test.java"/> + <include name="**/*TestCase.java"/> + <exclude name="**/*Abstract*Test.java"/> + <exclude name="**/*Abstract*TestCase.java"/> + </fileset> + </batchtest> + <batchtest todir="${maven.test.reports}" if="test"> + <fileset dir="${maven.build.testDir.0}"> + <include name="**/${test}.java"/> + <exclude name="**/*Abstract*Test.java"/> + <exclude name="**/*Abstract*TestCase.java"/> + </fileset> + </batchtest> + </junit> + </target> + + <target name="test-junit-present"> + <available classname="junit.framework.Test" property="junit.present"/> + </target> + + <target name="test-junit-status" + depends="test-junit-present"> + <condition property="junit.missing"> + <and> + <isfalse value="${junit.present}"/> + <isfalse value="${maven.test.skip}"/> + </and> + </condition> + <condition property="junit.skipped"> + <or> + <isfalse value="${junit.present}"/> + <istrue value="${maven.test.skip}"/> + </or> + </condition> + </target> + + <target name="junit-missing" + depends="test-junit-status" + if="junit.missing"> + <echo>=================================== WARNING ===================================</echo> + <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> + <echo>===============================================================================</echo> + </target> + + <!-- ====================================================================== --> + <!-- Javadoc target --> + <!-- ====================================================================== --> + + <target name="javadoc" description="Generates the Javadoc of the application"> + <javadoc sourcepath="${maven.build.srcDir.0}" + packagenames="*" + destdir="${maven.reporting.outputDirectory}/apidocs" + access="protected" + old="false" + verbose="false" + encoding="iso-8859-1" + version="true" + use="true" + author="true" + splitindex="false" + nodeprecated="false" + nodeprecatedlist="false" + notree="false" + noindex="false" + nohelp="false" + nonavbar="false" + serialwarn="false" + charset="ISO-8859-1" + source="1.4" + linksource="true" + breakiterator="false"> + <link href="http://java.sun.com/javase/6/docs/api/"/> + <tag name="Immutable" + description="This class is immutable"/> + <tag name="NotThreadSafe" + description="This class is not thread-safe"/> + <tag name="ThreadSafe" + description="This class is thread-safe"/> + </javadoc> + </target> + + <!-- ====================================================================== --> + <!-- Package target --> + <!-- ====================================================================== --> + + <target name="package" depends="compile,test" description="Package the application"> + <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" + compress="true" + index="false" + manifest="target/osgi/MANIFEST.MF" + basedir="${maven.build.outputDir}" + excludes="**/package.html"> + </jar> + </target> + + <!-- ====================================================================== --> + <!-- A dummy target for the package named after the type it creates --> + <!-- ====================================================================== --> + + <target name="jar" depends="package" description="Builds the jar for the application"/> + + <!-- ====================================================================== --> + <!-- Download dependencies target --> + <!-- ====================================================================== --> + + <target name="test-offline"> + <condition property="maven.mode.offline"> + <equals arg1="${maven.settings.offline}" arg2="true"/> + </condition> + </target> + + <target name="get-deps" + depends="test-offline" + description="Download all dependencies" + unless="maven.mode.offline"> + <mkdir dir="${maven.repo.local}"/> + <mkdir dir="${maven.repo.local}/junit/junit/3.8.2"/> + <get src="http://repository.apache.org/snapshots/junit/junit/3.8.2/junit-3.8.2.jar" + dest="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar" + dest="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar" + usetimestamp="false" + ignoreerrors="true"/> + </target> + +</project> diff --git a/dev-java/commons-compress/metadata.xml b/dev-java/commons-compress/metadata.xml new file mode 100644 index 000000000000..2444066aa02b --- /dev/null +++ b/dev-java/commons-compress/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> +</maintainer> +</pkgmetadata> |