summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-05-23 12:10:05 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-05-23 15:44:20 +0200
commit77b0042e236d4a43df0b2e86666bf39976449233 (patch)
tree15b6b0e95df5ecd86cf2c76b68ab04bab34e6c29 /dev-java
parentdev-libs/gost-engine: 3.0.1 version bump, EAPI=8 (diff)
downloadgentoo-77b0042e236d4a43df0b2e86666bf39976449233.tar.gz
gentoo-77b0042e236d4a43df0b2e86666bf39976449233.tar.bz2
gentoo-77b0042e236d4a43df0b2e86666bf39976449233.zip
dev-java/janino: add 3.1.7
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/25606 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/janino/Manifest1
-rw-r--r--dev-java/janino/janino-3.1.7.ebuild103
2 files changed, 104 insertions, 0 deletions
diff --git a/dev-java/janino/Manifest b/dev-java/janino/Manifest
index b25cc96111ea..413a68fd99f3 100644
--- a/dev-java/janino/Manifest
+++ b/dev-java/janino/Manifest
@@ -1 +1,2 @@
DIST janino-3.1.6.tar.gz 1730264 BLAKE2B a4e15b7b9a9d17b8762f5964171a01da3ce6f1045b8830c9a6e9a0d35c5096376fd667103360791f6848c762177f48f858e4e6233205fb6ff8258e6582211b89 SHA512 6e729733f74e0cc24db56c4030de8751c131c94b3abf0519288cc7539b5dda45de8c33e8dd37d8e70565ad0c3a3122cac7c73d77bc5f92a16db0b0f7ea7436d3
+DIST janino-3.1.7.tar.gz 1747439 BLAKE2B 6e42a9d5cc079c2cf17b76c1d76420ff3fa0027b54736f23e0aa2c5062f4dad19c1ac7efa678fa06cee369a01125a64a4ee32e4120e60ecd8a56d47aa4f69503 SHA512 541925fc10f5fbefde45e60cec1925e3d6f5b7244a6b9de251b5483224bee05c16182e2bf137a00349cbdb6c209ce18b2203ca066e5a7a1f146efa255f5f7799
diff --git a/dev-java/janino/janino-3.1.7.ebuild b/dev-java/janino/janino-3.1.7.ebuild
new file mode 100644
index 000000000000..a1ab15ac5d16
--- /dev/null
+++ b/dev-java/janino/janino-3.1.7.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom janino/pom.xml --download-uri https://github.com/janino-compiler/janino/archive/refs/tags/v3.1.7.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild janino-3.1.7.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.codehaus.janino:janino:3.1.7"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="An embedded compiler for run-time compilation purposes"
+HOMEPAGE="https://janino-compiler.github.io/janino/"
+SRC_URI="https://github.com/janino-compiler/janino/archive/v3.1.7.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+# Common dependencies
+# POM: ${PN}/pom.xml
+# org.codehaus.janino:commons-compiler:3.1.7 -> !!!artifactId-not-found!!!
+
+CDEPEND="
+ !!!artifactId-not-found!!!
+"
+
+# Compile dependencies
+# POM: ${PN}/pom.xml
+# org.apache.ant:ant:1.10.11 -> !!!suitable-mavenVersion-not-found!!!
+# POM: ${PN}/pom.xml
+# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ dev-java/ant-core:0
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*"
+
+S="${WORKDIR}/${P}/janino"
+
+src_prepare() {
+ default
+ java-pkg_clean
+}
+
+src_compile() {
+ JAVA_SRC_DIR="../commons-compiler/src/main/java"
+ JAVA_JAR_FILENAME="commons-compiler.jar"
+ java-pkg-simple_src_compile
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":commons-compiler.jar"
+ rm -r target || die
+
+ JAVA_CLASSPATH_EXTRA="ant-core"
+ JAVA_SRC_DIR="src/main/java"
+ JAVA_RESOURCE_DIRS="src/main/resources"
+ JAVA_JAR_FILENAME="janino.jar"
+ java-pkg-simple_src_compile
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":janino.jar"
+ rm -r target || die
+
+ if use doc; then
+ JAVA_SRC_DIR=(
+ "../commons-compiler/src/main/java"
+ "src/main/java"
+ )
+ JAVA_JAR_FILENAME="ignoreme.jar"
+ java-pkg-simple_src_compile
+ fi
+}
+
+src_test() {
+ JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+ JAVA_TEST_SRC_DIR="../commons-compiler/src/test/java"
+ JAVA_TEST_RESOURCE_DIRS="../commons-compiler/src/test/resources"
+ java-pkg-simple_src_test
+
+ JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+ JAVA_TEST_SRC_DIR="src/test/java"
+ JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+ java-pkg-simple_src_test
+}
+
+src_install() {
+ default
+
+ java-pkg_dojar "commons-compiler.jar"
+ java-pkg_dojar "janino.jar"
+
+ if use doc; then
+ java-pkg_dojavadoc target/api
+ fi
+
+ if use source; then
+ java-pkg_dosrc "../commons-compiler/src/main/java/*"
+ java-pkg_dosrc "src/main/java/*"
+ fi
+}