1 |
commit: 41a9176b891c2ecec7e736e2c0fd7d8ca7050997 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 7 14:30:21 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 7 15:05:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=41a9176b |
7 |
|
8 |
kde-frameworks/solid: 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-frameworks/solid/solid-5.74.0.ebuild | 10 +++++----- |
14 |
kde-frameworks/solid/solid-9999.ebuild | 10 +++++----- |
15 |
2 files changed, 10 insertions(+), 10 deletions(-) |
16 |
|
17 |
diff --git a/kde-frameworks/solid/solid-5.74.0.ebuild b/kde-frameworks/solid/solid-5.74.0.ebuild |
18 |
index 1115515d27..e40ec75b7b 100644 |
19 |
--- a/kde-frameworks/solid/solid-5.74.0.ebuild |
20 |
+++ b/kde-frameworks/solid/solid-5.74.0.ebuild |
21 |
@@ -5,7 +5,7 @@ EAPI=7 |
22 |
|
23 |
QTMIN=5.14.2 |
24 |
VIRTUALX_REQUIRED="test" |
25 |
-inherit ecm kde.org |
26 |
+inherit ecm kde.org optfeature |
27 |
|
28 |
DESCRIPTION="Provider for platform independent hardware discovery, abstraction and management" |
29 |
LICENSE="LGPL-2.1+" |
30 |
@@ -30,9 +30,9 @@ DEPEND="${RDEPEND} |
31 |
" |
32 |
|
33 |
pkg_postinst() { |
34 |
- ecm_pkg_postinst |
35 |
- |
36 |
- if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "app-misc/media-player-info" ; then |
37 |
- elog "For media player support, install app-misc/media-player-info" |
38 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
39 |
+ elog "Optional dependencies:" |
40 |
+ optfeature "Media player devices support" app-misc/media-player-info |
41 |
fi |
42 |
+ ecm_pkg_postinst |
43 |
} |
44 |
|
45 |
diff --git a/kde-frameworks/solid/solid-9999.ebuild b/kde-frameworks/solid/solid-9999.ebuild |
46 |
index ac356101a1..ea9abe432a 100644 |
47 |
--- a/kde-frameworks/solid/solid-9999.ebuild |
48 |
+++ b/kde-frameworks/solid/solid-9999.ebuild |
49 |
@@ -5,7 +5,7 @@ EAPI=7 |
50 |
|
51 |
QTMIN=5.14.2 |
52 |
VIRTUALX_REQUIRED="test" |
53 |
-inherit ecm kde.org |
54 |
+inherit ecm kde.org optfeature |
55 |
|
56 |
DESCRIPTION="Provider for platform independent hardware discovery, abstraction and management" |
57 |
LICENSE="LGPL-2.1+" |
58 |
@@ -30,9 +30,9 @@ DEPEND="${RDEPEND} |
59 |
" |
60 |
|
61 |
pkg_postinst() { |
62 |
- ecm_pkg_postinst |
63 |
- |
64 |
- if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "app-misc/media-player-info" ; then |
65 |
- elog "For media player support, install app-misc/media-player-info" |
66 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
67 |
+ elog "Optional dependencies:" |
68 |
+ optfeature "Media player devices support" app-misc/media-player-info |
69 |
fi |
70 |
+ ecm_pkg_postinst |
71 |
} |