blob: de32032d055a5ebee450d8fe98156cb0a918054e (
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
56
57
58
59
60
61
62
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/gmpc/gmpc-0.18.0-r2.ebuild,v 1.6 2009/06/09 18:59:44 fauli Exp $
EAPI=2
inherit autotools eutils gnome2-utils
DESCRIPTION="A GTK+2 client for the Music Player Daemon"
HOMEPAGE="http://gmpcwiki.sarine.nl/index.php/GMPC"
SRC_URI="mirror://sourceforge/musicpd/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE="nls +session xspf"
RDEPEND=">=dev-libs/glib-2.10:2
dev-perl/XML-Parser
>=gnome-base/libglade-2.3
>=media-libs/libmpd-0.17.1
net-libs/libsoup:2.4
net-misc/curl
>=x11-libs/gtk+-2.12:2
x11-libs/libsexy
session? ( x11-libs/libSM )
xspf? ( >=media-libs/libxspf-1.2 )"
DEPEND="${RDEPEND}
dev-util/gob
dev-util/intltool
dev-util/pkgconfig
sys-devel/gettext"
src_prepare() {
epatch "${FILESDIR}"/${P}-libxspf.patch \
"${FILESDIR}"/${P}-password_dialog.patch
eautoreconf
}
src_configure() {
econf \
$(use_enable session sm) \
$(use_enable xspf libxspf) \
--enable-system-libsexy \
--disable-shave
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README TODO
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|