summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-09-13 06:56:43 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-09-18 14:20:39 +0200
commite121559aad6b5b41923ff41b4787a7cac7e2c98f (patch)
tree8b9d1852059ca4e604884498390e55b63f44006f /dev-java/jeromq
parentdev-java/jnacl: 1.0-r1 adds generated module-info.java (diff)
downloadgentoo-e121559aad6b5b41923ff41b4787a7cac7e2c98f.tar.gz
gentoo-e121559aad6b5b41923ff41b4787a7cac7e2c98f.tar.bz2
gentoo-e121559aad6b5b41923ff41b4787a7cac7e2c98f.zip
dev-java/jeromq: add 0.6.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38605/commits/4be2b989f4dc9c00cd608a41c66628588bbf158e Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jeromq')
-rw-r--r--dev-java/jeromq/Manifest1
-rw-r--r--dev-java/jeromq/jeromq-0.6.0.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-java/jeromq/Manifest b/dev-java/jeromq/Manifest
index 015d1b539992..cecc2a3c6361 100644
--- a/dev-java/jeromq/Manifest
+++ b/dev-java/jeromq/Manifest
@@ -1 +1,2 @@
DIST jeromq-0.5.2.tar.gz 422673 BLAKE2B f244ef95bff70de8eb184e6eda8e292c54488435b8c9e000dbff5f1d6cb7b2b3066061bcb1fa678d2756117a52c39df795dae84071b544b0f577a331aecc8516 SHA512 49a3e9f7ff6b54dcde03958a84e72b8d4b44fb150fc980e9f1ea4ba9e258dcb0a0730d006550a3eb33e9f241e6d89cdc0ee2155213ddd309e255d606d1fa567b
+DIST jeromq-0.6.0.tar.gz 467854 BLAKE2B 65b5b8cf676965a07d4bc26898a6db6739a1b5431678c16c0c182eee5d0c69c86a01b17ad1055caacec78149816ddc0c9468fec577f2ab82c681b7822858ee17 SHA512 2e140d456bf6a7f566b3cd563a7697d08c96b004ae70cdc37e427e4526cf8db83e5df6a492e63887f3dba639e3c29384fc46ee9e9e4a6a800e3c2c2446a65695
diff --git a/dev-java/jeromq/jeromq-0.6.0.ebuild b/dev-java/jeromq/jeromq-0.6.0.ebuild
new file mode 100644
index 000000000000..9e92f5fd397e
--- /dev/null
+++ b/dev-java/jeromq/jeromq-0.6.0.ebuild
@@ -0,0 +1,55 @@
+# 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="org.zeromq:jeromq:0.6.0"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Pure Java implementation of libzmq"
+HOMEPAGE="https://github.com/zeromq/jeromq"
+SRC_URI="https://github.com/zeromq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${P}"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+PROPERTIES="test_network"
+RESTRICT="test"
+
+DEPEND="
+ >=dev-java/jnacl-1.0-r1:0
+ >=virtual/jdk-11:*
+"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+DOCS=( AUTHORS {CHANGELOG,CONTRIBUTING,README}.md )
+
+JAVA_CLASSPATH_EXTRA="jnacl"
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_compile() {
+ JAVA_JAR_FILENAME="org.zeromq.${PN}.jar"
+ java-pkg-simple_src_compile # creates a legacy jar file without module-info
+
+ # maven does it with jnacl not providing module-info
+ # need to figure out how jdeps could do so - we simply add one to jnacl
+ jdeps \
+ --module-path "$(java-pkg_getjars jnacl)" \
+ --add-modules com.neilalexander.jnacl \
+ --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
+}