Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kimageformats/
Date: Wed, 13 Jan 2021 23:24:48
Message-Id: 1610580228.dd992044575c4d9cb53b9a6dcc5feed8f0842bed.asturm@gentoo
1 commit: dd992044575c4d9cb53b9a6dcc5feed8f0842bed
2 Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com>
3 AuthorDate: Wed Jan 13 23:17:58 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 13 23:23:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd992044
7
8 kde-frameworks/kimageformats: add AVIF support to fix automagic
9
10 Reported-by: Daniel Novomesk√Ĺ <dnovomesky <AT> gmail.com>
11 Closes: https://bugs.gentoo.org/764941
12 Package-Manager: Portage-3.0.13, Repoman-3.0.2
13 Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 .../kimageformats/kimageformats-5.78.0-r1.ebuild | 39 ++++++++++++++++++++++
17 kde-frameworks/kimageformats/metadata.xml | 1 +
18 2 files changed, 40 insertions(+)
19
20 diff --git a/kde-frameworks/kimageformats/kimageformats-5.78.0-r1.ebuild b/kde-frameworks/kimageformats/kimageformats-5.78.0-r1.ebuild
21 new file mode 100644
22 index 00000000000..3d62edafb6e
23 --- /dev/null
24 +++ b/kde-frameworks/kimageformats/kimageformats-5.78.0-r1.ebuild
25 @@ -0,0 +1,39 @@
26 +# Copyright 1999-2021 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +ECM_QTHELP="false"
32 +PVCUT=$(ver_cut 1-2)
33 +QTMIN=5.15.1
34 +VIRTUALX_REQUIRED="test"
35 +inherit ecm kde.org
36 +
37 +DESCRIPTION="Framework providing additional format plugins for Qt's image I/O system"
38 +LICENSE="LGPL-2+"
39 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
40 +IUSE="avif eps openexr"
41 +
42 +DEPEND="
43 + >=dev-qt/qtgui-${QTMIN}:5
44 + =kde-frameworks/karchive-${PVCUT}*:5
45 + avif? ( >=media-libs/libavif-0.8.2 )
46 + eps? ( >=dev-qt/qtprintsupport-${QTMIN}:5 )
47 + openexr? (
48 + media-libs/ilmbase:=
49 + media-libs/openexr:=
50 + )
51 +"
52 +RDEPEND="${DEPEND}"
53 +
54 +DOCS=( src/imageformats/AUTHORS )
55 +
56 +src_configure() {
57 + local mycmakeargs=(
58 + $(cmake_use_find_package avif libavif)
59 + $(cmake_use_find_package eps Qt5PrintSupport)
60 + $(cmake_use_find_package openexr OpenEXR)
61 + )
62 +
63 + ecm_src_configure
64 +}
65
66 diff --git a/kde-frameworks/kimageformats/metadata.xml b/kde-frameworks/kimageformats/metadata.xml
67 index 810e5e62b99..c44e1a5290b 100644
68 --- a/kde-frameworks/kimageformats/metadata.xml
69 +++ b/kde-frameworks/kimageformats/metadata.xml
70 @@ -6,6 +6,7 @@
71 <name>Gentoo KDE Project</name>
72 </maintainer>
73 <use>
74 + <flag name="avif">Support the AVIF image file format</flag>
75 <flag name="eps">Support the EPS graphics file format</flag>
76 </use>
77 </pkgmetadata>