blob: 03c62c5ccc245e515e4eca5c59426884d3da4522 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/gmusicbrowser/gmusicbrowser-0.964.ebuild,v 1.4 2008/05/16 16:16:28 armin76 Exp $
inherit fdo-mime
DESCRIPTION="An open-source jukebox for large collections of mp3/ogg/flac files"
HOMEPAGE="http://squentin.free.fr/gmusicbrowser/gmusicbrowser.html"
SRC_URI="http://squentin.free.fr/gmusicbrowser/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE="dbus gstreamer mplayer mozilla"
RDEPEND=">=dev-lang/perl-5.8
dev-perl/gtk2-perl
dev-perl/gtk2-trayicon
dbus? ( dev-perl/Net-DBus )
gstreamer? (
dev-perl/GStreamer
dev-perl/GStreamer-Interfaces
media-libs/gst-plugins-good
)
mplayer? ( media-video/mplayer )
!gstreamer? ( !mplayer? (
virtual/mpg123
media-sound/vorbis-tools
media-sound/flac123
media-sound/alsa-utils
) )
mozilla? ( dev-perl/Gtk2-MozEmbed )"
src_unpack() {
unpack ${A}
cd "${S}"
sed -e 's:mpg321:mpg123:g' -i gmusicbrowser* || die "sed failed."
}
src_install() {
emake DOCS="AUTHORS NEWS README" DESTDIR="${D}" \
iconsdir="${D}/usr/share/pixmaps" install \
|| die "emake install failed."
rm -rf "${D}"/usr/lib/menu/${PN}
dohtml layout_doc.html
prepalldocs
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}
|