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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20