summaryrefslogtreecommitdiff
path: root/media-libs/libjxl
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-10-22 21:19:05 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-10-22 21:19:05 -0400
commitad061b46127090261a449aa34f2623bba83acb48 (patch)
tree2ed5643410417f7a9be1be7e3b6a0a9827aa6380 /media-libs/libjxl
parent6216610b34f962777a246ee9365a607e2e50dceb (diff)
downloadgentoo-overlay-ad061b46127090261a449aa34f2623bba83acb48.tar.xz
gentoo-overlay-ad061b46127090261a449aa34f2623bba83acb48.zip
media-libs/libjxl: fix java?
Diffstat (limited to 'media-libs/libjxl')
-rw-r--r--media-libs/libjxl/libjxl-0.6.ebuild13
-rw-r--r--media-libs/libjxl/libjxl-9999.ebuild13
2 files changed, 18 insertions, 8 deletions
diff --git a/media-libs/libjxl/libjxl-0.6.ebuild b/media-libs/libjxl/libjxl-0.6.ebuild
index be55cc0..a931ef9 100644
--- a/media-libs/libjxl/libjxl-0.6.ebuild
+++ b/media-libs/libjxl/libjxl-0.6.ebuild
@@ -1,9 +1,10 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=8
+EAPI=7
-inherit cmake-multilib
+CMAKE_ECLASS=cmake
+inherit cmake-multilib java-pkg-opt-2
DESCRIPTION="JPEG XL image format reference implementation"
HOMEPAGE="https://github.com/libjxl/libjxl"
@@ -35,7 +36,7 @@ RDEPEND="app-arch/brotli[${MULTILIB_USEDEP}]
sys-libs/zlib[${MULTILIB_USEDEP}]
)
gif? ( media-libs/giflib[${MULTILIB_USEDEP}] )
- java? ( virtual/jre:* )
+ java? ( >=virtual/jre-1.8:* )
jpeg? ( virtual/jpeg[${MULTILIB_USEDEP}] )
openexr? ( media-libs/openexr:=[${MULTILIB_USEDEP}] )
viewers? (
@@ -50,7 +51,7 @@ BDEPEND="
"
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] )
- java? ( virtual/jdk:* )
+ java? ( >=virtual/jdk-1.8:* )
"
PATCHES=(
@@ -64,6 +65,7 @@ src_prepare() {
ln -sv ../../lodepng-${LODEPNG_COMMIT} third_party/lodepng || die
fi
cmake_src_prepare
+ java-pkg-opt-2_src_prepare
}
multilib_src_configure() {
@@ -111,4 +113,7 @@ multilib_src_install() {
if ! use static-libs; then
rm "${ED}"/usr/$(get_libdir)/libjxl{,_dec}.a || die
fi
+ if use java && multilib_is_native_abi; then
+ java-pkg_doso tools/libjxl_jni.so
+ fi
}
diff --git a/media-libs/libjxl/libjxl-9999.ebuild b/media-libs/libjxl/libjxl-9999.ebuild
index df0b036..8e1e475 100644
--- a/media-libs/libjxl/libjxl-9999.ebuild
+++ b/media-libs/libjxl/libjxl-9999.ebuild
@@ -1,9 +1,10 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=8
+EAPI=7
-inherit cmake-multilib
+CMAKE_ECLASS=cmake
+inherit cmake-multilib java-pkg-opt-2
DESCRIPTION="JPEG XL image format reference implementation"
HOMEPAGE="https://github.com/libjxl/libjxl"
@@ -35,7 +36,7 @@ RDEPEND="app-arch/brotli[${MULTILIB_USEDEP}]
sys-libs/zlib[${MULTILIB_USEDEP}]
)
gif? ( media-libs/giflib[${MULTILIB_USEDEP}] )
- java? ( virtual/jre:* )
+ java? ( >=virtual/jre-1.8:* )
jpeg? ( virtual/jpeg[${MULTILIB_USEDEP}] )
openexr? ( media-libs/openexr:=[${MULTILIB_USEDEP}] )
viewers? (
@@ -50,7 +51,7 @@ BDEPEND="
"
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] )
- java? ( virtual/jdk:* )
+ java? ( >=virtual/jdk-1.8:* )
"
PATCHES=(
@@ -63,6 +64,7 @@ src_prepare() {
ln -sv ../../lodepng-${LODEPNG_COMMIT} third_party/lodepng || die
fi
cmake_src_prepare
+ java-pkg-opt-2_src_prepare
}
multilib_src_configure() {
@@ -101,4 +103,7 @@ multilib_src_install() {
if ! use static-libs; then
rm "${ED}"/usr/$(get_libdir)/libjxl{,_dec}.a || die
fi
+ if use java && multilib_is_native_abi; then
+ java-pkg_doso tools/libjxl_jni.so
+ fi
}