/[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.6 - (hide annotations) (download)
Sat Aug 11 12:48:48 2012 UTC (2 years, 4 months ago) by maekke
Branch: MAIN
Changes since 1.5: +2 -2 lines
x86 stable, bug #416095

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 ssuominen 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 maekke 1.6 # $Header: /var/cvsroot/gentoo-x86/media-sound/gmusicbrowser/gmusicbrowser-1.1.9.ebuild,v 1.5 2012/08/03 08:51:49 hasufell Exp $
4 ssuominen 1.1
5 hasufell 1.4 EAPI=4
6 ssuominen 1.1
7 hasufell 1.5 inherit fdo-mime gnome2-utils
8 ssuominen 1.1
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 maekke 1.6 KEYWORDS="amd64 x86"
16 hasufell 1.4 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 ssuominen 1.1
30     RDEPEND="dev-lang/perl
31     dev-perl/gtk2-perl
32     virtual/perl-MIME-Base64
33 hasufell 1.4 || ( net-misc/wget dev-perl/AnyEvent-HTTP )
34     || (
35     ( ${GSTREAMER_DEPEND} )
36     ( ${MPLAYER_DEPEND} )
37     ( ${OTHER_DEPEND} )
38     )"
39 ssuominen 1.1 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 hasufell 1.2 unset l
46 ssuominen 1.1
47     src_prepare() {
48 hasufell 1.5 sed -i \
49     -e '/menudir/d' \
50     -e '/^LINGUAS=/d' \
51     Makefile || die
52 ssuominen 1.1 }
53    
54     src_install() {
55     emake \
56     DOCS="AUTHORS NEWS README" \
57     DESTDIR="${D}" \
58 hasufell 1.5 iconsdir="${D}/usr/share/icons/hicolor/32x32/apps" \
59     liconsdir="${D}/usr/share/icons/hicolor/48x48/apps" \
60     miconsdir="${D}/usr/share/pixmaps" \
61 ssuominen 1.1 install
62    
63     dohtml layout_doc.html
64     }
65    
66 hasufell 1.5 pkg_preinst() {
67     gnome2_icon_savelist
68     }
69    
70 ssuominen 1.1 pkg_postinst() {
71     fdo-mime_desktop_database_update
72 hasufell 1.5 gnome2_icon_cache_update
73 hasufell 1.4
74     elog "Gmusicbrowser supports gstreamer, mplayer and mpg123/ogg123..."
75     elog "for audio playback. Needed dependencies:"
76     elog "Gstreamer: ${GSTREAMER_DEPEND}"
77     elog "mplayer: ${MPLAYER_DEPEND}"
78     elog "mpg123/ogg123...: ${OTHER_DEPEND}"
79     elog
80     elog "This ebuild just ensures at least one implementation is installed!"
81     elog
82     elog "other optional dependencies:"
83     elog " dev-perl/Net-DBus (for dbus support and mpris1/2 plugins)"
84     elog " dev-perl/Gtk2-WebKit (for Web context plugin)"
85     elog " dev-perl/Gtk2-Notify (for Notify plugin)"
86     elog " dev-perl/gnome2-wnck (for Titlebar plugin)"
87 ssuominen 1.1 }
88    
89     pkg_postrm() {
90     fdo-mime_desktop_database_update
91 hasufell 1.5 gnome2_icon_cache_update
92 ssuominen 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20