/[gentoo-x86]/media-sound/gmusicbrowser/gmusicbrowser-1.1.9.ebuild
Gentoo

Contents of /media-sound/gmusicbrowser/gmusicbrowser-1.1.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Sep 10 07:39:55 2012 UTC (22 months, 1 week ago) by hasufell
Branch: MAIN
Changes since 1.6: +4 -2 lines
add strip-linguas wrt #434360

(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/gmusicbrowser/gmusicbrowser-1.1.9.ebuild,v 1.6 2012/08/11 12:48:48 maekke Exp $
4
5 EAPI=4
6
7 inherit eutils fdo-mime gnome2-utils
8
9 DESCRIPTION="An open-source jukebox for large collections of mp3/ogg/flac files"
10 HOMEPAGE="http://gmusicbrowser.org/"
11 SRC_URI="http://${PN}.org/download/${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE=""
17
18 GSTREAMER_DEPEND="
19 dev-perl/GStreamer
20 dev-perl/GStreamer-Interfaces
21 media-plugins/gst-plugins-meta"
22 MPLAYER_DEPEND="
23 || ( media-video/mplayer media-video/mplayer2 )"
24 OTHER_DEPEND="
25 media-sound/alsa-utils
26 media-sound/flac123
27 || ( media-sound/mpg123 media-sound/mpg321 )
28 media-sound/vorbis-tools"
29
30 RDEPEND="dev-lang/perl
31 dev-perl/gtk2-perl
32 virtual/perl-MIME-Base64
33 || ( net-misc/wget dev-perl/AnyEvent-HTTP )
34 || (
35 ( ${GSTREAMER_DEPEND} )
36 ( ${MPLAYER_DEPEND} )
37 ( ${OTHER_DEPEND} )
38 )"
39 DEPEND="sys-devel/gettext"
40
41 LANGS="cs de es fr hu it ko nl pl pt pt_BR ru sv zh_CN"
42 for l in ${LANGS}; do
43 IUSE="$IUSE linguas_${l}"
44 done
45 unset l
46
47 src_prepare() {
48 sed -i \
49 -e '/menudir/d' \
50 -e '/^LINGUAS=/d' \
51 Makefile || die
52
53 strip-linguas ${LANGS}
54 }
55
56 src_install() {
57 emake \
58 DOCS="AUTHORS NEWS README" \
59 DESTDIR="${D}" \
60 iconsdir="${D}/usr/share/icons/hicolor/32x32/apps" \
61 liconsdir="${D}/usr/share/icons/hicolor/48x48/apps" \
62 miconsdir="${D}/usr/share/pixmaps" \
63 install
64
65 dohtml layout_doc.html
66 }
67
68 pkg_preinst() {
69 gnome2_icon_savelist
70 }
71
72 pkg_postinst() {
73 fdo-mime_desktop_database_update
74 gnome2_icon_cache_update
75
76 elog "Gmusicbrowser supports gstreamer, mplayer and mpg123/ogg123..."
77 elog "for audio playback. Needed dependencies:"
78 elog "Gstreamer: ${GSTREAMER_DEPEND}"
79 elog "mplayer: ${MPLAYER_DEPEND}"
80 elog "mpg123/ogg123...: ${OTHER_DEPEND}"
81 elog
82 elog "This ebuild just ensures at least one implementation is installed!"
83 elog
84 elog "other optional dependencies:"
85 elog " dev-perl/Net-DBus (for dbus support and mpris1/2 plugins)"
86 elog " dev-perl/Gtk2-WebKit (for Web context plugin)"
87 elog " dev-perl/Gtk2-Notify (for Notify plugin)"
88 elog " dev-perl/gnome2-wnck (for Titlebar plugin)"
89 }
90
91 pkg_postrm() {
92 fdo-mime_desktop_database_update
93 gnome2_icon_cache_update
94 }

  ViewVC Help
Powered by ViewVC 1.1.20