summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2021-04-19 12:53:50 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2021-04-19 12:57:38 +0200
commitae8c0f988a0d3c31c318231ba345b2de139862b5 (patch)
tree18ea0c4fc88b4575fabe1fab8328a5c2957d745e /dev-java/apache-rat-core
parentdev-java/commons-collections: added MAVEN_ID to slot 0 (diff)
downloadgentoo-ae8c0f988a0d3c31c318231ba345b2de139862b5.tar.gz
gentoo-ae8c0f988a0d3c31c318231ba345b2de139862b5.tar.bz2
gentoo-ae8c0f988a0d3c31c318231ba345b2de139862b5.zip
dev-java/apache-rat-core: new package
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/apache-rat-core')
-rw-r--r--dev-java/apache-rat-core/Manifest1
-rw-r--r--dev-java/apache-rat-core/apache-rat-core-0.13.ebuild69
-rw-r--r--dev-java/apache-rat-core/files/apache-rat-core-0.13-commons-lang3.patch39
-rw-r--r--dev-java/apache-rat-core/metadata.xml8
4 files changed, 117 insertions, 0 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..37998bf40746
--- /dev/null
+++ b/dev-java/apache-rat-core/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>