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-apps/spectacle/
Date: Fri, 08 Jan 2021 00:10:33
Message-Id: 1610064514.a7ee2ad639bd1b603e176fdf519e6877f094a5fd.asturm@gentoo
1 commit: a7ee2ad639bd1b603e176fdf519e6877f094a5fd
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 8 00:08:34 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 8 00:08:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7ee2ad6
7
8 kde-apps/spectacle: Add IUSE="+annotate"
9
10 Closes: https://bugs.gentoo.org/760069
11 Package-Manager: Portage-3.0.12, Repoman-3.0.2
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 kde-apps/spectacle/metadata.xml | 1 +
15 kde-apps/spectacle/spectacle-20.12.1-r1.ebuild | 70 ++++++++++++++++++++++++++
16 2 files changed, 71 insertions(+)
17
18 diff --git a/kde-apps/spectacle/metadata.xml b/kde-apps/spectacle/metadata.xml
19 index 661377e45a6..bc2d96259f5 100644
20 --- a/kde-apps/spectacle/metadata.xml
21 +++ b/kde-apps/spectacle/metadata.xml
22 @@ -6,6 +6,7 @@
23 <name>Gentoo KDE Project</name>
24 </maintainer>
25 <use>
26 + <flag name="annotate">Enable support for screenshot annotations using <pkg>media-libs/kimageannotator</pkg></flag>
27 <flag name="kipi">Enable support for the KDE Image Plugin Interface</flag>
28 <flag name="share">Enable support for a share menu using <pkg>kde-frameworks/purpose</pkg></flag>
29 </use>
30
31 diff --git a/kde-apps/spectacle/spectacle-20.12.1-r1.ebuild b/kde-apps/spectacle/spectacle-20.12.1-r1.ebuild
32 new file mode 100644
33 index 00000000000..3dca38ceeac
34 --- /dev/null
35 +++ b/kde-apps/spectacle/spectacle-20.12.1-r1.ebuild
36 @@ -0,0 +1,70 @@
37 +# Copyright 1999-2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +ECM_HANDBOOK="forceoptional"
43 +ECM_TEST="forceoptional"
44 +PVCUT=$(ver_cut 1-3)
45 +KFMIN=5.75.0
46 +QTMIN=5.15.1
47 +inherit ecm kde.org
48 +
49 +DESCRIPTION="Screenshot capture utility"
50 +HOMEPAGE="https://apps.kde.org/en/spectacle"
51 +
52 +LICENSE="LGPL-2+ handbook? ( FDL-1.3 ) kipi? ( GPL-2+ )"
53 +SLOT="5"
54 +KEYWORDS="~amd64 ~x86"
55 +IUSE="+annotate kipi share"
56 +
57 +# TODO: Qt5Svg leaking from media-libs/kimageannotator
58 +DEPEND="
59 + >=dev-qt/qdbus-${QTMIN}:5
60 + >=dev-qt/qtdbus-${QTMIN}:5
61 + >=dev-qt/qtgui-${QTMIN}:5
62 + >=dev-qt/qtsvg-${QTMIN}:5
63 + >=dev-qt/qtprintsupport-${QTMIN}:5
64 + >=dev-qt/qtwidgets-${QTMIN}:5
65 + >=dev-qt/qtx11extras-${QTMIN}:5
66 + >=kde-frameworks/kconfig-${KFMIN}:5
67 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5
68 + >=kde-frameworks/kcoreaddons-${KFMIN}:5
69 + >=kde-frameworks/kdbusaddons-${KFMIN}:5
70 + >=kde-frameworks/kglobalaccel-${KFMIN}:5
71 + >=kde-frameworks/ki18n-${KFMIN}:5
72 + >=kde-frameworks/kio-${KFMIN}:5
73 + >=kde-frameworks/knewstuff-${KFMIN}:5
74 + >=kde-frameworks/knotifications-${KFMIN}:5
75 + >=kde-frameworks/kservice-${KFMIN}:5
76 + >=kde-frameworks/kwayland-${KFMIN}:5
77 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
78 + >=kde-frameworks/kwindowsystem-${KFMIN}:5
79 + >=kde-frameworks/kxmlgui-${KFMIN}:5
80 + x11-libs/libxcb
81 + x11-libs/xcb-util
82 + x11-libs/xcb-util-cursor
83 + x11-libs/xcb-util-image
84 + annotate? ( media-libs/kimageannotator )
85 + kipi? ( >=kde-apps/libkipi-${PVCUT}:5= )
86 + share? ( >=kde-frameworks/purpose-${KFMIN}:5 )
87 +"
88 +RDEPEND="${DEPEND}
89 + kipi? ( >=kde-apps/kipi-plugins-${PVCUT}:5 )
90 +"
91 +
92 +src_prepare() {
93 + ecm_src_prepare
94 + # Unnecessary with >=media-libs/kimageannotator-0.4.0
95 + sed -e "/find_package\s*(\s*X11/d" -e "/find_package\s*(\s*kColorPicker/d" \
96 + -i CMakeLists.txt || die
97 +}
98 +
99 +src_configure() {
100 + local mycmakeargs=(
101 + $(cmake_use_find_package annotate kImageAnnotator)
102 + $(cmake_use_find_package kipi KF5Kipi)
103 + $(cmake_use_find_package share KF5Purpose)
104 + )
105 + ecm_src_configure
106 +}