diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-09-07 15:37:56 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-09-07 17:05:48 +0200 |
| commit | 406bd75bd4d39c96405dab671dfbd7dc6821f5ca (patch) | |
| tree | 2e87f4dd1eb514e01be0151c916dcfe1a6d732c0 | |
| parent | ae18e71fa5bf81a8082e571ee66567664973d081 (diff) | |
| download | kde-406bd75bd4d39c96405dab671dfbd7dc6821f5ca.tar.gz kde-406bd75bd4d39c96405dab671dfbd7dc6821f5ca.tar.bz2 kde-406bd75bd4d39c96405dab671dfbd7dc6821f5ca.zip | |
kde-apps/gwenview: 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/gwenview/gwenview-20.08.49.9999.ebuild | 10 | ||||
| -rw-r--r-- | kde-apps/gwenview/gwenview-9999.ebuild | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/kde-apps/gwenview/gwenview-20.08.49.9999.ebuild b/kde-apps/gwenview/gwenview-20.08.49.9999.ebuild index 53829d300db..02cfa64a529 100644 --- a/kde-apps/gwenview/gwenview-20.08.49.9999.ebuild +++ b/kde-apps/gwenview/gwenview-20.08.49.9999.ebuild @@ -8,7 +8,7 @@ ECM_TEST="true" PVCUT=$(ver_cut 1-3) KFMIN=5.72.0 QTMIN=5.14.2 -inherit ecm kde.org +inherit ecm kde.org optfeature DESCRIPTION="Image viewer by KDE" HOMEPAGE="https://kde.org/applications/graphics/org.kde.gwenview @@ -103,9 +103,9 @@ src_configure() { } pkg_postinst() { - ecm_pkg_postinst - - if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version kde-apps/svgpart:${SLOT} ; then - elog "For SVG support, install kde-apps/svgpart:${SLOT}" + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Optional dependencies:" + optfeature "SVG support" kde-apps/svgpart:${SLOT} fi + ecm_pkg_postinst } diff --git a/kde-apps/gwenview/gwenview-9999.ebuild b/kde-apps/gwenview/gwenview-9999.ebuild index da5e924a765..ec72ef6ee81 100644 --- a/kde-apps/gwenview/gwenview-9999.ebuild +++ b/kde-apps/gwenview/gwenview-9999.ebuild @@ -8,7 +8,7 @@ ECM_TEST="true" PVCUT=$(ver_cut 1-3) KFMIN=5.73.0 QTMIN=5.14.2 -inherit ecm kde.org +inherit ecm kde.org optfeature DESCRIPTION="Image viewer by KDE" HOMEPAGE="https://kde.org/applications/graphics/org.kde.gwenview @@ -103,9 +103,9 @@ src_configure() { } pkg_postinst() { - ecm_pkg_postinst - - if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version kde-apps/svgpart:${SLOT} ; then - elog "For SVG support, install kde-apps/svgpart:${SLOT}" + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Optional dependencies:" + optfeature "SVG support" kde-apps/svgpart:${SLOT} fi + ecm_pkg_postinst } |
