kde-apps/gwenview: Reduce pkg_postinst spam
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 13 Dec 2018 22:07:42 +0000 (23:07 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 13 Dec 2018 22:25:47 +0000 (23:25 +0100)
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
kde-apps/gwenview/gwenview-18.12.0.ebuild

index 5481e1d63001fdc925ed1e457353371f7ce8c24a..a580d5a58ccdfc8e1748d59321b31aa0f9b2045a 100644 (file)
@@ -68,6 +68,7 @@ DEPEND="${COMMON_DEPEND}
 RDEPEND="${COMMON_DEPEND}
        $(add_frameworks_dep kimageformats)
        $(add_qt_dep qtimageformats)
+       kipi? ( media-plugins/kipi-plugins:5 )
 "
 
 src_prepare() {
@@ -99,11 +100,7 @@ src_configure() {
 pkg_postinst() {
        kde5_pkg_postinst
 
-       if ! has_version kde-apps/svgpart:${SLOT} ; then
+       if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version kde-apps/svgpart:${SLOT} ; then
                elog "For SVG support, install kde-apps/svgpart:${SLOT}"
        fi
-
-       if use kipi && ! has_version media-plugins/kipi-plugins ; then
-               elog "Plugins for the KIPI interface can be found in media-plugins/kipi-plugins"
-       fi
 }