From dafa6f367240d1f5329ca89fb6f78985dbdc025b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 4 Jun 2024 00:07:50 +0100 Subject: gentoo auto-resync : 04:06:2024 - 00:07:50 --- dev-java/freenet-ext/Manifest | 2 +- dev-java/freenet-ext/freenet-ext-29-r1.ebuild | 82 +++++++++++++++++++++++++++ dev-java/freenet-ext/freenet-ext-29.ebuild | 79 -------------------------- 3 files changed, 83 insertions(+), 80 deletions(-) create mode 100644 dev-java/freenet-ext/freenet-ext-29-r1.ebuild delete mode 100644 dev-java/freenet-ext/freenet-ext-29.ebuild (limited to 'dev-java/freenet-ext') diff --git a/dev-java/freenet-ext/Manifest b/dev-java/freenet-ext/Manifest index 48b3adc1eea0..1904b51e2d3e 100644 --- a/dev-java/freenet-ext/Manifest +++ b/dev-java/freenet-ext/Manifest @@ -1,4 +1,4 @@ AUX freenet-ext-29-convert-jcpuid.patch 1139 BLAKE2B 10dadb5963d4f85ac32402c19a8395ffea7c8a10ad81b8b1f478c099796c796197ff9c40f273a261ed1e26beb3889e90256d900eba60cc306e58c5a061711804 SHA512 251ae92c20465d3d4c63fbff25255861e86d548e7c56a27e519604704995ee75edcf6dd704f89e888c8311d1c4373067b409c0cb4b8775c8b3d1075118fc1df7 DIST freenet-ext-29.tar.gz 4328779 BLAKE2B a9dc6dc34d6dbccc9f89c955f35b35024a7067aa8e89cf195492e77a8ebc92b73cc98e779c7f75ba6a430e994e856937be018a6505e1cda07eeea275925ee0e7 SHA512 11cf0942042483403cf526684a18c2b1766d3f6fb15c2ca4bdb59d95382ed86fcdb71a66d9f43a504abf3ca5c53f9da749086e462bbb56826beb95a2a7f1cbfa -EBUILD freenet-ext-29.ebuild 1719 BLAKE2B a3c05de21f687b7a8c5ca3b6206c44848faaa3087674316ebd8e3857ba8069aad7e9a5351422eb95d1dbdcf8f09bf79f59f8045a5508b81845fc62f53b05b49a SHA512 500cb10ce444f1bc2344863dd29eb74fc53c06d23a560ac355300033f6614390f8d638ab4a26d6f1a0bce095be80474c4062937bea752581943aa14bb243f531 +EBUILD freenet-ext-29-r1.ebuild 1741 BLAKE2B 2a4b45f18a713e5199cd9af05f7c4024e63dfb60f63e7dc17ad927a9998c757777193332e0838ff329bbdc37a5586814c04b602e116703c951951e94efca673b SHA512 76cf45311516e84b94eaac58250cab319b521d35f351657e04d24ba17f2ed3214e602ca5975ed4d172075c613d9a873f7c778eb347f962e89254bcbccec44b96 MISC metadata.xml 298 BLAKE2B 651f820698c9f24c0d59225657cc71feb33c8170c41424180a3653e5d63d68610595c666af1fb595d7573005ee7a75d880d8501c5ab768a626d8cd4e8516522f SHA512 e7f0045030fadf55d88b49bd0dab5045003607a3b3eaa7dce1f95562ad5eb835f5d34f20d071be2a960228d68ce56e1e60845cbdfb5f19d1997fb9b7c7f7c121 diff --git a/dev-java/freenet-ext/freenet-ext-29-r1.ebuild b/dev-java/freenet-ext/freenet-ext-29-r1.ebuild new file mode 100644 index 000000000000..afdb83a3f7f7 --- /dev/null +++ b/dev-java/freenet-ext/freenet-ext-29-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="" # Empty since we only pick what's not packaged + +inherit java-pkg-2 java-pkg-simple toolchain-funcs + +DESCRIPTION="Freenet REference Daemon" +HOMEPAGE="https://github.com/hyphanet/contrib/" +SRC_URI="https://github.com/hyphanet/contrib/archive/v${PV}.tar.gz -> freenet-ext-${PV}.tar.gz" +S="${WORKDIR}/contrib-${PV}" + +LICENSE="public-domain" +SLOT="29" +KEYWORDS="amd64 ~arm ~arm64 ~x86" + +DEPEND=" + dev-libs/gmp:0= + >=virtual/jdk-1.8:* +" +RDEPEND=" + dev-libs/gmp + >=virtual/jre-1.8:* +" + +PATCHES=( + "${FILESDIR}/freenet-ext-29-convert-jcpuid.patch" +) + +JAVA_SRC_DIR=( + "freenet" + "freenet_ext" + "i2p" +) + +src_prepare() { + default + java-pkg-2_src_prepare + mkdir -p i2p/net freenet || die + # From the java directory we need "java/net/i2p" + mv {java,i2p}/net/i2p || die + # and "java/freenet". + mv {java,freenet}/freenet || die +} + +src_compile() { + java-pkg-simple_src_compile + + local compile_lib + compile_lib() { + local name="${1}" + local file="${2}" + shift 2 + + "$(tc-getCC)" "${@}" ${CFLAGS} $(java-pkg_get-jni-cflags) \ + ${LDFLAGS} -shared -fPIC "-Wl,-soname,lib${name}.so" \ + "${file}" -o "lib${name}.so" + } + + cd "${S}/NativeBigInteger/jbigi" || die "unable to cd to jbigi" + compile_lib jbigi src/jbigi.c -Iinclude -lgmp || + die "unable to build jbigi" + + if use amd64 || use x86; then + cd "${S}/jcpuid" || die "unable to cd to jcpuid" + compile_lib jcpuid src/jcpuid.c -Iinclude || + die "unable to build jcpuid" + fi +} + +src_install() { + java-pkg-simple_src_install + + java-pkg_doso NativeBigInteger/jbigi/libjbigi.so + + if use amd64 || use x86; then + java-pkg_doso jcpuid/libjcpuid.so + fi +} diff --git a/dev-java/freenet-ext/freenet-ext-29.ebuild b/dev-java/freenet-ext/freenet-ext-29.ebuild deleted file mode 100644 index 9cac638d5835..000000000000 --- a/dev-java/freenet-ext/freenet-ext-29.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -JAVA_PKG_IUSE="doc source" -MAVEN_ID="" # Empty since we only pick what's not packaged - -inherit java-pkg-2 java-pkg-simple toolchain-funcs - -DESCRIPTION="Freenet REference Daemon" -HOMEPAGE="https://github.com/hyphanet/contrib/" -SRC_URI="https://github.com/hyphanet/contrib/archive/v${PV}.tar.gz -> freenet-ext-${PV}.tar.gz" -S="${WORKDIR}/contrib-${PV}" - -LICENSE="public-domain" -SLOT="29" -KEYWORDS="amd64 ~arm ~arm64 ~x86" - -DEPEND=" - dev-libs/gmp:0= - >=virtual/jdk-1.8:* -" -RDEPEND=">=virtual/jre-1.8:*" - -PATCHES=( - "${FILESDIR}/freenet-ext-29-convert-jcpuid.patch" -) - -JAVA_SRC_DIR=( - "freenet" - "freenet_ext" - "i2p" -) - -src_prepare() { - default - java-pkg-2_src_prepare - mkdir -p i2p/net freenet || die - # From the java directory we need "java/net/i2p" - mv {java,i2p}/net/i2p || die - # and "java/freenet". - mv {java,freenet}/freenet || die -} - -src_compile() { - java-pkg-simple_src_compile - - local compile_lib - compile_lib() { - local name="${1}" - local file="${2}" - shift 2 - - "$(tc-getCC)" "${@}" ${CFLAGS} $(java-pkg_get-jni-cflags) \ - ${LDFLAGS} -shared -fPIC "-Wl,-soname,lib${name}.so" \ - "${file}" -o "lib${name}.so" - } - - cd "${S}/NativeBigInteger/jbigi" || die "unable to cd to jbigi" - compile_lib jbigi src/jbigi.c -Iinclude -lgmp || - die "unable to build jbigi" - - if use amd64 || use x86; then - cd "${S}/jcpuid" || die "unable to cd to jcpuid" - compile_lib jcpuid src/jcpuid.c -Iinclude || - die "unable to build jcpuid" - fi -} - -src_install() { - java-pkg-simple_src_install - - java-pkg_doso NativeBigInteger/jbigi/libjbigi.so - - if use amd64 || use x86; then - java-pkg_doso jcpuid/libjcpuid.so - fi -} -- cgit v1.2.3