1 |
commit: a39b49d51fc9bbec40b7c8f79aed9ae4b4577d02 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 7 13:31:48 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 7 15:05:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a39b49d5 |
7 |
|
8 |
kde-apps/lokalize: 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/lokalize/lokalize-20.08.49.9999.ebuild | 9 +++++---- |
14 |
kde-apps/lokalize/lokalize-9999.ebuild | 9 +++++---- |
15 |
2 files changed, 10 insertions(+), 8 deletions(-) |
16 |
|
17 |
diff --git a/kde-apps/lokalize/lokalize-20.08.49.9999.ebuild b/kde-apps/lokalize/lokalize-20.08.49.9999.ebuild |
18 |
index 8947e072d9..2c4b0b64a0 100644 |
19 |
--- a/kde-apps/lokalize/lokalize-20.08.49.9999.ebuild |
20 |
+++ b/kde-apps/lokalize/lokalize-20.08.49.9999.ebuild |
21 |
@@ -7,7 +7,7 @@ ECM_HANDBOOK="forceoptional" |
22 |
PYTHON_COMPAT=( python3_{7,8} ) |
23 |
KFMIN=5.72.0 |
24 |
QTMIN=5.14.2 |
25 |
-inherit python-single-r1 ecm kde.org |
26 |
+inherit python-single-r1 ecm kde.org optfeature |
27 |
|
28 |
DESCRIPTION="KDE Applications 5 translation tool" |
29 |
HOMEPAGE="https://kde.org/applications/office/org.kde.lokalize |
30 |
@@ -65,8 +65,9 @@ src_install() { |
31 |
} |
32 |
|
33 |
pkg_postinst() { |
34 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
35 |
+ elog "Optional dependencies:" |
36 |
+ optfeature "Autofetch kde.org translations in new project wizard" dev-vcs/subversion |
37 |
+ fi |
38 |
ecm_pkg_postinst |
39 |
- |
40 |
- has_version dev-vcs/subversion || \ |
41 |
- elog "To be able to autofetch KDE translations in new project wizard, install dev-vcs/subversion." |
42 |
} |
43 |
|
44 |
diff --git a/kde-apps/lokalize/lokalize-9999.ebuild b/kde-apps/lokalize/lokalize-9999.ebuild |
45 |
index cf304476d8..22da4a6a83 100644 |
46 |
--- a/kde-apps/lokalize/lokalize-9999.ebuild |
47 |
+++ b/kde-apps/lokalize/lokalize-9999.ebuild |
48 |
@@ -7,7 +7,7 @@ ECM_HANDBOOK="forceoptional" |
49 |
PYTHON_COMPAT=( python3_{7,8} ) |
50 |
KFMIN=5.73.0 |
51 |
QTMIN=5.14.2 |
52 |
-inherit python-single-r1 ecm kde.org |
53 |
+inherit python-single-r1 ecm kde.org optfeature |
54 |
|
55 |
DESCRIPTION="KDE Applications 5 translation tool" |
56 |
HOMEPAGE="https://kde.org/applications/office/org.kde.lokalize |
57 |
@@ -65,8 +65,9 @@ src_install() { |
58 |
} |
59 |
|
60 |
pkg_postinst() { |
61 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
62 |
+ elog "Optional dependencies:" |
63 |
+ optfeature "Autofetch kde.org translations in new project wizard" dev-vcs/subversion |
64 |
+ fi |
65 |
ecm_pkg_postinst |
66 |
- |
67 |
- has_version dev-vcs/subversion || \ |
68 |
- elog "To be able to autofetch KDE translations in new project wizard, install dev-vcs/subversion." |
69 |
} |