diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-04-19 13:46:52 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-04-19 13:46:52 +0000 |
| commit | 05a6ba4b8370118e5b60559da434634f10a07405 (patch) | |
| tree | ce15fcf79df76cdf4bec5748014b1a65f9cd0318 /dev-java | |
| parent | fb7453bde5c21cc750fcfde730524382513e83b5 (diff) | |
| download | baldeagleos-repo-05a6ba4b8370118e5b60559da434634f10a07405.tar.gz baldeagleos-repo-05a6ba4b8370118e5b60559da434634f10a07405.tar.xz baldeagleos-repo-05a6ba4b8370118e5b60559da434634f10a07405.zip | |
Adding metadata
Diffstat (limited to 'dev-java')
24 files changed, 340 insertions, 375 deletions
diff --git a/dev-java/apache-rat-core/Manifest b/dev-java/apache-rat-core/Manifest new file mode 100644 index 000000000000..bb5c63616d58 --- /dev/null +++ b/dev-java/apache-rat-core/Manifest @@ -0,0 +1 @@ +DIST apache-rat-0.13-src.tar.bz2 197443 BLAKE2B 5880894bf48e62c97fefebe5672964a78016ba045ca6a13a9b100c1a15cf0a6933edc22c41cb3552f30ebea0486fd6b415f60902f0af7d96663611bfef1a1781 SHA512 564cb2b0f21c98ca5c10566417c0d2732cd177efb68607589e43bcf64eeedee7a570dbea7ef4d6237f6438ecb40d382cb96bd0d6f60c1d1ba1f76778f15ee26a diff --git a/dev-java/apache-rat-core/apache-rat-core-0.13.ebuild b/dev-java/apache-rat-core/apache-rat-core-0.13.ebuild new file mode 100644 index 000000000000..1131e321b701 --- /dev/null +++ b/dev-java/apache-rat-core/apache-rat-core-0.13.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom apache-rat-core/pom.xml --download-uri https://mirrors.nav.ro/apache//creadur/apache-rat-0.13/apache-rat-0.13-src.tar.bz2 --slot 0 --keywords "~amd64 ~x86" --ebuild apache-rat-core-0.13.ebuild + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.rat:apache-rat-core:0.13" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="The core functionality, shared by the Ant tasks and the Maven plugin." +HOMEPAGE="https://creadur.apache.org/rat/apache-rat-core/" +SRC_URI="mirror://apache//creadur/apache-rat-${PV}/apache-rat-${PV}-src.tar.bz2" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +# Common dependencies +# POM: ${PN}/pom.xml +# commons-cli:commons-cli:1.3.1 -> >=dev-java/commons-cli-1.3.1:1 +# commons-collections:commons-collections:3.2.2 -> !!!suitble-mavenVersion-not-found!!! +# commons-io:commons-io:2.2 -> >=dev-java/commons-io-2.8.0:1 +# commons-lang:commons-lang:2.6 -> >=dev-java/commons-lang-2.6:2.1 +# org.apache.commons:commons-compress:1.11 -> >=dev-java/commons-compress-1.20:0 +# org.apache.rat:apache-rat-api:0.13 -> >=dev-java/apache-rat-api-0.13:0 + +CDEPEND=" + >=dev-java/commons-cli-1.3.1:1 + >=dev-java/commons-compress-1.20:0 + dev-java/commons-collections:0 + >=dev-java/commons-io-2.8.0:1 + dev-java/commons-lang:3.6 +" + +DEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND}" + +S="${WORKDIR}/apache-rat-${PV}/${PN}" + +PATCHES=( + "${FILESDIR}/${P}-commons-lang3.patch" +) + +JAVA_GENTOO_CLASSPATH="commons-cli-1,commons-collections,commons-io-1,commons-lang-3.6,commons-compress" +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS=( + "src/main/resources" +) + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS=( + "src/test/resources" +) + +src_prepare() { + default + java-utils-2_src_prepare +} diff --git a/dev-java/apache-rat-core/files/apache-rat-core-0.13-commons-lang3.patch b/dev-java/apache-rat-core/files/apache-rat-core-0.13-commons-lang3.patch new file mode 100644 index 000000000000..77a90207cbcf --- /dev/null +++ b/dev-java/apache-rat-core/files/apache-rat-core-0.13-commons-lang3.patch @@ -0,0 +1,39 @@ +diff --git a/src/main/java/org/apache/rat/Report.java b/src/main/java/org/apache/rat/Report.java +index de4a2e7..ecb8ddf 100644 +--- a/src/main/java/org/apache/rat/Report.java ++++ b/src/main/java/org/apache/rat/Report.java +@@ -21,7 +21,7 @@ package org.apache.rat; + import org.apache.commons.cli.*; + import org.apache.commons.io.FileUtils; + import org.apache.commons.io.filefilter.*; +-import org.apache.commons.lang.StringUtils; ++import org.apache.commons.lang3.StringUtils; + import org.apache.rat.api.RatException; + import org.apache.rat.report.IReportable; + import org.apache.rat.report.RatReport; +diff --git a/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java b/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java +index d56a672..d6b7f4d 100644 +--- a/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java ++++ b/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java +@@ -20,7 +20,7 @@ package org.apache.rat.document.impl.guesser; + + import java.util.Locale; + +-import org.apache.commons.lang.StringUtils; ++import org.apache.commons.lang3.StringUtils; + + public class GuessUtils { + +diff --git a/src/main/java/org/apache/rat/report/claim/impl/xml/SimpleXmlClaimReporter.java b/src/main/java/org/apache/rat/report/claim/impl/xml/SimpleXmlClaimReporter.java +index 02e21d6..5001dff 100644 +--- a/src/main/java/org/apache/rat/report/claim/impl/xml/SimpleXmlClaimReporter.java ++++ b/src/main/java/org/apache/rat/report/claim/impl/xml/SimpleXmlClaimReporter.java +@@ -18,7 +18,7 @@ + */ + package org.apache.rat.report.claim.impl.xml; + +-import org.apache.commons.lang.time.DateFormatUtils; ++import org.apache.commons.lang3.time.DateFormatUtils; + import org.apache.rat.api.Document; + import org.apache.rat.api.MetaData; + import org.apache.rat.api.RatException; diff --git a/dev-java/apache-rat-core/metadata.xml b/dev-java/apache-rat-core/metadata.xml new file mode 100644 index 000000000000..e25b5c52aab3 --- /dev/null +++ b/dev-java/apache-rat-core/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + + <origin>gentoo-staging</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-java/apache-rat-tasks/Manifest b/dev-java/apache-rat-tasks/Manifest new file mode 100644 index 000000000000..bb5c63616d58 --- /dev/null +++ b/dev-java/apache-rat-tasks/Manifest @@ -0,0 +1 @@ +DIST apache-rat-0.13-src.tar.bz2 197443 BLAKE2B 5880894bf48e62c97fefebe5672964a78016ba045ca6a13a9b100c1a15cf0a6933edc22c41cb3552f30ebea0486fd6b415f60902f0af7d96663611bfef1a1781 SHA512 564cb2b0f21c98ca5c10566417c0d2732cd177efb68607589e43bcf64eeedee7a570dbea7ef4d6237f6438ecb40d382cb96bd0d6f60c1d1ba1f76778f15ee26a diff --git a/dev-java/apache-rat-tasks/apache-rat-tasks-0.13.ebuild b/dev-java/apache-rat-tasks/apache-rat-tasks-0.13.ebuild new file mode 100644 index 000000000000..deed67e6ee11 --- /dev/null +++ b/dev-java/apache-rat-tasks/apache-rat-tasks-0.13.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom apache-rat-tasks/pom.xml --download-uri https://mirrors.nav.ro/apache//creadur/apache-rat-0.13/apache-rat-0.13-src.tar.bz2 --slot 0 --keywords "~amd64 ~x86" --ebuild apache-rat-tasks-0.13.ebuild + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.rat:apache-rat-tasks:0.13" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A plugin for Apache Ant that runs Apache Rat to audit the source" +HOMEPAGE="https://creadur.apache.org/rat/apache-rat-tasks/" +SRC_URI="mirror://apache//creadur/apache-rat-${PV}/apache-rat-${PV}-src.tar.bz2" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +# Common dependencies +# POM: ${PN}/pom.xml +# org.apache.rat:apache-rat-core:0.13 -> >=dev-java/apache-rat-core-0.13:0 + +CDEPEND=" + dev-java/ant-core:0 + ~dev-java/apache-rat-core-${PV}:0 +" + +# Compile dependencies +# POM: ${PN}/pom.xml +# org.apache.ant:ant:1.9.12 -> !!!groupId-not-found!!! +# POM: ${PN}/pom.xml +# test? junit:junit:4.12 -> >=dev-java/junit-4.12:4 +# test? org.apache.ant:ant-antunit:1.4 -> !!!groupId-not-found!!! +# test? org.apache.ant:ant-testutil:1.9.12 -> !!!groupId-not-found!!! + +DEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} + test? ( + dev-java/ant-testutil:0 + )" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND}" + +S="${WORKDIR}/apache-rat-${PV}/${PN}" + +PATCHES=( + "${FILESDIR}/${P}-fix-tests.patch" +) + +JAVA_GENTOO_CLASSPATH="ant-core,apache-rat-core" +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS=( + "src/main/resources" +) + +JAVA_TEST_GENTOO_CLASSPATH="ant-testutil,junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS=( + "src/test/resources" +) + +src_prepare() { + default + java-utils-2_src_prepare +} diff --git a/dev-java/apache-rat-tasks/files/apache-rat-tasks-0.13-fix-tests.patch b/dev-java/apache-rat-tasks/files/apache-rat-tasks-0.13-fix-tests.patch new file mode 100644 index 000000000000..536b68371c3a --- /dev/null +++ b/dev-java/apache-rat-tasks/files/apache-rat-tasks-0.13-fix-tests.patch @@ -0,0 +1,41 @@ +diff --git a/src/test/resources/antunit/report-junit.xml b/src/test/resources/antunit/report-junit.xml +index 54b0c9c..d12fee4 100644 +--- a/src/test/resources/antunit/report-junit.xml ++++ b/src/test/resources/antunit/report-junit.xml +@@ -48,7 +48,7 @@ + <target name="all"/> + + <target name="testWithReportSentToFile"> +- <property name="report.file" location="${output.dir}/selftest.report"/> ++ <property name="report.file" location="../../../../target/anttasks/selftest.report"/> + <rat:report reportFile="${report.file}"> + <file file="${ant.file}"/> + </rat:report> +@@ -88,22 +88,22 @@ + <target name="testAddLicenseHeaders"> + <delete dir="${output.dir}/it-sources"/> + <mkdir dir="${output.dir}/it-sources"/> +- <copy file="src/test/resources/antunit/index.apt" tofile="${output.dir}/it-sources/index.apt"/> ++ <copy file="index.apt" tofile="../../../../target/anttasks/it-sources/index.apt"/> + <rat:report addLicenseHeaders="true"> +- <file file="${output.dir}/it-sources/index.apt"/> ++ <file file="../../../../target/anttasks/it-sources/index.apt"/> + </rat:report> + </target> + + <target name="testISO88591"> + <rat:report format="xml"> +- <file file="src/test/resources/org/example/iso-8859-1.html"/> ++ <file file="../../../../src/test/resources/org/example/iso-8859-1.html"/> + </rat:report> + </target> + + <target name="testISO88591WithReportFile"> +- <property name="report.file" location="${output.dir}/selftest.report"/> ++ <property name="report.file" location="../../../../target/anttasks/selftest.report"/> + <rat:report reportFile="${report.file}" format="xml"> +- <file file="src/test/resources/org/example/iso-8859-1.html"/> ++ <file file="../../../../src/test/resources/org/example/iso-8859-1.html"/> + </rat:report> + </target> + </project> diff --git a/dev-java/apache-rat-tasks/metadata.xml b/dev-java/apache-rat-tasks/metadata.xml new file mode 100644 index 000000000000..e25b5c52aab3 --- /dev/null +++ b/dev-java/apache-rat-tasks/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + + <origin>gentoo-staging</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-java/apple-java-extensions-bin/apple-java-extensions-bin-1.5-r1.ebuild b/dev-java/apple-java-extensions-bin/apple-java-extensions-bin-1.5-r1.ebuild deleted file mode 100644 index 2a587c9f0fe5..000000000000 --- a/dev-java/apple-java-extensions-bin/apple-java-extensions-bin-1.5-r1.ebuild +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit java-pkg-2 - -DESCRIPTION="Apple eAWT and eIO APIs for Java on Mac OS X" -HOMEPAGE="http://developer.apple.com/samplecode/AppleJavaExtensions/" -SRC_URI="http://developer.apple.com/samplecode/AppleJavaExtensions/AppleJavaExtensions.zip -> ${P}.zip" -LICENSE="Apple" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" -DEPEND="app-arch/unzip" -RDEPEND=">=virtual/jre-1.5" - -S=${WORKDIR}/AppleJavaExtensions - -src_install() { - dodoc README.txt - java-pkg_dojar AppleJavaExtensions.jar -} diff --git a/dev-java/commons-cli/commons-cli-1.3.1.ebuild b/dev-java/commons-cli/commons-cli-1.3.1.ebuild index cea9eeb2d25c..7e54b865b6bd 100644 --- a/dev-java/commons-cli/commons-cli-1.3.1.ebuild +++ b/dev-java/commons-cli/commons-cli-1.3.1.ebuild @@ -4,6 +4,7 @@ EAPI=6 JAVA_PKG_IUSE="doc source" +MAVEN_ID="commons-cli:commons-cli:1.3.1" inherit java-pkg-2 java-pkg-simple diff --git a/dev-java/commons-cli/commons-cli-1.4.ebuild b/dev-java/commons-cli/commons-cli-1.4.ebuild index d6caadee84f0..de78b6499639 100644 --- a/dev-java/commons-cli/commons-cli-1.4.ebuild +++ b/dev-java/commons-cli/commons-cli-1.4.ebuild @@ -4,6 +4,7 @@ EAPI=6 JAVA_PKG_IUSE="doc source" +MAVEN_ID="commons-cli:commons-cli:1.4" inherit java-pkg-2 java-pkg-simple diff --git a/dev-java/commons-collections/commons-collections-3.2.1-r1.ebuild b/dev-java/commons-collections/commons-collections-3.2.1-r1.ebuild index 4b75f2ae4ea1..ef22afeed881 100644 --- a/dev-java/commons-collections/commons-collections-3.2.1-r1.ebuild +++ b/dev-java/commons-collections/commons-collections-3.2.1-r1.ebuild @@ -4,6 +4,7 @@ EAPI=5 JAVA_PKG_IUSE="doc source test" +MAVEN_ID="commons-collections:commons-collections:3.2.1" inherit java-pkg-2 java-ant-2 java-utils-2 epatch diff --git a/dev-java/commons-collections/commons-collections-3.2.1-r2.ebuild b/dev-java/commons-collections/commons-collections-3.2.1-r2.ebuild index 9dac8440d36b..e82eac0d21f7 100644 --- a/dev-java/commons-collections/commons-collections-3.2.1-r2.ebuild +++ b/dev-java/commons-collections/commons-collections-3.2.1-r2.ebuild @@ -4,6 +4,7 @@ EAPI=6 JAVA_PKG_IUSE="doc source test" +MAVEN_ID="commons-collections:commons-collections:3.2.1" inherit java-pkg-2 java-ant-2 java-utils-2 diff --git a/dev-java/commons-collections/commons-collections-3.2.1-r3.ebuild b/dev-java/commons-collections/commons-collections-3.2.1-r3.ebuild index 896076e3d832..cfd46905336a 100644 --- a/dev-java/commons-collections/commons-collections-3.2.1-r3.ebuild +++ b/dev-java/commons-collections/commons-collections-3.2.1-r3.ebuild @@ -4,6 +4,7 @@ EAPI=7 JAVA_PKG_IUSE="doc source test" +MAVEN_ID="commons-collections:commons-collections:3.2.1" inherit java-pkg-2 java-ant-2 java-utils-2 diff --git a/dev-java/commons-math/Manifest b/dev-java/commons-math/Manifest index 753de6caac6a..2a4d73ad3ca0 100644 --- a/dev-java/commons-math/Manifest +++ b/dev-java/commons-math/Manifest @@ -1,2 +1 @@ -DIST commons-math3-3.2-src.tar.gz 2602474 BLAKE2B a818ca5ab1b9799359bad1c84d2774329c7c2605aeea3e13769eed9f1578d412555ad90a8de68971daa42b270d4bcd5fbf0fe79714e839d41b08077e32633125 SHA512 132c4725be582e25f67a955c7b3b8c7ef155606d8f4da07770464c422ded6b5e6efd1a13a6e98cff222f4fcac73606d512ee1ab9e3b1c4befcc1ba16ab68787b DIST commons-math3-3.6.1.jar 2514690 BLAKE2B ce5dc1a5bdccf85aa780dd648b64c0ed78b4d5a36d15d9737f661135f4f1ec962c3c44a0c4d8fc7d12c667e62b19860cb2a47f507c8c3e6da6cce57e1b9caf54 SHA512 eab6003834c0f1b7e67eee242d33db43f85d388ac32e37caa6bd16d74340db5c189ff5c7fd112ef13b9009d2fbcf2bad6650b6e5d9124316b59493b2d07d065d diff --git a/dev-java/commons-math/commons-math-3.2-r1.ebuild b/dev-java/commons-math/commons-math-3.2-r1.ebuild deleted file mode 100644 index 504819e8dd6b..000000000000 --- a/dev-java/commons-math/commons-math-3.2-r1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# Tests are currently broken due to nasty -lib argument. -JAVA_PKG_IUSE="doc source" # test - -inherit java-pkg-2 java-ant-2 java-osgi - -MY_PN="${PN}3" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="Lightweight, self-contained mathematics and statistics components" -HOMEPAGE="https://commons.apache.org/math/" -SRC_URI="https://archive.apache.org/dist/commons/math/source/${MY_P}-src.tar.gz" - -LICENSE="Apache-2.0" -SLOT="3" -KEYWORDS="amd64 x86" - -DEPEND=">=virtual/jdk-1.8:*" - -# Tests are currently broken due to nasty -lib argument. -# test? ( -# dev-java/ant-junit4 -# dev-java/hamcrest-core:0 -# )" - -RDEPEND=">=virtual/jre-1.8:*" - -S="${WORKDIR}/${MY_P}-src" - -src_prepare() { - default - - cp "${FILESDIR}"/${P}-build.xml build.xml || die - - sed -i 's/manifest=".*MANIFEST.MF"//g' build.xml || die - sed -i '/name="Main-Class"/d' build.xml || die -} - -# Tests are currently broken due to nasty -lib argument. -# src_test() { -# java-pkg_jar-from junit-4 -# java-pkg_jar-from hamcrest-core -# ANT_TASKS="ant-junit4" eant -Djunit.jar=junit.jar test -# } - -src_install() { - java-osgi_newjar target/${MY_P}.jar ${MY_PN} ${MY_PN} "Export-Package: ${MY_PN}" - - use doc && java-pkg_dojavadoc target/site/apidocs - use source && java-pkg_dosrc src/main/java/org -} diff --git a/dev-java/commons-math/files/commons-math-3.2-build.xml b/dev-java/commons-math/files/commons-math-3.2-build.xml deleted file mode 100644 index 905d12657e26..000000000000 --- a/dev-java/commons-math/files/commons-math-3.2-build.xml +++ /dev/null @@ -1,288 +0,0 @@ -<?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 5/29/13 1:59 PM --> -<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> -<!-- --> -<!-- ====================================================================== --> - -<project name="commons-math3-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-math3-3.2"/> - <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="src/main/resources"/> - <property name="maven.build.resourceDir.1" 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.build.testResourceDir.1" value="."/> - <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="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar"/> - <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.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="UTF-8" - 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> - <copy todir="${maven.build.outputDir}"> - <fileset dir="${maven.build.resourceDir.0}"/> - </copy> - <mkdir dir="${maven.build.outputDir}/META-INF"/> - <copy todir="${maven.build.outputDir}/META-INF"> - <fileset dir="${maven.build.resourceDir.1}"> - <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="UTF-8" - 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}"/> - </copy> - <mkdir dir="${maven.build.testOutputDir}/META-INF"/> - <copy todir="${maven.build.testOutputDir}/META-INF"> - <fileset dir="${maven.build.testResourceDir.1}"> - <include name="NOTICE.txt"/> - <include name="LICENSE.txt"/> - </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="**/*TestBinary.java"/> - <include name="**/*TestPermutations.java"/> - <exclude name="**/*AbstractTest.java"/> - </fileset> - </batchtest> - <batchtest todir="${maven.test.reports}" if="test"> - <fileset dir="${maven.build.testDir.0}"> - <include name="**/${test}.java"/> - <exclude name="**/*AbstractTest.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="UTF-8" - 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" - docencoding="UTF-8" - source="1.5" - linksource="true" - breakiterator="false"> - <link href="http://download.oracle.com/javase/6/docs/api/"/> - <link href="http://download.oracle.com/javaee/6/api/"/> - </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="/var/tmp/portage/dev-java/commons-math-3.2/work/commons-math3-3.2-src/target/osgi/MANIFEST.MF" - basedir="${maven.build.outputDir}" - excludes="**/package.html"> - <manifest> - <attribute name="Main-Class"/> - </manifest> - </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/4.10"/> - <get src="http://repository.apache.org/snapshots/junit/junit/4.10/junit-4.10.jar" - dest="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar" - usetimestamp="false" - ignoreerrors="true"/> - <get src="http://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.jar" - dest="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar" - usetimestamp="false" - ignoreerrors="true"/> - <mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1"/> - <get src="http://repository.apache.org/snapshots/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" - dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" - usetimestamp="false" - ignoreerrors="true"/> - <get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" - dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" - usetimestamp="false" - ignoreerrors="true"/> - </target> - -</project> diff --git a/dev-java/commons-text/Manifest b/dev-java/commons-text/Manifest new file mode 100644 index 000000000000..e99bcc4b22d1 --- /dev/null +++ b/dev-java/commons-text/Manifest @@ -0,0 +1 @@ +DIST commons-text-1.9-sources.tar.gz 312764 BLAKE2B 44b628c418a910ff38b5a1fb3b4c9f14a1f9818afd12540f8c8cf8b1a99fd7abd365e704142bcec901e5e067b303ff44f9c992f8714eae68b94819780a270dd2 SHA512 53f993e79aaa6789d3388aa96b6b2a14cf646b27ff3774524390e511241a85288947cc929519eff61a8734578f25bdf3d9969d84da20c1a749b19d90a55da8ae diff --git a/dev-java/commons-text/commons-text-1.9.ebuild b/dev-java/commons-text/commons-text-1.9.ebuild new file mode 100644 index 000000000000..8671f21cf484 --- /dev/null +++ b/dev-java/commons-text/commons-text-1.9.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://downloads.apache.org//commons/text/source/commons-text-1.9-src.tar.gz --slot 0 --keywords "~amd64 ~x86" --ebuild commons-text-1.9.ebuild + +EAPI=7 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="org.apache.commons:commons-text:1.9" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Apache Commons Text is a library focused on algorithms working on strings." +HOMEPAGE="https://commons.apache.org/proper/commons-text" +SRC_URI="https://downloads.apache.org//commons/text/source/${P}-src.tar.gz -> ${P}-sources.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Common dependencies +# POM: pom.xml +# org.apache.commons:commons-lang3:3.11 -> >=dev-java/commons-lang-3.11:3.6 + +CDEPEND=" + >=dev-java/commons-lang-3.11:3.6 +" + +DEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND}" + +S="${WORKDIR}/${P}-src" + +JAVA_ENCODING="ISO-8859-1" + +JAVA_GENTOO_CLASSPATH="commons-lang-3.6" +JAVA_SRC_DIR="src/main/java" diff --git a/dev-java/commons-text/metadata.xml b/dev-java/commons-text/metadata.xml new file mode 100644 index 000000000000..e25b5c52aab3 --- /dev/null +++ b/dev-java/commons-text/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + + <origin>gentoo-staging</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-java/jdom/jdom-1.1.3.ebuild b/dev-java/jdom/jdom-1.1.3-r1.ebuild index 7d7440c09783..f176d2284a81 100644 --- a/dev-java/jdom/jdom-1.1.3.ebuild +++ b/dev-java/jdom/jdom-1.1.3-r1.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 + JAVA_PKG_IUSE="doc examples source" inherit java-pkg-2 java-ant-2 @@ -9,17 +10,18 @@ inherit java-pkg-2 java-ant-2 DESCRIPTION="Java API to manipulate XML data" SRC_URI="http://www.jdom.org/dist/binary/archive/${P}.tar.gz" HOMEPAGE="http://www.jdom.org" + LICENSE="JDOM" SLOT="0" KEYWORDS="amd64 ~arm arm64 ppc64 x86" -IUSE="" -RDEPEND=">=virtual/jre-1.6" -DEPEND=">=virtual/jdk-1.6" +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-1.8:*" S="${WORKDIR}/${PN}" -java_prepare() { +src_prepare() { + default java-pkg_clean rm -r build/apidocs || die diff --git a/dev-java/rat/rat-0.13.ebuild b/dev-java/rat/rat-0.13.ebuild new file mode 100644 index 000000000000..ece22ac8b664 --- /dev/null +++ b/dev-java/rat/rat-0.13.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit java-pkg-2 + +DESCRIPTION="Apache Rat is a release audit tool, focused on licenses." +HOMEPAGE="https://creadur.apache.org/rat/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + ~dev-java/apache-rat-core-${PV}:0 + ~dev-java/apache-rat-tasks-${PV}:0 + >=virtual/jre-1.8:* +" + +S="${WORKDIR}" + +src_compile() { :; } + +src_install() { + default + java-pkg_register-dependency apache-rat-core,apache-rat-tasks + java-pkg_dolauncher "apache-${PN}" --jar $(java-pkg_getjar apache-rat-core apache-rat-core.jar) --main org.apache.rat.Report +} diff --git a/dev-java/xerial-core/metadata.xml b/dev-java/xerial-core/metadata.xml index f225fedc881c..6499762d77f1 100644 --- a/dev-java/xerial-core/metadata.xml +++ b/dev-java/xerial-core/metadata.xml @@ -6,7 +6,7 @@ <name>Java</name> </maintainer> <upstream> - <remote-id type="google-code">xerial</remote-id> + </upstream> <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-java/xerial-core/xerial-core-2.0.1.ebuild b/dev-java/xerial-core/xerial-core-2.0.1.ebuild index edaab8c4a833..7014fcb33e4d 100644 --- a/dev-java/xerial-core/xerial-core-2.0.1.ebuild +++ b/dev-java/xerial-core/xerial-core-2.0.1.ebuild @@ -8,7 +8,7 @@ JAVA_PKG_IUSE="doc source test" inherit java-pkg-2 java-ant-2 DESCRIPTION="An open-source DBMS for XML/JSON/Relational data" -HOMEPAGE="https://code.google.com/p/xerial/" +HOMEPAGE="https://github.com/xerial/xerial" SRC_URI="https://dev.gentoo.org/~ercpe/distfiles/${CATEGORY}/${PN}/${P}.tar.bz2" LICENSE="Apache-2.0" |
