From 30e96d7e6351e523794517a6611cbe46c36e1fc3 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 7 Sep 2020 16:47:27 +0200 Subject: dev-util/kdevelop: Use optfeature Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Andreas Sturmlechner --- dev-util/kdevelop/kdevelop-5.6.9999.ebuild | 30 +++++++++--------------------- dev-util/kdevelop/kdevelop-9999.ebuild | 30 +++++++++--------------------- 2 files changed, 18 insertions(+), 42 deletions(-) (limited to 'dev-util/kdevelop') diff --git a/dev-util/kdevelop/kdevelop-5.6.9999.ebuild b/dev-util/kdevelop/kdevelop-5.6.9999.ebuild index 5a3edac39a3..192094f00db 100644 --- a/dev-util/kdevelop/kdevelop-5.6.9999.ebuild +++ b/dev-util/kdevelop/kdevelop-5.6.9999.ebuild @@ -10,7 +10,7 @@ KFMIN=5.70.0 QTMIN=5.12.3 VIRTUALDBUS_TEST="true" VIRTUALX_REQUIRED="test" -inherit ecm kde.org +inherit ecm kde.org optfeature DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more" HOMEPAGE="https://www.kdevelop.org/" @@ -121,25 +121,13 @@ src_configure() { } pkg_postinst() { - ecm_pkg_postinst - - if ! has_version "kde-apps/konsole" ; then - elog "For konsole view, please install kde-apps/konsole" - fi - - if ! has_version "dev-util/cppcheck" ; then - elog "For static C/C++ code analysis support, please install dev-util/cppcheck" - fi - - if ! has_version "dev-util/heaptrack[qt5]" ; then - elog "For heap memory profiling support, please install dev-util/heaptrack" - fi - - if ! has_version "dev-util/clazy" ; then - elog "For static C++ Qt code analysis support, please install dev-util/clazy" - fi - - if ! has_version ">=dev-util/meson-0.51" ; then - elog "For the Meson Project manager plugin, please install dev-util/meson" + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Optional dependencies:" + optfeature "konsole view" kde-apps/konsole + optfeature "Static C++ Qt code analysis" dev-util/clazy + optfeature "Static C/C++ code analysis" dev-util/cppcheck + optfeature "Heap memory profiling" dev-util/heaptrack[qt5] + optfeature "Meson Project manager plugin" >=dev-util/meson-0.51 fi + ecm_pkg_postinst } diff --git a/dev-util/kdevelop/kdevelop-9999.ebuild b/dev-util/kdevelop/kdevelop-9999.ebuild index 5a3edac39a3..192094f00db 100644 --- a/dev-util/kdevelop/kdevelop-9999.ebuild +++ b/dev-util/kdevelop/kdevelop-9999.ebuild @@ -10,7 +10,7 @@ KFMIN=5.70.0 QTMIN=5.12.3 VIRTUALDBUS_TEST="true" VIRTUALX_REQUIRED="test" -inherit ecm kde.org +inherit ecm kde.org optfeature DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more" HOMEPAGE="https://www.kdevelop.org/" @@ -121,25 +121,13 @@ src_configure() { } pkg_postinst() { - ecm_pkg_postinst - - if ! has_version "kde-apps/konsole" ; then - elog "For konsole view, please install kde-apps/konsole" - fi - - if ! has_version "dev-util/cppcheck" ; then - elog "For static C/C++ code analysis support, please install dev-util/cppcheck" - fi - - if ! has_version "dev-util/heaptrack[qt5]" ; then - elog "For heap memory profiling support, please install dev-util/heaptrack" - fi - - if ! has_version "dev-util/clazy" ; then - elog "For static C++ Qt code analysis support, please install dev-util/clazy" - fi - - if ! has_version ">=dev-util/meson-0.51" ; then - elog "For the Meson Project manager plugin, please install dev-util/meson" + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Optional dependencies:" + optfeature "konsole view" kde-apps/konsole + optfeature "Static C++ Qt code analysis" dev-util/clazy + optfeature "Static C/C++ code analysis" dev-util/cppcheck + optfeature "Heap memory profiling" dev-util/heaptrack[qt5] + optfeature "Meson Project manager plugin" >=dev-util/meson-0.51 fi + ecm_pkg_postinst } -- cgit v1.2.3