Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/dolphin/
Date: Mon, 07 Sep 2020 15:07:49
Message-Id: 1599491148.ae18e71fa5bf81a8082e571ee66567664973d081.asturm@gentoo
1 commit: ae18e71fa5bf81a8082e571ee66567664973d081
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 7 13:17:02 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 7 15:05:48 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=ae18e71f
7
8 kde-apps/dolphin: Use optfeature
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 kde-apps/dolphin/dolphin-20.08.49.9999.ebuild | 25 ++++++++-----------------
14 kde-apps/dolphin/dolphin-9999.ebuild | 25 ++++++++-----------------
15 2 files changed, 16 insertions(+), 34 deletions(-)
16
17 diff --git a/kde-apps/dolphin/dolphin-20.08.49.9999.ebuild b/kde-apps/dolphin/dolphin-20.08.49.9999.ebuild
18 index bf24bc1f46..59476633af 100644
19 --- a/kde-apps/dolphin/dolphin-20.08.49.9999.ebuild
20 +++ b/kde-apps/dolphin/dolphin-20.08.49.9999.ebuild
21 @@ -9,7 +9,7 @@ PVCUT=$(ver_cut 1-3)
22 KFMIN=5.72.0
23 QTMIN=5.14.2
24 VIRTUALX_REQUIRED="test"
25 -inherit ecm kde.org
26 +inherit ecm kde.org optfeature
27
28 DESCRIPTION="Plasma filemanager focusing on usability"
29 HOMEPAGE="https://kde.org/applications/system/org.kde.dolphin
30 @@ -77,22 +77,13 @@ src_configure() {
31 }
32
33 pkg_postinst() {
34 - ecm_pkg_postinst
35 -
36 if [[ -z "${REPLACING_VERSIONS}" ]]; then
37 - has_version "kde-apps/ark:${SLOT}" || \
38 - elog "For compress/extract and other actions install kde-apps/ark:${SLOT}"
39 -
40 - has_version "kde-apps/kleopatra:${SLOT}" || \
41 - elog "For crypto actions install kde-apps/kleopatra:${SLOT}"
42 -
43 - has_version "kde-apps/ffmpegthumbs:${SLOT}" || \
44 - elog "For video file thumbnails install kde-apps/ffmpegthumbs:${SLOT}"
45 -
46 - has_version "kde-apps/thumbnailers:${SLOT}" || \
47 - elog "For graphics file thumbnails install kde-apps/thumbnailers:${SLOT}"
48 -
49 - has_version "kde-frameworks/purpose:${SLOT}" || \
50 - elog "For 'Share' context menu actions install kde-frameworks/purpose:${SLOT}"
51 + elog "Optional dependencies:"
52 + optfeature "compress/extract and other actions" kde-apps/ark:${SLOT}
53 + optfeature "crypto actions" kde-apps/kleopatra:${SLOT}
54 + optfeature "video file thumbnails" kde-apps/ffmpegthumbs:${SLOT}
55 + optfeature "graphics file thumbnails" kde-apps/thumbnailers:${SLOT}
56 + optfeature "'Share' context menu actions" kde-frameworks/purpose:${SLOT}
57 fi
58 + ecm_pkg_postinst
59 }
60
61 diff --git a/kde-apps/dolphin/dolphin-9999.ebuild b/kde-apps/dolphin/dolphin-9999.ebuild
62 index 815df8325e..fda06708b3 100644
63 --- a/kde-apps/dolphin/dolphin-9999.ebuild
64 +++ b/kde-apps/dolphin/dolphin-9999.ebuild
65 @@ -9,7 +9,7 @@ PVCUT=$(ver_cut 1-3)
66 KFMIN=5.73.0
67 QTMIN=5.14.2
68 VIRTUALX_REQUIRED="test"
69 -inherit ecm kde.org
70 +inherit ecm kde.org optfeature
71
72 DESCRIPTION="Plasma filemanager focusing on usability"
73 HOMEPAGE="https://kde.org/applications/system/org.kde.dolphin
74 @@ -77,22 +77,13 @@ src_configure() {
75 }
76
77 pkg_postinst() {
78 - ecm_pkg_postinst
79 -
80 if [[ -z "${REPLACING_VERSIONS}" ]]; then
81 - has_version "kde-apps/ark:${SLOT}" || \
82 - elog "For compress/extract and other actions install kde-apps/ark:${SLOT}"
83 -
84 - has_version "kde-apps/kleopatra:${SLOT}" || \
85 - elog "For crypto actions install kde-apps/kleopatra:${SLOT}"
86 -
87 - has_version "kde-apps/ffmpegthumbs:${SLOT}" || \
88 - elog "For video file thumbnails install kde-apps/ffmpegthumbs:${SLOT}"
89 -
90 - has_version "kde-apps/thumbnailers:${SLOT}" || \
91 - elog "For graphics file thumbnails install kde-apps/thumbnailers:${SLOT}"
92 -
93 - has_version "kde-frameworks/purpose:${SLOT}" || \
94 - elog "For 'Share' context menu actions install kde-frameworks/purpose:${SLOT}"
95 + elog "Optional dependencies:"
96 + optfeature "compress/extract and other actions" kde-apps/ark:${SLOT}
97 + optfeature "crypto actions" kde-apps/kleopatra:${SLOT}
98 + optfeature "video file thumbnails" kde-apps/ffmpegthumbs:${SLOT}
99 + optfeature "graphics file thumbnails" kde-apps/thumbnailers:${SLOT}
100 + optfeature "'Share' context menu actions" kde-frameworks/purpose:${SLOT}
101 fi
102 + ecm_pkg_postinst
103 }