diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2021-03-12 15:52:38 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-03-12 16:25:54 +0100 |
commit | 4e6dd0c6a83f56a037d5491d884da79df0eefd91 (patch) | |
tree | bf6e20752061c01ac378b0732e970bec438826b2 /dev-java/zstd-jni | |
parent | app-admin/mongo-tools: Stabilize 4.2.12 amd64, #771105 (diff) | |
download | gentoo-4e6dd0c6a83f56a037d5491d884da79df0eefd91.tar.gz gentoo-4e6dd0c6a83f56a037d5491d884da79df0eefd91.tar.bz2 gentoo-4e6dd0c6a83f56a037d5491d884da79df0eefd91.zip |
dev-java/zstd-jni: new package
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/zstd-jni')
-rw-r--r-- | dev-java/zstd-jni/Manifest | 1 | ||||
-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, 56 insertions, 0 deletions
diff --git a/dev-java/zstd-jni/Manifest b/dev-java/zstd-jni/Manifest new file mode 100644 index 000000000000..1aa4df06c8af --- /dev/null +++ b/dev-java/zstd-jni/Manifest @@ -0,0 +1 @@ +DIST v1.4.9-1.tar.gz 9283717 BLAKE2B 1f5f397e6ee78d029110b98aadbf77e8acaf3b3721ff0729b1b382f193367c8ffb20e08c1f7f905c34a5128e6e061652792cdd4f83dd292e3a3b19906f3bf86b SHA512 2a3a2020e46fbf654796ca065ec84fdce05c308d7925a667b239aa0cc8607f78d8944230578e3c663cdd7932bce05e056895f8457af523d939afb24f68f8087b 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 +} |