summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-04-11 20:05:23 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-04-15 11:35:03 +0200
commit2c587f4b7e68d97502a32b7ada9b712b9d382225 (patch)
tree6d9e70245e0bfec43f4ad06e7c52bdb0ee8ba15a /dev-java/janino
parentRevert "dev-java/janino: treeclean" (diff)
downloadgentoo-2c587f4b7e68d97502a32b7ada9b712b9d382225.tar.gz
gentoo-2c587f4b7e68d97502a32b7ada9b712b9d382225.tar.bz2
gentoo-2c587f4b7e68d97502a32b7ada9b712b9d382225.zip
dev-java/janino: add 3.1.6
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/janino')
-rw-r--r--dev-java/janino/Manifest1
-rw-r--r--dev-java/janino/janino-3.1.6.ebuild100
-rw-r--r--dev-java/janino/metadata.xml3
3 files changed, 104 insertions, 0 deletions
diff --git a/dev-java/janino/Manifest b/dev-java/janino/Manifest
index 60add465e00e..07e10e7546fb 100644
--- a/dev-java/janino/Manifest
+++ b/dev-java/janino/Manifest
@@ -1 +1,2 @@
DIST janino-2.7.0.zip 992669 BLAKE2B cc9ba79d0fc9af5bbe73f167dee6d15619b40b75852fcc227eaf5399e427cde2aeca4b6ef3ff21f303b71dbc21f432cc3e844583cafce3cb073eec1a1498c45a SHA512 0fe0faf16c9d7c63ed14b156bbf75b1ce6deebda24fc0eb0176e96693de9877187694dfb39e748523329430332a36017b2d7d04b2b26ef0847fde7396106185f
+DIST janino-3.1.6.tar.gz 1730264 BLAKE2B a4e15b7b9a9d17b8762f5964171a01da3ce6f1045b8830c9a6e9a0d35c5096376fd667103360791f6848c762177f48f858e4e6233205fb6ff8258e6582211b89 SHA512 6e729733f74e0cc24db56c4030de8751c131c94b3abf0519288cc7539b5dda45de8c33e8dd37d8e70565ad0c3a3122cac7c73d77bc5f92a16db0b0f7ea7436d3
diff --git a/dev-java/janino/janino-3.1.6.ebuild b/dev-java/janino/janino-3.1.6.ebuild
new file mode 100644
index 000000000000..142a47c4d62d
--- /dev/null
+++ b/dev-java/janino/janino-3.1.6.ebuild
@@ -0,0 +1,100 @@
+# 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://codeload.github.com/janino-compiler/janino/tar.gz/v3.1.6 --slot 0 --keywords "~amd64" --ebuild JANjanino-3.1.6.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.codehaus.janino:janino:3.1.6"
+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://codeload.github.com/janino-compiler/janino/tar.gz/v${PV} -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# Common dependencies
+# POM: janino/pom.xml
+# org.codehaus.janino:commons-compiler:3.1.6 -> !!!groupId-not-found!!!
+
+# Compile dependencies
+# POM: janino/pom.xml
+# org.apache.ant:ant:1.10.9 -> !!!groupId-not-found!!!
+# POM: janino/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"
+ echo 'We are in '"$(pwd)"
+ 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
+}
diff --git a/dev-java/janino/metadata.xml b/dev-java/janino/metadata.xml
index 4221e170cbc0..ea18cea355a4 100644
--- a/dev-java/janino/metadata.xml
+++ b/dev-java/janino/metadata.xml
@@ -5,4 +5,7 @@
<email>java@gentoo.org</email>
<name>Java</name>
</maintainer>
+ <longdescription>
+ The "JANINO" implementation of the "commons-compiler" API: Super-small, super-fast, independent from the JDK's "tools.jar".
+ </longdescription>
</pkgmetadata>