Initial commit, fixes bug 172791, thanks for the ebuild to sera from #gentoo-java
authorThomas Sachau <tommy@gentoo.org>
Sun, 31 Jul 2011 14:21:09 +0000 (14:21 +0000)
committerThomas Sachau <tommy@gentoo.org>
Sun, 31 Jul 2011 14:21:09 +0000 (14:21 +0000)
Package-Manager: portage-2.2.0_alpha47-r1/cvs/Linux x86_64

dev-java/commons-compress/ChangeLog [new file with mode: 0644]
dev-java/commons-compress/Manifest [new file with mode: 0644]
dev-java/commons-compress/commons-compress-1.1.ebuild [new file with mode: 0644]
dev-java/commons-compress/files/MANIFEST.MF [new file with mode: 0644]
dev-java/commons-compress/files/build.xml [new file with mode: 0644]
dev-java/commons-compress/metadata.xml [new file with mode: 0644]

diff --git a/dev-java/commons-compress/ChangeLog b/dev-java/commons-compress/ChangeLog
new file mode 100644 (file)
index 0000000..711b005
--- /dev/null
@@ -0,0 +1,15 @@
+# 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 $
+
+  31 Jul 2011; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+  +commons-compress-1.1.ebuild, +files/MANIFEST.MF, +files/build.xml,
+  +metadata.xml:
+  Initial commit, fixes bug 172791, thanks for the ebuild to sera from
+  #gentoo-java
+
+*commons-compress-1.1 (24 Jul 2011)
+
+  24 Jul 2011; Ralph Sennhauser <gentoo.sera@bluewin.ch>
+  +commons-cpmpress-1.1.ebuild:
+  Initial package
diff --git a/dev-java/commons-compress/Manifest b/dev-java/commons-compress/Manifest
new file mode 100644 (file)
index 0000000..a2ec4c6
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX MANIFEST.MF 1222 RMD160 539897b5099e6d6c86155967dd3b04e751a893e5 SHA1 fd4ea98ed388c2e03369a5897fb64ad756682cb1 SHA256 ba7f4de845c9c5d1df55ce434be9b89f79081f15e1d77643f52d98330bb40d9d
+AUX build.xml 11340 RMD160 b6b44d4a6dc14b4324e235c885d98fc4ba4e64ef SHA1 f731d8e07a5ddd7ae8256f0ff1b5f31bc327ec5e SHA256 d22d5efb3d31b41e9283cfbf4f8cca12f97051dc7f681be03100addf4dc68d2d
+DIST commons-compress-1.1-src.tar.gz 398593 RMD160 1bbad9b2cef8f008dee4e33d8368bf3706fd4163 SHA1 fd728ec4374380831dc906b27d77b589b555a791 SHA256 1d22ea33d50fa5cafdf3ce86136021b3c66ea02d6d66ff5223b60799fd37ed34
+EBUILD commons-compress-1.1.ebuild 1277 RMD160 75b20dc64b10e78de0c82be9bc3a4c8edfeafaf5 SHA1 e6c9191792d319e1929995b9466a89420e2e469b SHA256 54b01de890c3de9aed43f3883139d2fba057ce31733c22c441070f5e04ee13aa
+MISC ChangeLog 599 RMD160 8c74d1035bcfca9785aa72bba5441ca1e535256d SHA1 0bdd9408609c49191bd1ed6d605668b536bc5558 SHA256 c40034208b0ffb4579494fe076fed7e02b64fe0e59f28ad8a06f4bc704fe1b0f
+MISC metadata.xml 265 RMD160 8391b845c1dc290dbfc6d8391aed1e0537e14725 SHA1 98eb1209de8c64009ada779e9c4b57f0b8273c41 SHA256 02b8c461c4f564f9a88d09d6e5d6cb1018b06173aa6b0fb4f188664b00f057fa
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iJwEAQECAAYFAk41ZOAACgkQG7kqcTWJkGengQP+NfRHMJubEYj1eYzo3tNo4bVZ
+K5pDMOj7ucabUq/KnzD3PEEXAUKTocE9gxIeTO6UxDrx0kIMl2B6PxkvTz+yRa66
+tUm419WvsBoefGIzZ9gaesNtr97m9m8ETVlQNn88u7hE7BhqFj4nztQAf29SY+4s
+FeoFnteehbXEzlkCwrw=
+=aTzl
+-----END PGP SIGNATURE-----
diff --git a/dev-java/commons-compress/commons-compress-1.1.ebuild b/dev-java/commons-compress/commons-compress-1.1.ebuild
new file mode 100644 (file)
index 0000000..78ede3f
--- /dev/null
@@ -0,0 +1,49 @@
+# 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.1.ebuild,v 1.1 2011/07/31 14:21:09 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.4"
+DEPEND=">=virtual/jdk-1.4
+       test? ( dev-java/ant-junit:0 )"
+
+S="${WORKDIR}/${P}-src"
+
+JAVA_ANT_BSFIX_EXTRA_ARGS="--maven-cleaning"
+EANT_BUILD_TARGET="compile package"
+
+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() {
+       java-pkg_jarfrom junit
+       EANT_TEST_TARGET="compile-tests test"
+       java-pkg-2_src_test
+}
+
+src_install() {
+       java-pkg_newjar target/${P}.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 (file)
index 0000000..ab91795
--- /dev/null
@@ -0,0 +1,24 @@
+Manifest-Version: 1.0\r
+Export-Package: org.apache.commons.compress.changes;version="1.1",org.\r
+ apache.commons.compress.archivers.ar;version="1.1",org.apache.commons\r
+ .compress.archivers.jar;version="1.1",org.apache.commons.compress.arc\r
+ hivers.cpio;version="1.1",org.apache.commons.compress.archivers.zip;v\r
+ ersion="1.1",org.apache.commons.compress.archivers;version="1.1",org.\r
+ apache.commons.compress.archivers.tar;version="1.1",org.apache.common\r
+ s.compress.compressors.bzip2;version="1.1",org.apache.commons.compres\r
+ s.compressors;version="1.1",org.apache.commons.compress.utils;version\r
+ ="1.1",org.apache.commons.compress.compressors.gzip;version="1.1"\r
+Tool: Bnd-0.0.255\r
+Bundle-Name: Commons Compress\r
+Created-By: 1.7.0-ea (Oracle Corporation)\r
+Bundle-Vendor: The Apache Software Foundation\r
+Bundle-Version: 1.1\r
+Bnd-LastModified: 1311506267618\r
+Bundle-ManifestVersion: 2\r
+Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt\r
+Bundle-Description: Commons Compress defines an API for working with c\r
+ ompression and archive formats.  These include: bzip2, gzip and ar, c\r
+ pio, jar, tar, zip.\r
+Bundle-SymbolicName: org.apache.commons.compress\r
+Bundle-DocURL: http://commons.apache.org/compress/\r
+\r
diff --git a/dev-java/commons-compress/files/build.xml b/dev-java/commons-compress/files/build.xml
new file mode 100644 (file)
index 0000000..f42093f
--- /dev/null
@@ -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 (file)
index 0000000..22b5125
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer>
+               <email>tommy@gentoo.org</email>
+               <name>Thomas Sachau (Tommy[D])</name>
+       </maintainer>
+       <herd>no-herd</herd>
+</pkgmetadata>
+