diff options
Diffstat (limited to 'dev-java/zstd-jni')
-rw-r--r-- | dev-java/zstd-jni/Manifest | 3 | ||||
-rw-r--r-- | dev-java/zstd-jni/metadata.xml | 8 | ||||
-rw-r--r-- | dev-java/zstd-jni/zstd-jni-1.4.9.1.ebuild | 47 |
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-java/zstd-jni/Manifest b/dev-java/zstd-jni/Manifest new file mode 100644 index 000000000000..594c32a27938 --- /dev/null +++ b/dev-java/zstd-jni/Manifest @@ -0,0 +1,3 @@ +DIST v1.4.9-1.tar.gz 9283717 BLAKE2B 1f5f397e6ee78d029110b98aadbf77e8acaf3b3721ff0729b1b382f193367c8ffb20e08c1f7f905c34a5128e6e061652792cdd4f83dd292e3a3b19906f3bf86b SHA512 2a3a2020e46fbf654796ca065ec84fdce05c308d7925a667b239aa0cc8607f78d8944230578e3c663cdd7932bce05e056895f8457af523d939afb24f68f8087b +EBUILD zstd-jni-1.4.9.1.ebuild 1151 BLAKE2B 192577cddf42c0acd44a379e44df9ab4795770948359f92f17825b61b304241b9169dc3a28a10d4544a1923020e945abb3dc7bb3ce8a3caf2f4c2b7a60116d88 SHA512 8ec83561effb39657aae0dff182059f14938474ad9e1832da7cfc5f7a9f0b7a3cbcef30859c27682053599a4b6ac793bdc1b5f0c5deed194144158b6c9a27c00 +MISC metadata.xml 232 BLAKE2B 513679b02247d8e4cb4c874abd785119d9ca62ad24c44969d52a42c3765d0ebf689024512a2c4c48e69688a4ce02a74ae05708b050a720bc73d8d2bf2ceff58d SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 diff --git a/dev-java/zstd-jni/metadata.xml b/dev-java/zstd-jni/metadata.xml new file mode 100644 index 000000000000..2444066aa02b --- /dev/null +++ b/dev-java/zstd-jni/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> +</maintainer> +</pkgmetadata> diff --git a/dev-java/zstd-jni/zstd-jni-1.4.9.1.ebuild b/dev-java/zstd-jni/zstd-jni-1.4.9.1.ebuild new file mode 100644 index 000000000000..ee4f35125cc7 --- /dev/null +++ b/dev-java/zstd-jni/zstd-jni-1.4.9.1.ebuild @@ -0,0 +1,47 @@ +# 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.4.9-1" +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" + +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND="${RDEPEND}" + +JAVA_SRC_DIR="src/main/java" + +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 +} |