1 |
commit: 30e96d7e6351e523794517a6611cbe46c36e1fc3 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 7 14:47:27 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=30e96d7e |
7 |
|
8 |
dev-util/kdevelop: 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 |
dev-util/kdevelop/kdevelop-5.6.9999.ebuild | 30 +++++++++--------------------- |
14 |
dev-util/kdevelop/kdevelop-9999.ebuild | 30 +++++++++--------------------- |
15 |
2 files changed, 18 insertions(+), 42 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/kdevelop/kdevelop-5.6.9999.ebuild b/dev-util/kdevelop/kdevelop-5.6.9999.ebuild |
18 |
index 5a3edac39a..192094f00d 100644 |
19 |
--- a/dev-util/kdevelop/kdevelop-5.6.9999.ebuild |
20 |
+++ b/dev-util/kdevelop/kdevelop-5.6.9999.ebuild |
21 |
@@ -10,7 +10,7 @@ KFMIN=5.70.0 |
22 |
QTMIN=5.12.3 |
23 |
VIRTUALDBUS_TEST="true" |
24 |
VIRTUALX_REQUIRED="test" |
25 |
-inherit ecm kde.org |
26 |
+inherit ecm kde.org optfeature |
27 |
|
28 |
DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more" |
29 |
HOMEPAGE="https://www.kdevelop.org/" |
30 |
@@ -121,25 +121,13 @@ src_configure() { |
31 |
} |
32 |
|
33 |
pkg_postinst() { |
34 |
- ecm_pkg_postinst |
35 |
- |
36 |
- if ! has_version "kde-apps/konsole" ; then |
37 |
- elog "For konsole view, please install kde-apps/konsole" |
38 |
- fi |
39 |
- |
40 |
- if ! has_version "dev-util/cppcheck" ; then |
41 |
- elog "For static C/C++ code analysis support, please install dev-util/cppcheck" |
42 |
- fi |
43 |
- |
44 |
- if ! has_version "dev-util/heaptrack[qt5]" ; then |
45 |
- elog "For heap memory profiling support, please install dev-util/heaptrack" |
46 |
- fi |
47 |
- |
48 |
- if ! has_version "dev-util/clazy" ; then |
49 |
- elog "For static C++ Qt code analysis support, please install dev-util/clazy" |
50 |
- fi |
51 |
- |
52 |
- if ! has_version ">=dev-util/meson-0.51" ; then |
53 |
- elog "For the Meson Project manager plugin, please install dev-util/meson" |
54 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
55 |
+ elog "Optional dependencies:" |
56 |
+ optfeature "konsole view" kde-apps/konsole |
57 |
+ optfeature "Static C++ Qt code analysis" dev-util/clazy |
58 |
+ optfeature "Static C/C++ code analysis" dev-util/cppcheck |
59 |
+ optfeature "Heap memory profiling" dev-util/heaptrack[qt5] |
60 |
+ optfeature "Meson Project manager plugin" >=dev-util/meson-0.51 |
61 |
fi |
62 |
+ ecm_pkg_postinst |
63 |
} |
64 |
|
65 |
diff --git a/dev-util/kdevelop/kdevelop-9999.ebuild b/dev-util/kdevelop/kdevelop-9999.ebuild |
66 |
index 5a3edac39a..192094f00d 100644 |
67 |
--- a/dev-util/kdevelop/kdevelop-9999.ebuild |
68 |
+++ b/dev-util/kdevelop/kdevelop-9999.ebuild |
69 |
@@ -10,7 +10,7 @@ KFMIN=5.70.0 |
70 |
QTMIN=5.12.3 |
71 |
VIRTUALDBUS_TEST="true" |
72 |
VIRTUALX_REQUIRED="test" |
73 |
-inherit ecm kde.org |
74 |
+inherit ecm kde.org optfeature |
75 |
|
76 |
DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more" |
77 |
HOMEPAGE="https://www.kdevelop.org/" |
78 |
@@ -121,25 +121,13 @@ src_configure() { |
79 |
} |
80 |
|
81 |
pkg_postinst() { |
82 |
- ecm_pkg_postinst |
83 |
- |
84 |
- if ! has_version "kde-apps/konsole" ; then |
85 |
- elog "For konsole view, please install kde-apps/konsole" |
86 |
- fi |
87 |
- |
88 |
- if ! has_version "dev-util/cppcheck" ; then |
89 |
- elog "For static C/C++ code analysis support, please install dev-util/cppcheck" |
90 |
- fi |
91 |
- |
92 |
- if ! has_version "dev-util/heaptrack[qt5]" ; then |
93 |
- elog "For heap memory profiling support, please install dev-util/heaptrack" |
94 |
- fi |
95 |
- |
96 |
- if ! has_version "dev-util/clazy" ; then |
97 |
- elog "For static C++ Qt code analysis support, please install dev-util/clazy" |
98 |
- fi |
99 |
- |
100 |
- if ! has_version ">=dev-util/meson-0.51" ; then |
101 |
- elog "For the Meson Project manager plugin, please install dev-util/meson" |
102 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
103 |
+ elog "Optional dependencies:" |
104 |
+ optfeature "konsole view" kde-apps/konsole |
105 |
+ optfeature "Static C++ Qt code analysis" dev-util/clazy |
106 |
+ optfeature "Static C/C++ code analysis" dev-util/cppcheck |
107 |
+ optfeature "Heap memory profiling" dev-util/heaptrack[qt5] |
108 |
+ optfeature "Meson Project manager plugin" >=dev-util/meson-0.51 |
109 |
fi |
110 |
+ ecm_pkg_postinst |
111 |
} |