From 93a93e9a3b53c1a73142a305ea1f8136846942ee Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Dec 2021 14:08:05 +0000 Subject: gentoo resync : 22.12.2021 --- net-libs/nativebiginteger/Manifest | 4 +- .../nativebiginteger-0.9.48.ebuild | 71 ---------------------- .../nativebiginteger/nativebiginteger-1.6.1.ebuild | 71 ++++++++++++++++++++++ 3 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 net-libs/nativebiginteger/nativebiginteger-0.9.48.ebuild create mode 100644 net-libs/nativebiginteger/nativebiginteger-1.6.1.ebuild (limited to 'net-libs/nativebiginteger') diff --git a/net-libs/nativebiginteger/Manifest b/net-libs/nativebiginteger/Manifest index 4804da982ad2..e8aa8469e18b 100644 --- a/net-libs/nativebiginteger/Manifest +++ b/net-libs/nativebiginteger/Manifest @@ -1,5 +1,5 @@ -DIST i2psource_0.9.48.tar.bz2 33029295 BLAKE2B 8210018610d3dd8272d3c136f32048ede9446c517971be97d6588c6a1a592e9db2261077da3634fa29af28ecdb488427dd1145a731b130b75f41c3c56a8c8779 SHA512 ddfbc8f86bc2fd4012e14732493d30e292af1603d74b1f786a0ecc56a1373301ec9b3fd16fe2e37777f953053291b8efdb5510959fcf1e42d7e5f8ec87d85a8a DIST i2psource_0.9.50.tar.bz2 32409456 BLAKE2B 0c45b48ae6e1957b6c5d828757c70489d260fe15276559e5c366c68c10274b9020b2978bf0674a8628638f41b1e269af0c4d35c20c1f0cee419857c0c803dd82 SHA512 2d6b1d3ed4d32af36d0d3b257dca6fad981e3fa0cd3e45b8227e76e57de092c11ff7c239e879739d330ae809bcf6c71640de32de0c52c54ef8597f0c0e1467ec -EBUILD nativebiginteger-0.9.48.ebuild 1597 BLAKE2B 6314ef37308dd62a44bda83f61c483fde01c555f10618f03494be0335766d197fe8180bb8c1ca3398721cf0e58c0c2aebe2a40b9d1f5ca0283259a3707812597 SHA512 7d6e296766446dde688e3767fb499abfe6b5909e6830fb590e859ad0bfc56d4d8d13b41b9e277053015192e43e5e99337f30c46f7628fcb2c3ac980649b26598 +DIST i2psource_1.6.1.tar.bz2 33043548 BLAKE2B dd7394ec596b016e76e9d74ee06c5db12bce50a859b0bd1194b0d3dd30cb1c2b9116abf3fdf9847c0b89b71a2a2b553f999fd29901567ddd5e4462c43d25c866 SHA512 c7c26ce10e159bc1f46b55ad2ef9773f24cb647d2ac01ff6acbb08c7020cb488fd1aeb9bb2d50122d2e87e0606f8fe46d2cc4360fa5df62bb1e9af0ce5e9a52a EBUILD nativebiginteger-0.9.50.ebuild 1597 BLAKE2B 513a3b204f66ddab99bc3c7e6b6e61b992fc1816816ca3405a3e69c73f98498f3cd859f8a9651080d50480d9e5c7007042603a764a850b2cc54c4a56eaf015d9 SHA512 4c744c1f5c8ae58c79ee3deed71332f9991fa22dd006b6935a0ee1f154d633f1066d9d03f462b4d746feb9f35d5b9f9f9221bff0f4e24ca2239feb5e52cb438d +EBUILD nativebiginteger-1.6.1.ebuild 1592 BLAKE2B 8ef61aaa202a62268320525ceacb1c50b3d34ee02e5964417a081759f25171d570b7f81b0305b2c6b3095b74d9aab9571fe1251cbd8ca6bdade2e8475c2ae86e SHA512 2684164a124802cc31fed8e62ef5bf5c64240a41a1bb1ab0517712be1deb384799ed6cce8b6bd29d9ec6827178236eaad2be6a3c298be09f1112e1e788f2629a MISC metadata.xml 398 BLAKE2B fd781dc140f624c85f13ecb03585bbfa64da7e2c25dd8f390bfe08c1590c2ee9b2aabdc3b52d578c7de68c2fb9081d7bd88e5e25521b0bef93b45fb0d525311e SHA512 f61d95738d459dd3bb50eeec2017e7b744a903202fae14907dda8588bd92dedb58e386e3786663fa8d0df392c39eb4a61524b43c8c8e84266ef83b5c22fc847e diff --git a/net-libs/nativebiginteger/nativebiginteger-0.9.48.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.9.48.ebuild deleted file mode 100644 index e0d376b7aa6d..000000000000 --- a/net-libs/nativebiginteger/nativebiginteger-0.9.48.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 2018-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit java-pkg-2 toolchain-funcs - -DESCRIPTION="jbigi library used by net-vpn/i2p" -HOMEPAGE="https://geti2p.net" -SRC_URI="https://download.i2p2.de/releases/${PV}/i2psource_${PV}.tar.bz2" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/gmp:0= - virtual/jdk:1.8 -" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/i2p-${PV}/core" - -PATCHES=( - "${FILESDIR}/${P}-asmfix.patch" -) - -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}/c/jbigi/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}/c/jcpuid" || die "unable to cd to jcpuid" - compile_lib jcpuid src/jcpuid.c -Iinclude || - die "unable to build jcpuid" - fi - - if use test; then - cd "${S}/java/src" || die "unable to cd to java/src" - ejavac -encoding UTF-8 net/i2p/util/NativeBigInteger.java || - die "unable to build tests" - fi -} - -src_test() { - cd "${S}/java/src" || die "unable to cd to java/src" - "$(java-config -J)" -Djava.library.path="${S}/c/jbigi/jbigi" net/i2p/util/NativeBigInteger || - die "unable to pass tests" -} - -src_install() { - dolib.so c/jbigi/jbigi/libjbigi.so - - if use amd64 || use x86; then - dolib.so c/jcpuid/libjcpuid.so - fi -} diff --git a/net-libs/nativebiginteger/nativebiginteger-1.6.1.ebuild b/net-libs/nativebiginteger/nativebiginteger-1.6.1.ebuild new file mode 100644 index 000000000000..f8721a066fc9 --- /dev/null +++ b/net-libs/nativebiginteger/nativebiginteger-1.6.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 2018-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit java-pkg-2 toolchain-funcs + +DESCRIPTION="jbigi library used by net-vpn/i2p" +HOMEPAGE="https://geti2p.net" +SRC_URI="https://files.i2p-projekt.de/${PV}/i2psource_${PV}.tar.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/gmp:0= + virtual/jdk:1.8 +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/i2p-${PV}/core" + +PATCHES=( + "${FILESDIR}/${P}-asmfix.patch" +) + +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}/c/jbigi/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}/c/jcpuid" || die "unable to cd to jcpuid" + compile_lib jcpuid src/jcpuid.c -Iinclude || + die "unable to build jcpuid" + fi + + if use test; then + cd "${S}/java/src" || die "unable to cd to java/src" + ejavac -encoding UTF-8 net/i2p/util/NativeBigInteger.java || + die "unable to build tests" + fi +} + +src_test() { + cd "${S}/java/src" || die "unable to cd to java/src" + "$(java-config -J)" -Djava.library.path="${S}/c/jbigi/jbigi" net/i2p/util/NativeBigInteger || + die "unable to pass tests" +} + +src_install() { + dolib.so c/jbigi/jbigi/libjbigi.so + + if use amd64 || use x86; then + dolib.so c/jcpuid/libjcpuid.so + fi +} -- cgit v1.2.3