commit:     853d5cad93b39e55f966217082a63db6d3c5f923
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Apr 25 09:04:19 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Sep  9 06:41:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=853d5cad

dev-java/system-rules: new package, add 1.19.0

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 dev-java/system-rules/Manifest                   |  1 +
 dev-java/system-rules/metadata.xml               |  7 +++
 dev-java/system-rules/system-rules-1.19.0.ebuild | 58 ++++++++++++++++++++++++
 3 files changed, 66 insertions(+)

diff --git a/dev-java/system-rules/Manifest b/dev-java/system-rules/Manifest
new file mode 100644
index 000000000000..bed7ffa0b465
--- /dev/null
+++ b/dev-java/system-rules/Manifest
@@ -0,0 +1 @@
+DIST system-rules-1.19.0.tar.gz 76900 BLAKE2B 
a9f9be08b930632a72af0ee851f17da875d42a08c3187b435c06dd5553afb629e41d06d87c423fecd7ea665197be19a53955e9880617aff7175310bcc2b2735d
 SHA512 
6238a9673456977f6a2bc129f30849460954816bb4e1927f37b9c5b01f322d966c77d5a4eda9e1f0f24e51879d1946d0e121e5432b809793a9b95cb49ee35bdb

diff --git a/dev-java/system-rules/metadata.xml 
b/dev-java/system-rules/metadata.xml
new file mode 100644
index 000000000000..75321cfb5598
--- /dev/null
+++ b/dev-java/system-rules/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>j...@gentoo.org</email>
+       </maintainer>
+</pkgmetadata>

diff --git a/dev-java/system-rules/system-rules-1.19.0.ebuild 
b/dev-java/system-rules/system-rules-1.19.0.ebuild
new file mode 100644
index 000000000000..e606eb666462
--- /dev/null
+++ b/dev-java/system-rules/system-rules-1.19.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2022 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://github.com/stefanbirkner/system-rules/archive/system-rules-1.19.0.tar.gz
 --slot 0 --keywords "~amd64" --ebuild system-rules-1.19.0.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="com.github.stefanbirkner:system-rules:1.19.0"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A collection of JUnit rules for testing code which uses 
java.lang.System."
+HOMEPAGE="https://stefanbirkner.github.io/system-rules/";
+SRC_URI="https://github.com/stefanbirkner/${PN}/archive/${P}.tar.gz";
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# Common dependencies
+# POM: pom.xml
+# junit:junit-dep:[4.9,) -> !!!artifactId-not-found!!!
+
+CP_DEPEND="dev-java/junit:4"
+
+# Compile dependencies
+# POM: pom.xml
+# test? com.github.stefanbirkner:fishbowl:1.4.0 -> >=dev-java/fishbowl-1.4.1:0
+# test? commons-io:commons-io:2.4 -> >=dev-java/commons-io-2.11.0:1
+# test? org.assertj:assertj-core:1.7.1 -> >=dev-java/assertj-core-2.3.0:2
+# test? org.mockito:mockito-core:1.10.19 -> >=dev-java/mockito-4.4.0:4
+
+# Restricting to jdk:1.8 since it doesn't work with java 11 or higher. 
+DEPEND="
+       virtual/jdk:1.8
+       ${CP_DEPEND}
+       test? (
+               dev-java/assertj-core:3
+               dev-java/commons-io:1
+               dev-java/fishbowl:0
+               dev-java/mockito:4
+       )
+"
+
+RDEPEND="
+       >=virtual/jre-1.8:*
+       ${CP_DEPEND}"
+
+S="${WORKDIR}/${PN}-${P}"
+
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="fishbowl,commons-io-1,assertj-core-3,mockito-4"
+JAVA_TEST_SRC_DIR="src/test/java"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"

Reply via email to