diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-09-13 22:31:23 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-09-18 14:18:33 +0200 |
commit | afaa37c5c8184ec4bd9af72ad6c2072d6d0144b9 (patch) | |
tree | 693eb5e03a240b99e09bf69c7fef3e461e7313c3 /dev-java | |
parent | dev-java/guava-testlib: add 33.3.0 (diff) | |
download | gentoo-afaa37c5c8184ec4bd9af72ad6c2072d6d0144b9.tar.gz gentoo-afaa37c5c8184ec4bd9af72ad6c2072d6d0144b9.tar.bz2 gentoo-afaa37c5c8184ec4bd9af72ad6c2072d6d0144b9.zip |
dev-java/jnacl: 1.0-r1 adds generated module-info.java
module-info is needed by newer jeromq in order to find jnacl as a module
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/38605/commits/63c62ddcacb0842ffc2884a12c88f85d2fde63bc
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jnacl/jnacl-1.0-r1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-java/jnacl/jnacl-1.0-r1.ebuild b/dev-java/jnacl/jnacl-1.0-r1.ebuild new file mode 100644 index 000000000000..2b78a0000a35 --- /dev/null +++ b/dev-java/jnacl/jnacl-1.0-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.neilalexander:jnacl:1.0" +# JAVA_TESTING_FRAMEWORKS="testng" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Pure Java implementation of NaCl: Networking and Cryptography library" +HOMEPAGE="https://github.com/neilalexander/jnacl" +SRC_URI="https://github.com/neilalexander/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# We don't have fest-assert +RESTRICT="test" + +DEPEND=">=virtual/jdk-11:*" # module-info +RDEPEND=">=virtual/jre-1.8:*" + +JAVA_SRC_DIR="src/main/java" + +src_compile() { + JAVA_JAR_FILENAME="com.neilalexander.${PN}.jar" + java-pkg-simple_src_compile # creates a legacy jar file without module-info + + jdeps --generate-module-info \ + src/main/java \ + --multi-release 9 \ + "${JAVA_JAR_FILENAME}" || die + + JAVA_JAR_FILENAME="${PN}.jar" + java-pkg-simple_src_compile # creates the final jar file including module-info +} |