summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2021-03-13 13:21:40 +0100
committerFabian Groffen <grobian@gentoo.org>2021-03-13 13:21:44 +0100
commitd02c4bd0c03b2824f55cfff124de93ebccde8c2e (patch)
tree1c54957950a61e7360e004216edc07c7eb261c53 /dev-java
parentkde-frameworks/syntax-highlighting: Drop 5.77.0-r1 and 5.79.0 (diff)
downloadgentoo-d02c4bd0c03b2824f55cfff124de93ebccde8c2e.tar.gz
gentoo-d02c4bd0c03b2824f55cfff124de93ebccde8c2e.tar.bz2
gentoo-d02c4bd0c03b2824f55cfff124de93ebccde8c2e.zip
dev-java/snappy-1.1.0.1: fix for and marked ~x64-macos
Closes: https://bugs.gentoo.org/638284 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/snappy/snappy-1.1.0.1.ebuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/dev-java/snappy/snappy-1.1.0.1.ebuild b/dev-java/snappy/snappy-1.1.0.1.ebuild
index 60983950c431..443002b9ab82 100644
--- a/dev-java/snappy/snappy-1.1.0.1.ebuild
+++ b/dev-java/snappy/snappy-1.1.0.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
@@ -16,7 +16,7 @@ SRC_URI="https://github.com/xerial/${MY_PN}/archive/${PV}.tar.gz -> ${PN}-java-$
LICENSE="Apache-2.0"
SLOT="1.1"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~x64-macos"
IUSE=""
CDEPEND="dev-java/osgi-core-api:0
@@ -53,7 +53,14 @@ src_compile() {
}
src_install() {
- java-pkg_doso "${S}"/target/libsnappyjava.so
+ local jniext=.so
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ jniext=.jnilib
+ # avoid install_name check failure
+ install_name_tool -id @loader_path/libsnappyjava${jniext} \
+ "${S}"/target/libsnappyjava${jniext}
+ fi
+ java-pkg_doso "${S}"/target/libsnappyjava${jniext}
java-pkg_dojar "${S}/target/${PN}.jar"
use source && java-pkg_dosrc "${S}"/src/main/java/*