summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-09-07 15:31:48 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-09-07 17:05:49 +0200
commita39b49d51fc9bbec40b7c8f79aed9ae4b4577d02 (patch)
tree5bbd792bce471640361c9d5eb38513837382427d
parent3acabde8a7aa0d278e8aa0d3f48a57b467fecd27 (diff)
downloadkde-a39b49d51fc9bbec40b7c8f79aed9ae4b4577d02.tar.gz
kde-a39b49d51fc9bbec40b7c8f79aed9ae4b4577d02.tar.bz2
kde-a39b49d51fc9bbec40b7c8f79aed9ae4b4577d02.zip
kde-apps/lokalize: Use optfeature
Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--kde-apps/lokalize/lokalize-20.08.49.9999.ebuild9
-rw-r--r--kde-apps/lokalize/lokalize-9999.ebuild9
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 8947e072d92..2c4b0b64a07 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 cf304476d8c..22da4a6a834 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."
}