diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-28 10:27:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-28 10:27:13 +0100 |
commit | f4fc10428424904caf2035cffc442195cb088b2c (patch) | |
tree | 72f320d5963e55586cfdeed2b14c72b8191b6327 /dev-java/zstd-jni | |
parent | fbd9734cedfe790955100b8e4ab3613457d77b1a (diff) |
gentoo resync : 28.07.2021
Diffstat (limited to 'dev-java/zstd-jni')
-rw-r--r-- | dev-java/zstd-jni/Manifest | 3 | ||||
-rw-r--r-- | dev-java/zstd-jni/files/zstd-jni-1.5.0.4-filter-flags.patch | 9 | ||||
-rw-r--r-- | dev-java/zstd-jni/zstd-jni-1.5.0.4.ebuild | 57 |
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-java/zstd-jni/Manifest b/dev-java/zstd-jni/Manifest index 9286e5d40b31..845c06bf18d9 100644 --- a/dev-java/zstd-jni/Manifest +++ b/dev-java/zstd-jni/Manifest @@ -1,3 +1,6 @@ +AUX zstd-jni-1.5.0.4-filter-flags.patch 369 BLAKE2B d79c3f5bee1e8faafb96a6d87c03c1cf5d1f292697fef1d7724394b9a415a30d9912946a612003e93a278648e4e5b1cc532e28d2c296c90b683eb7e0e769ac9c SHA512 fb56c386c6db387aa2c27a722d3c417813c427425d0dc6fb350ca02bee3f261efbb639eefbcc5dd58107f33c0211dba1b5bc696680e111a6338d0a67381ab533 DIST zstd-jni-1.4.9.1.tar.gz 9283717 BLAKE2B 1f5f397e6ee78d029110b98aadbf77e8acaf3b3721ff0729b1b382f193367c8ffb20e08c1f7f905c34a5128e6e061652792cdd4f83dd292e3a3b19906f3bf86b SHA512 2a3a2020e46fbf654796ca065ec84fdce05c308d7925a667b239aa0cc8607f78d8944230578e3c663cdd7932bce05e056895f8457af523d939afb24f68f8087b +DIST zstd-jni-1.5.0.4.tar.gz 9296353 BLAKE2B 1b4011cc7876d3d4ca2636d9872b1127d3a700f4cc6b159a36dbff5e73a2ec3af91d4a27965123c9dbb9f017200bb68bf7e078806d25d7e395243c2251936891 SHA512 2d83a1e4ff6c25ef301dc25343dcfd4f2dda7f8c44aae2d1d5da2159affb6d0c2885693022dd5cbd2d360540092bebfe0635b61c899fc7ce8dc496a96ba6f017 EBUILD zstd-jni-1.4.9.1.ebuild 1175 BLAKE2B 05110ee23b299827046cf47a18734131394944a6495701c71fdc486df616e6b1ebb2348407500000a4e0669343b3f02774d78ef5171de8ca1bbf533ed7155ba8 SHA512 2c858cf1079cbf408d8623fecaf010ca38a019d9d9364fbd538e7b21fc76f2c7cc9242e4a6e168777c4b0d9d8edbe26689f10269fa1681b721230f8b1eb9b232 +EBUILD zstd-jni-1.5.0.4.ebuild 1511 BLAKE2B 63a3a04987337af882ed5cec2b8ca0e3a9506faaa1dbb2cb611a7277715aababf8d83050f88bd95df0bf9bf9cef2f5689e5f2cfe62731115fadf32b99f0958f8 SHA512 beba7076a1a96f16f82b604a88dd1dbdc69397b58f608e83d3c125de116ef53d902471e6ca708dec8f521ef3f66a6dbcb77f1fd1d8d4575591bf7a38dea985aa MISC metadata.xml 232 BLAKE2B 513679b02247d8e4cb4c874abd785119d9ca62ad24c44969d52a42c3765d0ebf689024512a2c4c48e69688a4ce02a74ae05708b050a720bc73d8d2bf2ceff58d SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 diff --git a/dev-java/zstd-jni/files/zstd-jni-1.5.0.4-filter-flags.patch b/dev-java/zstd-jni/files/zstd-jni-1.5.0.4-filter-flags.patch new file mode 100644 index 000000000000..8c880da46623 --- /dev/null +++ b/dev-java/zstd-jni/files/zstd-jni-1.5.0.4-filter-flags.patch @@ -0,0 +1,9 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5d0092f..d0f45b5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,4 +10,3 @@ file(GLOB_RECURSE SOURCES RELATIVE ${CMAKE_SOURCE_DIR} "src/*.c") + add_library(zstd-jni-${NATIVE_VERSION} SHARED ${SOURCES}) + add_definitions("-DZSTD_MULTITHREAD=1") + add_definitions("-DZSTD_LEGACY_SUPPORT=4") +-add_definitions("-Oz") diff --git a/dev-java/zstd-jni/zstd-jni-1.5.0.4.ebuild b/dev-java/zstd-jni/zstd-jni-1.5.0.4.ebuild new file mode 100644 index 000000000000..116244dc24e7 --- /dev/null +++ b/dev-java/zstd-jni/zstd-jni-1.5.0.4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MAVEN_ID="com.github.luben:zstd-jni:1.5.0-4" +MY_PV="$(ver_rs 3 -)" + +inherit java-pkg-2 java-pkg-simple cmake + +DESCRIPTION="JNI bindings for Zstd native library" + +HOMEPAGE="https://github.com/luben/zstd-jni" +SRC_URI="https://github.com/luben/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-filter-flags.patch" +) + +JAVA_SRC_DIR="src/main/java" + +src_prepare() { + cmake_src_prepare + + echo -e "package com.github.luben.zstd.util;\n\npublic class ZstdVersion\n{\n\tpublic static final String VERSION = \"${PV}\";\n}\n" \ + >> ${JAVA_SRC_DIR}/com/github/luben/zstd/util/ZstdVersion.java || die "Failed to generate version class" +} + +src_configure() { + local mycmakeargs=( + -DJAVA_HOME="$(java-config -g JAVA_HOME)" + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + mkdir -p "${S}/target/classes/META-INF" || die "Failed to create META-INF dir" + echo "Manifest-Version: 1.0 +Implementation-Version: ${MY_PV} +Bundle-NativeCode: libzstd-jni.so;osname=Linux" > "${S}/target/classes/META-INF/MANIFEST.MF" || die "Failed to create MANIFEST.MF" + java-pkg-simple_src_compile + java-pkg_addres ${JAVA_JAR_FILENAME} "${BUILD_DIR}" -name libzstd-jni.so || die "Failed to add library to jar" +} + +src_install() { + java-pkg-simple_src_install +} |