1 |
commit: 02f9caab082f41d7502d5a20ebbac08dbe563356 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 4 20:17:36 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 4 20:21:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02f9caab |
7 |
|
8 |
media-sound/kaudiocreator: Add pkg_postinst log about optional RDEPENDs |
9 |
|
10 |
Reported-by: David Zaslavsky <diazona <AT> ellipsix.net> |
11 |
Gentoo-bug: 604368 |
12 |
|
13 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
14 |
|
15 |
.../kaudiocreator/kaudiocreator-1.3-r3.ebuild | 24 +++++++++++++++++++--- |
16 |
1 file changed, 21 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/media-sound/kaudiocreator/kaudiocreator-1.3-r3.ebuild b/media-sound/kaudiocreator/kaudiocreator-1.3-r3.ebuild |
19 |
index 355b11cf5bc..dcb40b9acb7 100644 |
20 |
--- a/media-sound/kaudiocreator/kaudiocreator-1.3-r3.ebuild |
21 |
+++ b/media-sound/kaudiocreator/kaudiocreator-1.3-r3.ebuild |
22 |
@@ -1,4 +1,4 @@ |
23 |
-# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
EAPI=6 |
28 |
@@ -9,7 +9,7 @@ pl pt_BR pt ro ru se sk sl sr@ijekavianlatin sr@ijekavian sr@Latn sr sv ta tg |
29 |
th tr ug uk xh zh_CN zh_HK zh_TW" |
30 |
inherit kde4-base |
31 |
|
32 |
-DESCRIPTION="KDE CD ripper and audio encoder frontend" |
33 |
+DESCRIPTION="CD ripper and audio encoder frontend based on KDE Frameworks" |
34 |
HOMEPAGE="http://www.kde-apps.org/content/show.php?content=107645" |
35 |
SRC_URI="http://www.kde-apps.org/CONTENT/content-files/107645-${P}.tar.bz2" |
36 |
|
37 |
@@ -24,10 +24,28 @@ DEPEND=" |
38 |
media-libs/libdiscid |
39 |
>=media-libs/taglib-1.5 |
40 |
" |
41 |
- |
42 |
RDEPEND="${DEPEND} |
43 |
kde-frameworks/kdelibs:4[udev,udisks(+)] |
44 |
$(add_kdeapps_dep audiocd-kio) |
45 |
" |
46 |
|
47 |
DOCS=( Changelog TODO ) |
48 |
+ |
49 |
+pkg_postinst() { |
50 |
+ local stcnt=0 |
51 |
+ |
52 |
+ has_version media-libs/flac && stcnt=$((stcnt+1)) |
53 |
+ has_version media-sound/lame && stcnt=$((stcnt+1)) |
54 |
+ has_version media-sound/vorbis-tools && stcnt=$((stcnt+1)) |
55 |
+ |
56 |
+ if [[ ${stcnt} -lt 1 ]] ; then |
57 |
+ ewarn "You you should emerge at least one of the following packages" |
58 |
+ ewarn "for ${PN} to do anything useful." |
59 |
+ fi |
60 |
+ elog "Optional runtime dependencies:" |
61 |
+ elog "FLAC - media-libs/flac" |
62 |
+ elog "MP3 - media-sound/lame" |
63 |
+ elog "OGG - media-sound/vorbis-tools" |
64 |
+ |
65 |
+ kde4-base_pkg_postinst |
66 |
+} |