diff options
Diffstat (limited to 'dev-java/commons-digester')
7 files changed, 512 insertions, 0 deletions
diff --git a/dev-java/commons-digester/Manifest b/dev-java/commons-digester/Manifest new file mode 100644 index 000000000000..7853c51edbf2 --- /dev/null +++ b/dev-java/commons-digester/Manifest @@ -0,0 +1,9 @@ +AUX 1.8.1-build.xml-jar-target.patch 1099 BLAKE2B e1ce425c943ebb36dd73447aa7d41c3fad20d22c75bc0d63d4137dd8be0afbeed4cf30a6ad48b24e5f3c9c1c018ce091c2a4d107aff8c62c161895c2bb78fcb8 SHA512 f28fd46608ca3817739ac4cdb07bf57ec28e0ebb22c3d086ef36567b44bb595b040dc27bb57a89f55568b8e4966b627f18829171908c14b4cced99787fc623c5 +AUX commons-digester-2.1-build.xml 12816 BLAKE2B 7309479a61897c3ecc28e6394714c1fb4691035f2f57f64f8dcccfab407a681e4ca2076ddf2cd783ec3bb0b726d38033b63c10444169d029fe39613ab0760c4c SHA512 f42f80e68e8b6d31b07add393e1adc1714278e9e8e6ccab08dfb6a131bdafeab1ae5c5859e81dabc5acff88d2151093d82a3e089293f653bcab307451839c0ef +DIST commons-digester-1.8.1-src.tar.gz 303266 BLAKE2B 618885c812a9bf40c080bc5736b8b4be4e18fe4d2f732d2a44d39369ae6cf3beb3af0cf500da3d103d7aa8c18b41b84d06907b6fc90f7f10d30840d6cfc83012 SHA512 0a39069662b4792d4856b79b5cedc2b44cb70303a19045d21c233d45ae4dde9e80662bd242a381e759d7cdb5adaf0b9fa6206bb8397b53348fa9eac12e9a4e96 +DIST commons-digester-2.1-src.tar.gz 304060 BLAKE2B 2360f6f8ab77b20ad6b4058e0437aa792bf3886ddec2e09b6db259bc142c070965ce066ef224e92fb91614075631a2af1358ae4b4fc065fe9118e1d2559bb9bb SHA512 6bdb63431ed1e17f5e8ba24951762750a0e59b70c76eabecbf13f5fe6974864825456beed615c8f2c16f9a2f1404f2e56bdbc3ba335656c3661d5f368c708b88 +DIST commons-digester3-3.2-src.tar.gz 324555 BLAKE2B 7b8bdaa70eeafb069e9ecbfe697ab86f5167ae3b9933e8aa306f0080de0ec99d12bd023067678b7b904329178f553fd6d4d98141ab329154a1c27385b33e449f SHA512 6d5ed9a1cc7612244747dcbd5c713349f27d63d1cef39fa368b4e91eaa3b1fe7043ab2fb498a73e8afde8081b8ff26a966e5b87b8b6dc68a3d907e9b25aa7cad +EBUILD commons-digester-1.8.1-r2.ebuild 1334 BLAKE2B 041afef35e29c544ef5a55d636e1567282e9aa88f3777ee092563b0b69587eb73c0cd1a6d613a292d8cf59f79c324cc9239ff80fc0412dae51fb9606b5b447f8 SHA512 e86d5c4195016eccc3a76a78c70d9ced9ff0cb7b7fc5ba1cd49720e84d57f439cc3fb8ea206c7f9bee8cd5e13fbc20da6dcbbb53d8404c875e142cfd5d64eed2 +EBUILD commons-digester-2.1-r1.ebuild 1271 BLAKE2B 627edfe47d49d94e97b2d40773a4a55ccbc885bd95f5889500fd1a6662fb008d5d5efbf4727bec54e04e7a9e6fb6b412bf5425316aaeea5454ac86ff076cc3d6 SHA512 3b6b050868c748e172afcaa91f3f7632f265272cf9cf87a7d8aa24ae044dae92ebb60ab2ba05fc1bc7c5b823d22ea7597d856f7b0151cf4ad4dd2d545a035054 +EBUILD commons-digester-3.2-r2.ebuild 1346 BLAKE2B 569d0a11ac290485043abeaad1f6d5605e23e3c86e2514fddb14c90422499139056ae938d93d1f0c237740e7368844ca9a721f2a36a4c852e65f7d93e353f504 SHA512 380541befcf378f7446af7af0931fb3d95b682400b4fae1beb369a48d1ec807ecfb816a6a120085147924358ed17037027f03f9d9d049659342c3dc7a3882c0e +MISC metadata.xml 232 BLAKE2B 513679b02247d8e4cb4c874abd785119d9ca62ad24c44969d52a42c3765d0ebf689024512a2c4c48e69688a4ce02a74ae05708b050a720bc73d8d2bf2ceff58d SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 diff --git a/dev-java/commons-digester/commons-digester-1.8.1-r2.ebuild b/dev-java/commons-digester/commons-digester-1.8.1-r2.ebuild new file mode 100644 index 000000000000..ef48eccd8418 --- /dev/null +++ b/dev-java/commons-digester/commons-digester-1.8.1-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +JAVA_PKG_IUSE="doc examples source test" + +inherit eutils java-pkg-2 java-ant-2 + +MY_P="${P}-src" +DESCRIPTION="Reads XML configuration files to provide initialization of various Java objects" +HOMEPAGE="http://commons.apache.org/digester/" +SRC_URI="mirror://apache/commons/digester/source/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ppc64 x86" +IUSE="" + +CDEPEND="dev-java/commons-beanutils:1.7 + >=dev-java/commons-collections-2.1:0 + >=dev-java/commons-logging-1.0.2:0" +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/junit:0 + dev-java/ant-junit:0 + ) + ${CDEPEND}" + +S="${WORKDIR}/${P}-src" + +# don't rewrite build.xml in examples +JAVA_PKG_BSFIX_ALL="no" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="commons-beanutils-1.7,commons-collections,commons-logging" + +java_prepare() { + epatch "${FILESDIR}/${PV}-build.xml-jar-target.patch" +} + +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit" + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar "dist/${PN}.jar" + + dodoc RELEASE-NOTES.txt || die + + use doc && java-pkg_dojavadoc dist/docs/api + use source && java-pkg_dosrc src/java/org + use examples && java-pkg_doexamples src/examples +} diff --git a/dev-java/commons-digester/commons-digester-2.1-r1.ebuild b/dev-java/commons-digester/commons-digester-2.1-r1.ebuild new file mode 100644 index 000000000000..a6546742511c --- /dev/null +++ b/dev-java/commons-digester/commons-digester-2.1-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source test" + +inherit eutils java-pkg-2 java-ant-2 + +MY_P="${P}-src" + +DESCRIPTION="Reads XML configuration files to provide initialization of various Java objects" +HOMEPAGE="http://commons.apache.org/digester/" +SRC_URI="mirror://apache/commons/digester/source/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2.1" +KEYWORDS="amd64 ppc64 x86" + +CDEPEND="dev-java/commons-beanutils:1.7 + >=dev-java/commons-collections-2.1:0 + >=dev-java/commons-logging-1.0.2:0" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + ${CDEPEND} + test? ( + dev-java/junit:0 + dev-java/ant-junit:0 + )" + +S="${WORKDIR}/${P}-src" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="commons-beanutils-1.7,commons-collections,commons-logging" + +java_prepare() { + cp "${FILESDIR}"/${P}-build.xml build.xml || die +} + +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit" + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${PN}.jar + + dodoc RELEASE-NOTES.txt + + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/org + use examples && java-pkg_doexamples src/examples +} diff --git a/dev-java/commons-digester/commons-digester-3.2-r2.ebuild b/dev-java/commons-digester/commons-digester-3.2-r2.ebuild new file mode 100644 index 000000000000..c818287d257f --- /dev/null +++ b/dev-java/commons-digester/commons-digester-3.2-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source test" + +inherit eutils java-pkg-2 java-ant-2 + +MY_P="${PN}3-${PV}-src" + +DESCRIPTION="Reads XML configuration files to provide initialization of various Java objects" +HOMEPAGE="http://commons.apache.org/digester/" +SRC_URI="mirror://apache/commons/digester/source/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="3.2" +KEYWORDS="amd64 ppc64 x86" + +CDEPEND="dev-java/cglib:3 + dev-java/commons-beanutils:1.7 + >=dev-java/commons-logging-1.0.2:0" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + ${CDEPEND} + test? ( + dev-java/junit:4 + dev-java/ant-junit:0 + )" + +S="${WORKDIR}/${MY_P}" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="commons-beanutils-1.7,commons-logging,cglib-3" + +java_prepare() { + cp "${FILESDIR}"/${PN}-2.1-build.xml build.xml || die + + # Doesn't work. + rm -v src/test/java/org/apache/commons/digester3/Digester153TestCase.java +} + +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${PN}.jar + + dodoc RELEASE-NOTES.txt + + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/org + use examples && java-pkg_doexamples src/examples +} diff --git a/dev-java/commons-digester/files/1.8.1-build.xml-jar-target.patch b/dev-java/commons-digester/files/1.8.1-build.xml-jar-target.patch new file mode 100644 index 000000000000..ec523a011458 --- /dev/null +++ b/dev-java/commons-digester/files/1.8.1-build.xml-jar-target.patch @@ -0,0 +1,27 @@ +--- build.xml.orig 2009-02-15 21:06:33.000000000 +0100 ++++ build.xml 2009-02-15 21:07:25.000000000 +0100 +@@ -117,6 +117,7 @@ + <pathelement location="${jaxp.jaxp.jar}"/>
+ <pathelement location="${jaxp.parser.jar}"/>
+ <pathelement location="${commons-beanutils.jar}"/>
++ <pathelement location="${commons-collections.jar}" />
+ <pathelement location="${commons-logging.jar}"/>
+ <pathelement location="${junit.jar}"/>
+ </path>
+@@ -140,6 +141,7 @@ + <pathelement location="${junit.jar}"/>
+ <pathelement location="${jaxp.jaxp.jar}"/>
+ <pathelement location="${jaxp.parser.jar}"/>
++ <pathelement location="${commons-collections.jar}" />
+ <pathelement location="${commons-beanutils.jar}"/>
+ <pathelement location="${commons-logging.jar}"/>
+ </path>
+@@ -256,7 +258,7 @@ + </javadoc>
+ </target>
+
+- <target name="jar" depends="compile, test"
++ <target name="jar" depends="compile"
+ description="Create commons-digester.jar">
+ <mkdir dir="${dist.home}"/>
+ <jar jarfile="${dist.home}/commons-${component.name}.jar"
diff --git a/dev-java/commons-digester/files/commons-digester-2.1-build.xml b/dev-java/commons-digester/files/commons-digester-2.1-build.xml new file mode 100644 index 000000000000..505df88a8abc --- /dev/null +++ b/dev-java/commons-digester/files/commons-digester-2.1-build.xml @@ -0,0 +1,294 @@ +<?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 8/12/13 6:51 PM --> +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> +<!-- --> +<!-- ====================================================================== --> + +<project name="commons-digester-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-digester"/> + <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.resourceDir.1" value="src/main/resources"/> + <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> + <path id="build.test.classpath"> + </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.5" + verbose="false" + fork="false" + source="1.5"> + <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> + <copy todir="${maven.build.outputDir}"> + <fileset dir="${maven.build.resourceDir.1}"> + <include name="**/*.dtd"/> + </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.5" + verbose="false" + fork="false" + source="1.5"> + <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}"> + <include name="**/*.xml"/> + <include name="**/*.xsd"/> + </fileset> + </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="**/TestBean.java"/> + <exclude name="**/TestRule.java"/> + <exclude name="**/TestRuleSet.java"/> + <exclude name="**/Test*$*.java"/> + <exclude name="**/*Abstract*.java"/> + </fileset> + </batchtest> + <batchtest todir="${maven.test.reports}" if="test"> + <fileset dir="${maven.build.testDir.0}"> + <include name="**/${test}.java"/> + <exclude name="**/TestBean.java"/> + <exclude name="**/TestRule.java"/> + <exclude name="**/TestRuleSet.java"/> + <exclude name="**/Test*$*.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.5" + linksource="true" + breakiterator="false"> + <link href="http://java.sun.com/javase/6/docs/api/"/> + </javadoc> + </target> + + <!-- ====================================================================== --> + <!-- Package target --> + <!-- ====================================================================== --> + + <target name="package" depends="compile" description="Package the application"> + <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" + compress="true" + index="false" + 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}/commons-beanutils/commons-beanutils/1.8.3"/> + <get src="http://repository.apache.org/snapshots/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar" + dest="${maven.repo.local}/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar" + dest="${maven.repo.local}/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/commons-logging/commons-logging/1.1.1"/> + <get src="http://repository.apache.org/snapshots/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" + dest="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" + dest="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/junit/junit/4.8.1"/> + <get src="http://repository.apache.org/snapshots/junit/junit/4.8.1/junit-4.8.1.jar" + dest="${maven.repo.local}/junit/junit/4.8.1/junit-4.8.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/junit/junit/4.8.1/junit-4.8.1.jar" + dest="${maven.repo.local}/junit/junit/4.8.1/junit-4.8.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + </target> + +</project> diff --git a/dev-java/commons-digester/metadata.xml b/dev-java/commons-digester/metadata.xml new file mode 100644 index 000000000000..2444066aa02b --- /dev/null +++ b/dev-java/commons-digester/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> |