commit: a39b49d51fc9bbec40b7c8f79aed9ae4b4577d02
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 7 13:31:48 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Sep 7 15:05:49 2020 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a39b49d5
kde-apps/lokalize: Use optfeature
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
kde-apps/lokalize/lokalize-20.08.49.9999.ebuild | 9 +++++----
kde-apps/lokalize/lokalize-9999.ebuild | 9 +++++----
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/kde-apps/lokalize/lokalize-20.08.49.9999.ebuild
b/kde-apps/lokalize/lokalize-20.08.49.9999.ebuild
index 8947e072d9..2c4b0b64a0 100644
--- a/kde-apps/lokalize/lokalize-20.08.49.9999.ebuild
+++ b/kde-apps/lokalize/lokalize-20.08.49.9999.ebuild
@@ -7,7 +7,7 @@ ECM_HANDBOOK="forceoptional"
PYTHON_COMPAT=( python3_{7,8} )
KFMIN=5.72.0
QTMIN=5.14.2
-inherit python-single-r1 ecm kde.org
+inherit python-single-r1 ecm kde.org optfeature
DESCRIPTION="KDE Applications 5 translation tool"
HOMEPAGE="https://kde.org/applications/office/org.kde.lokalize
@@ -65,8 +65,9 @@ src_install() {
}
pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "Optional dependencies:"
+ optfeature "Autofetch kde.org translations in new project
wizard" dev-vcs/subversion
+ fi
ecm_pkg_postinst
-
- has_version dev-vcs/subversion || \
- elog "To be able to autofetch KDE translations in new project
wizard, install dev-vcs/subversion."
}
diff --git a/kde-apps/lokalize/lokalize-9999.ebuild
b/kde-apps/lokalize/lokalize-9999.ebuild
index cf304476d8..22da4a6a83 100644
--- a/kde-apps/lokalize/lokalize-9999.ebuild
+++ b/kde-apps/lokalize/lokalize-9999.ebuild
@@ -7,7 +7,7 @@ ECM_HANDBOOK="forceoptional"
PYTHON_COMPAT=( python3_{7,8} )
KFMIN=5.73.0
QTMIN=5.14.2
-inherit python-single-r1 ecm kde.org
+inherit python-single-r1 ecm kde.org optfeature
DESCRIPTION="KDE Applications 5 translation tool"
HOMEPAGE="https://kde.org/applications/office/org.kde.lokalize
@@ -65,8 +65,9 @@ src_install() {
}
pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "Optional dependencies:"
+ optfeature "Autofetch kde.org translations in new project
wizard" dev-vcs/subversion
+ fi
ecm_pkg_postinst
-
- has_version dev-vcs/subversion || \
- elog "To be able to autofetch KDE translations in new project
wizard, install dev-vcs/subversion."
}