media-sound/kaudiocreator: Add pkg_postinst log about optional RDEPENDs
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 4 Jun 2017 20:17:36 +0000 (22:17 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 4 Jun 2017 20:21:18 +0000 (22:21 +0200)
Reported-by: David Zaslavsky <diazona@ellipsix.net>
Gentoo-bug: 604368

Package-Manager: Portage-2.3.5, Repoman-2.3.1

media-sound/kaudiocreator/kaudiocreator-1.3-r3.ebuild

index 355b11cf5bcbd4b952759124bc000f9f00588c55..dcb40b9acb7588b36be885e52e3cab672df09928 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -9,7 +9,7 @@ pl pt_BR pt ro ru se sk sl sr@ijekavianlatin sr@ijekavian sr@Latn sr sv ta tg
 th tr ug uk xh zh_CN zh_HK zh_TW"
 inherit kde4-base
 
-DESCRIPTION="KDE CD ripper and audio encoder frontend"
+DESCRIPTION="CD ripper and audio encoder frontend based on KDE Frameworks"
 HOMEPAGE="http://www.kde-apps.org/content/show.php?content=107645"
 SRC_URI="http://www.kde-apps.org/CONTENT/content-files/107645-${P}.tar.bz2"
 
@@ -24,10 +24,28 @@ DEPEND="
        media-libs/libdiscid
        >=media-libs/taglib-1.5
 "
-
 RDEPEND="${DEPEND}
        kde-frameworks/kdelibs:4[udev,udisks(+)]
        $(add_kdeapps_dep audiocd-kio)
 "
 
 DOCS=( Changelog TODO )
+
+pkg_postinst() {
+       local stcnt=0
+
+       has_version media-libs/flac && stcnt=$((stcnt+1))
+       has_version media-sound/lame && stcnt=$((stcnt+1))
+       has_version media-sound/vorbis-tools && stcnt=$((stcnt+1))
+
+       if [[ ${stcnt} -lt 1 ]] ; then
+               ewarn "You you should emerge at least one of the following packages"
+               ewarn "for ${PN} to do anything useful."
+       fi
+       elog "Optional runtime dependencies:"
+       elog "FLAC - media-libs/flac"
+       elog "MP3  - media-sound/lame"
+       elog "OGG  - media-sound/vorbis-tools"
+
+       kde4-base_pkg_postinst
+}