From ad061b46127090261a449aa34f2623bba83acb48 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Fri, 22 Oct 2021 21:19:05 -0400 Subject: media-libs/libjxl: fix java? --- media-libs/libjxl/libjxl-0.6.ebuild | 13 +++++++++---- media-libs/libjxl/libjxl-9999.ebuild | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) (limited to 'media-libs/libjxl') 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 } -- cgit v1.2.3-70-g09d2