commit:     f87c4a288526e6613f84c4ac6ae6e6e02383a814
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 30 19:48:12 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 30 19:48:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f87c4a28

kde-frameworks/kimageformats: Add IUSE=jpegxl

Bug: https://bugs.gentoo.org/834999
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../kimageformats/kimageformats-5.92.0-r1.ebuild   | 39 ++++++++++++++++++++++
 kde-frameworks/kimageformats/metadata.xml          |  1 +
 2 files changed, 40 insertions(+)

diff --git a/kde-frameworks/kimageformats/kimageformats-5.92.0-r1.ebuild 
b/kde-frameworks/kimageformats/kimageformats-5.92.0-r1.ebuild
new file mode 100644
index 000000000000..8df995a336f2
--- /dev/null
+++ b/kde-frameworks/kimageformats/kimageformats-5.92.0-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_QTHELP="false"
+PVCUT=$(ver_cut 1-2)
+QTMIN=5.15.2
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="Framework providing additional format plugins for Qt's image I/O 
system"
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64 ~x86"
+IUSE="avif eps heif jpegxl openexr"
+
+DEPEND="
+       >=dev-qt/qtgui-${QTMIN}:5
+       =kde-frameworks/karchive-${PVCUT}*:5
+       avif? ( >=media-libs/libavif-0.8.2:= )
+       eps? ( >=dev-qt/qtprintsupport-${QTMIN}:5 )
+       heif? ( >=media-libs/libheif-1.10.0:= )
+       openexr? ( >=media-libs/openexr-3:= )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( src/imageformats/AUTHORS )
+
+src_configure() {
+       local mycmakeargs=(
+               -DKIMAGEFORMATS_JXL=$(usex jpegxl)
+               $(cmake_use_find_package avif libavif)
+               $(cmake_use_find_package eps Qt5PrintSupport)
+               -DKIMAGEFORMATS_HEIF=$(usex heif)
+               $(cmake_use_find_package openexr OpenEXR)
+       )
+
+       ecm_src_configure
+}

diff --git a/kde-frameworks/kimageformats/metadata.xml 
b/kde-frameworks/kimageformats/metadata.xml
index 54a833687291..32a938a852f0 100644
--- a/kde-frameworks/kimageformats/metadata.xml
+++ b/kde-frameworks/kimageformats/metadata.xml
@@ -12,6 +12,7 @@
                <flag name="avif">Support the AVIF image file format</flag>
                <flag name="eps">Support the EPS graphics file format</flag>
                <flag name="heif">Support for HEIF/HEIC images</flag>
+               <flag name="jpegxl">Support for JPEG XL image format</flag>
        </use>
        <slots>
                <subslots>

Reply via email to