From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1D3F71584AD for ; Sun, 20 Apr 2025 09:15:27 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id D71FC3430BB for ; Sun, 20 Apr 2025 09:15:26 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 91CA41104B7; Sun, 20 Apr 2025 09:15:21 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 894CB1104B7 for ; Sun, 20 Apr 2025 09:15:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 316F0341630 for ; Sun, 20 Apr 2025 09:15:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91FDF2408 for ; Sun, 20 Apr 2025 09:15:19 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1745140490.0e0ae4efeb34b664f288cfcddabeae8163848eb4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libheif/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libheif/Manifest media-libs/libheif/libheif-1.19.7.ebuild media-libs/libheif/libheif-9999.ebuild media-libs/libheif/metadata.xml X-VCS-Directories: media-libs/libheif/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0e0ae4efeb34b664f288cfcddabeae8163848eb4 X-VCS-Branch: master Date: Sun, 20 Apr 2025 09:15:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5f3a5f9f-e469-4145-9e8b-92bce263004c X-Archives-Hash: 18aa4d0d69584922205dbefb4a0a6c2b commit: 0e0ae4efeb34b664f288cfcddabeae8163848eb4 Author: Sam James gentoo org> AuthorDate: Sun Apr 20 09:10:58 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Apr 20 09:14:50 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e0ae4ef media-libs/libheif: add 1.19.7 * Fix running tests (!) as previously we weren't running cmake_src_test at all. While at it, drop useless phase definitions and embrace cmake-multilib.eclass. * Drop USE=go requirement for tests. Doesn't seem required at all now. * Drops -Werror sed as it now uses the CMake property/setting for that, but we already set that in the eclass since 689be1a4afcc8222f7d10f822789d2e1676d0829. * Fix automagic Doxygen dependency. * Move USE=go dep on dev-lang/go from RDEPEND->BDEPEND. * Fix USE=gdk-pixbuf (bug #950491). Bug: https://bugs.gentoo.org/790593 Bug: https://bugs.gentoo.org/953971 Closes: https://bugs.gentoo.org/943172 Closes: https://bugs.gentoo.org/950491 Closes: https://bugs.gentoo.org/951505 Signed-off-by: Sam James gentoo.org> media-libs/libheif/Manifest | 1 + .../{libheif-9999.ebuild => libheif-1.19.7.ebuild} | 67 +++++++++------------- media-libs/libheif/libheif-9999.ebuild | 67 +++++++++------------- media-libs/libheif/metadata.xml | 1 + 4 files changed, 54 insertions(+), 82 deletions(-) diff --git a/media-libs/libheif/Manifest b/media-libs/libheif/Manifest index cb35aa8230d8..df2f6c9d2f9b 100644 --- a/media-libs/libheif/Manifest +++ b/media-libs/libheif/Manifest @@ -1 +1,2 @@ DIST libheif-1.18.2.tar.gz 1525096 BLAKE2B 667a68f324f89b2274ea837ec8d40ada5450dce79f2b8d9e8ba365fe5f02d4222195109519380a6d38c4ebca929575e58c3a8e517aed27a2696d67db3e287556 SHA512 8fd47dbc8e31fdb6a972c852bc4e78440492ee3dd769e139f28ad489ccc23e6cf42a90cd23b16405fa30df3c7c43c78b2b65d5ca3ffb449bf06789b457ed3072 +DIST libheif-1.19.7.tar.gz 1717186 BLAKE2B 78c7db44b9131fbf46516fdb1ef149dd402e11512f600f6b0d5d73768d760cce023e4f2481accdbfb1826c9be9668f933b57a6c2a6da58b731c6aa409d94750b SHA512 b0c3226c528daf78d8e8f73b5a07b9104e3ff036c553a66fdd0ca494380d8fb03c799241f0ea66b5f7e42d4fec87d186571f2aae9ac4820ffd7ff76d704f487b diff --git a/media-libs/libheif/libheif-9999.ebuild b/media-libs/libheif/libheif-1.19.7.ebuild similarity index 65% copy from media-libs/libheif/libheif-9999.ebuild copy to media-libs/libheif/libheif-1.19.7.ebuild index e55830a930cc..18b3175ee23d 100644 --- a/media-libs/libheif/libheif-9999.ebuild +++ b/media-libs/libheif/libheif-1.19.7.ebuild @@ -1,9 +1,12 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake xdg multilib-minimal +inherit cmake-multilib gnome2-utils xdg + +DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" +HOMEPAGE="https://github.com/strukturag/libheif" if [[ ${PV} == *9999* ]] ; then EGIT_REPO_URI="https://github.com/strukturag/libheif.git" @@ -13,31 +16,25 @@ else KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" fi -DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" -HOMEPAGE="https://github.com/strukturag/libheif" - LICENSE="GPL-3" SLOT="0/$(ver_cut 1-2)" -IUSE="+aom gdk-pixbuf go rav1e svt-av1 test +threads +webp x265" -REQUIRED_USE="test? ( go )" +IUSE="+aom doc examples gdk-pixbuf go openh264 rav1e svt-av1 test +threads +webp x265" RESTRICT="!test? ( test )" BDEPEND=" - test? ( - dev-cpp/catch - dev-lang/go - ) + doc? ( app-text/doxygen ) + go? ( dev-lang/go:= ) " DEPEND=" media-libs/dav1d:=[${MULTILIB_USEDEP}] media-libs/libde265[${MULTILIB_USEDEP}] - media-libs/libpng:0=[${MULTILIB_USEDEP}] + media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] + media-libs/libpng:=[${MULTILIB_USEDEP}] media-libs/tiff:=[${MULTILIB_USEDEP}] sys-libs/zlib:=[${MULTILIB_USEDEP}] - media-libs/libjpeg-turbo:0=[${MULTILIB_USEDEP}] aom? ( >=media-libs/libaom-2.0.0:=[${MULTILIB_USEDEP}] ) gdk-pixbuf? ( x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] ) - go? ( dev-lang/go ) + openh264? ( media-libs/openh264:=[${MULTILIB_USEDEP}] ) rav1e? ( media-video/rav1e:= ) svt-av1? ( media-libs/svt-av1:=[${MULTILIB_USEDEP}] ) webp? ( media-libs/libwebp:= ) @@ -49,28 +46,22 @@ MULTILIB_WRAPPED_HEADERS=( /usr/include/libheif/heif_version.h ) -src_prepare() { - if use test ; then - # bug 865351 - rm tests/catch.hpp || die - ln -s "${ESYSROOT}"/usr/include/catch2/catch.hpp tests/catch.hpp || die - fi - - cmake_src_prepare - - multilib_copy_sources -} - multilib_src_configure() { export GO111MODULE=auto + local mycmakeargs=( + $(cmake_use_find_package doc Doxygen) + -DBUILD_TESTING=$(usex test) -DENABLE_PLUGIN_LOADING=true -DWITH_LIBDE265=true -DWITH_AOM_DECODER=$(usex aom) -DWITH_AOM_ENCODER=$(usex aom) + -DWITH_EXAMPLES=$(usex examples) -DWITH_GDK_PIXBUF=$(usex gdk-pixbuf) - -DWITH_RAV1E="$(multilib_native_usex rav1e)" - -DWITH_SvtEnc="$(usex svt-av1)" + -DWITH_OpenH264_DECODER=$(usex openh264) + -DWITH_OpenH264_ENCODER=$(usex openh264) + -DWITH_RAV1E=$(multilib_native_usex rav1e) + -DWITH_SvtEnc=$(usex svt-av1) -DWITH_LIBSHARPYUV=$(usex webp) -DWITH_X265=$(usex x265) -DWITH_KVAZAAR=true @@ -79,22 +70,16 @@ multilib_src_configure() { -DWITH_OpenJPEG_DECODER=true -DWITH_OpenJPEG_ENCODER=true ) - cmake_src_configure -} - -multilib_src_compile() { - default - cmake_src_compile -} -multilib_src_test() { - default + cmake_src_configure } -multilib_src_install() { - cmake_src_install +pkg_postinst() { + xdg_pkg_postinst + use gdk-pixbuf && multilib_foreach_abi gnome2_gdk_pixbuf_update } -multilib_src_install_all() { - einstalldocs +pkg_postrm() { + xdg_pkg_postrm + use gdk-pixbuf && multilib_foreach_abi gnome2_gdk_pixbuf_update } diff --git a/media-libs/libheif/libheif-9999.ebuild b/media-libs/libheif/libheif-9999.ebuild index e55830a930cc..18b3175ee23d 100644 --- a/media-libs/libheif/libheif-9999.ebuild +++ b/media-libs/libheif/libheif-9999.ebuild @@ -1,9 +1,12 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake xdg multilib-minimal +inherit cmake-multilib gnome2-utils xdg + +DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" +HOMEPAGE="https://github.com/strukturag/libheif" if [[ ${PV} == *9999* ]] ; then EGIT_REPO_URI="https://github.com/strukturag/libheif.git" @@ -13,31 +16,25 @@ else KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" fi -DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" -HOMEPAGE="https://github.com/strukturag/libheif" - LICENSE="GPL-3" SLOT="0/$(ver_cut 1-2)" -IUSE="+aom gdk-pixbuf go rav1e svt-av1 test +threads +webp x265" -REQUIRED_USE="test? ( go )" +IUSE="+aom doc examples gdk-pixbuf go openh264 rav1e svt-av1 test +threads +webp x265" RESTRICT="!test? ( test )" BDEPEND=" - test? ( - dev-cpp/catch - dev-lang/go - ) + doc? ( app-text/doxygen ) + go? ( dev-lang/go:= ) " DEPEND=" media-libs/dav1d:=[${MULTILIB_USEDEP}] media-libs/libde265[${MULTILIB_USEDEP}] - media-libs/libpng:0=[${MULTILIB_USEDEP}] + media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] + media-libs/libpng:=[${MULTILIB_USEDEP}] media-libs/tiff:=[${MULTILIB_USEDEP}] sys-libs/zlib:=[${MULTILIB_USEDEP}] - media-libs/libjpeg-turbo:0=[${MULTILIB_USEDEP}] aom? ( >=media-libs/libaom-2.0.0:=[${MULTILIB_USEDEP}] ) gdk-pixbuf? ( x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] ) - go? ( dev-lang/go ) + openh264? ( media-libs/openh264:=[${MULTILIB_USEDEP}] ) rav1e? ( media-video/rav1e:= ) svt-av1? ( media-libs/svt-av1:=[${MULTILIB_USEDEP}] ) webp? ( media-libs/libwebp:= ) @@ -49,28 +46,22 @@ MULTILIB_WRAPPED_HEADERS=( /usr/include/libheif/heif_version.h ) -src_prepare() { - if use test ; then - # bug 865351 - rm tests/catch.hpp || die - ln -s "${ESYSROOT}"/usr/include/catch2/catch.hpp tests/catch.hpp || die - fi - - cmake_src_prepare - - multilib_copy_sources -} - multilib_src_configure() { export GO111MODULE=auto + local mycmakeargs=( + $(cmake_use_find_package doc Doxygen) + -DBUILD_TESTING=$(usex test) -DENABLE_PLUGIN_LOADING=true -DWITH_LIBDE265=true -DWITH_AOM_DECODER=$(usex aom) -DWITH_AOM_ENCODER=$(usex aom) + -DWITH_EXAMPLES=$(usex examples) -DWITH_GDK_PIXBUF=$(usex gdk-pixbuf) - -DWITH_RAV1E="$(multilib_native_usex rav1e)" - -DWITH_SvtEnc="$(usex svt-av1)" + -DWITH_OpenH264_DECODER=$(usex openh264) + -DWITH_OpenH264_ENCODER=$(usex openh264) + -DWITH_RAV1E=$(multilib_native_usex rav1e) + -DWITH_SvtEnc=$(usex svt-av1) -DWITH_LIBSHARPYUV=$(usex webp) -DWITH_X265=$(usex x265) -DWITH_KVAZAAR=true @@ -79,22 +70,16 @@ multilib_src_configure() { -DWITH_OpenJPEG_DECODER=true -DWITH_OpenJPEG_ENCODER=true ) - cmake_src_configure -} - -multilib_src_compile() { - default - cmake_src_compile -} -multilib_src_test() { - default + cmake_src_configure } -multilib_src_install() { - cmake_src_install +pkg_postinst() { + xdg_pkg_postinst + use gdk-pixbuf && multilib_foreach_abi gnome2_gdk_pixbuf_update } -multilib_src_install_all() { - einstalldocs +pkg_postrm() { + xdg_pkg_postrm + use gdk-pixbuf && multilib_foreach_abi gnome2_gdk_pixbuf_update } diff --git a/media-libs/libheif/metadata.xml b/media-libs/libheif/metadata.xml index c7254be4a3ca..0effcbe0a722 100644 --- a/media-libs/libheif/metadata.xml +++ b/media-libs/libheif/metadata.xml @@ -6,6 +6,7 @@ Use media-libs/libaom for AVIF encoding/decoding Enable x11-libs/gdk-pixbuf plugin Enable building dev-lang/go code/examples + Enable H.264 support using media-libs/openh264 Use media-video/rav1e for AVIF encoding Use media-libs/svt-av1 for SVT-AV1 encoding Enable high-quality YCbCr/RGB color space conversion algorithms