summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2021-12-19 12:38:11 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2022-02-13 09:42:53 +0100
commit7146cab738591bc023a512150b1b8acae6441165 (patch)
tree193024bf573b901784ab39f7767a19d454638116 /dev-java/jnacl
parentnet-libs/webkit-gtk: Stabilize 2.34.5 x86, #833254 (diff)
downloadgentoo-7146cab738591bc023a512150b1b8acae6441165.tar.gz
gentoo-7146cab738591bc023a512150b1b8acae6441165.tar.bz2
gentoo-7146cab738591bc023a512150b1b8acae6441165.zip
dev-java/jnacl: new package
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/24106/commits/035a343bc55c082876a7e1cf7fcf49fba111661e Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jnacl')
-rw-r--r--dev-java/jnacl/Manifest1
-rw-r--r--dev-java/jnacl/jnacl-1.0.ebuild51
-rw-r--r--dev-java/jnacl/metadata.xml13
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-java/jnacl/Manifest b/dev-java/jnacl/Manifest
new file mode 100644
index 000000000000..499e45453758
--- /dev/null
+++ b/dev-java/jnacl/Manifest
@@ -0,0 +1 @@
+DIST jnacl-1.0.tar.gz 9485 BLAKE2B ecbe56d12d7cc53dfc87b2f332c1c4328946ca4ed0d4ec3b8fa22a2ea5d98a3acf51fb17e1d93d3d7831f98a36a3d657a904cb63b225da4a30b8e907cbfe8384 SHA512 b4f28b4bd6deb13c17e74f911f89e762c9111aa90474754f072df66f0ca4bd366dc8369f51404fbd4f6c5f55223bb98b6bfe3de78e2f6b5527509741008f2015
diff --git a/dev-java/jnacl/jnacl-1.0.ebuild b/dev-java/jnacl/jnacl-1.0.ebuild
new file mode 100644
index 000000000000..eecb400d9c4c
--- /dev/null
+++ b/dev-java/jnacl/jnacl-1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/neilalexander/jnacl/archive/refs/tags/v1.0.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild jnacl-1.0.ebuild
+
+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"
+
+# We don't have fest-assert
+RESTRICT="test"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+# Compile dependencies
+# POM: pom.xml
+# test? org.easytesting:fest-assert:1.4 -> !!!groupId-not-found!!!
+# test? org.testng:testng:6.13.1 -> !!!groupId-not-found!!!
+
+DEPEND=">=virtual/jdk-1.8:*"
+# test? (
+# !!!groupId-not-found!!!
+# )
+#"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+DOCS=( LICENSE README.md )
+
+S="${WORKDIR}/${P}"
+
+JAVA_SRC_DIR="src/main/java"
+
+# JAVA_TEST_GENTOO_CLASSPATH="!!!groupId-not-found!!!,!!!groupId-not-found!!!"
+# JAVA_TEST_SRC_DIR="src/test/java"
+
+src_install() {
+ default # https://bugs.gentoo.org/789582
+ java-pkg-simple_src_install
+}
diff --git a/dev-java/jnacl/metadata.xml b/dev-java/jnacl/metadata.xml
new file mode 100644
index 000000000000..85fac4d279d3
--- /dev/null
+++ b/dev-java/jnacl/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Pure Java implementation of curve25519, salsa20, hsalsa20, xsalsa20 and poly1305 cryptographic primitives, along with a NaCl "Box" implementation
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/neilalexander/jnacl/issues</bugs-to>
+ </upstream>
+</pkgmetadata>