summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-09-21 09:21:39 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-12-23 10:38:19 +0100
commit6136d84cd15ef8494b6b394abda17adfa4277763 (patch)
tree978c9411c1032a6b82fa7b83e64f2354aadd7159 /dev-java
parentdev-java/jdisasm: new package, add 1.0.6 (diff)
downloadgentoo-6136d84cd15ef8494b6b394abda17adfa4277763.tar.gz
gentoo-6136d84cd15ef8494b6b394abda17adfa4277763.tar.bz2
gentoo-6136d84cd15ef8494b6b394abda17adfa4277763.zip
dev-java/janino: add 3.1.8
Dependency of >=dev-java/logback-{classic,core}-1.4.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/27614 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.8.ebuild101
2 files changed, 102 insertions, 0 deletions
diff --git a/dev-java/janino/Manifest b/dev-java/janino/Manifest
index fb07b1534b7c..98ab4e04aed5 100644
--- a/dev-java/janino/Manifest
+++ b/dev-java/janino/Manifest
@@ -1 +1,2 @@
DIST janino-3.1.7.tar.gz 1747439 BLAKE2B 6e42a9d5cc079c2cf17b76c1d76420ff3fa0027b54736f23e0aa2c5062f4dad19c1ac7efa678fa06cee369a01125a64a4ee32e4120e60ecd8a56d47aa4f69503 SHA512 541925fc10f5fbefde45e60cec1925e3d6f5b7244a6b9de251b5483224bee05c16182e2bf137a00349cbdb6c209ce18b2203ca066e5a7a1f146efa255f5f7799
+DIST janino-3.1.8.tar.gz 1753540 BLAKE2B 4fe3031133d9f4e9f20ffb559b9785399de8c5908abc97894eb63d7b16c197fc27763c274da7163e2bb3c5552bb5bbc9ae69da88d87da5b1c061baa2358d1441 SHA512 d79e68351f42069eb32974b0ba68e70a5510950ec04bfab49d4000310e487f3d4a3f50f0cc06d158830530d3cdb2cf9d68b291acea2218ad21f34c280604dad7
diff --git a/dev-java/janino/janino-3.1.8.ebuild b/dev-java/janino/janino-3.1.8.ebuild
new file mode 100644
index 000000000000..d4e4b2388cb3
--- /dev/null
+++ b/dev-java/janino/janino-3.1.8.ebuild
@@ -0,0 +1,101 @@
+# 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.8.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild janino-3.1.8.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.codehaus.janino:janino:3.1.8"
+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/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# Compile dependencies
+# POM: ${PN}/pom.xml
+# org.apache.ant:ant:1.10.11 -> !!!suitable-mavenVersion-not-found!!!
+# POM: ${PN}/pom.xml
+# test? de.unkrig.jdisasm:jdisasm:1.0.6 -> !!!groupId-not-found!!!
+# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ dev-java/ant-core:0
+ test? (
+ dev-java/jdisasm:0
+ )
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*"
+
+S="${WORKDIR}/${P}/janino"
+
+src_prepare() {
+ default
+ java-pkg_clean
+}
+
+src_compile() {
+ JAVA_JAR_FILENAME="commons-compiler.jar"
+ JAVA_SRC_DIR="../commons-compiler/src/main/java"
+ java-pkg-simple_src_compile
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":commons-compiler.jar"
+ rm -r target || die
+
+ JAVA_CLASSPATH_EXTRA="ant-core"
+ JAVA_JAR_FILENAME="janino.jar"
+ JAVA_RESOURCE_DIRS="src/main/resources"
+ JAVA_SRC_DIR="src/main/java"
+ 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() {
+ einfo "Testing commons-compiler"
+ JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+ JAVA_TEST_RESOURCE_DIRS="../commons-compiler/src/test/resources"
+ JAVA_TEST_SRC_DIR="../commons-compiler/src/test/java"
+ java-pkg-simple_src_test
+
+ einfo "Testing janino"
+ JAVA_TEST_GENTOO_CLASSPATH="jdisasm,junit-4"
+ JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+ JAVA_TEST_SRC_DIR="src/test/java"
+ 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
+}