blob: 260975394cd0791571ac071e56d21112d301a30a (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/exaile/exaile-0.2.11.1.ebuild,v 1.1 2007/12/13 18:45:18 drac Exp $
EAPI=1
inherit eutils fdo-mime multilib python
GVER=0.10
MY_P=${PN}_${PV}
DESCRIPTION="a media player aiming to be similar to AmaroK, but for GTK+"
HOMEPAGE="http://www.exaile.org"
SRC_URI="http://www.exaile.org/files/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="aac alsa cdparanoia +equalizer flac gnome ipod libnotify +libsexy
mad musepack nls ogg oss vorbis"
RDEPEND="dev-python/dbus-python
>=media-libs/mutagen-1.12
>=dev-python/pygtk-2.10
|| ( >=dev-lang/python-2.5 >=dev-python/pysqlite-2.3.4-r1 )
|| ( >=dev-lang/python-2.5 dev-python/elementtree )
libnotify? ( dev-python/notify-python )
libsexy? ( dev-python/sexy-python )
gnome? ( >=dev-python/gnome-python-extras-2.14.2-r1
>=media-plugins/gst-plugins-gconf-${GVER}
>=media-plugins/gst-plugins-gnomevfs-${GVER} )
>=media-libs/gst-plugins-good-${GVER}
equalizer? ( >=media-libs/gst-plugins-bad-0.10.5 )
>=dev-python/gst-python-0.10.9
musepack? ( >=media-plugins/gst-plugins-musepack-${GVER} )
vorbis? ( >=media-plugins/gst-plugins-vorbis-${GVER} )
flac? ( >=media-plugins/gst-plugins-flac-${GVER} )
aac? ( >=media-plugins/gst-plugins-faad-${GVER} )
alsa? ( >=media-plugins/gst-plugins-alsa-${GVER} )
oss? ( >=media-plugins/gst-plugins-oss-${GVER} )
mad? ( >=media-plugins/gst-plugins-mad-${GVER} )
ogg? ( >=media-plugins/gst-plugins-ogg-${GVER} )
cdparanoia? ( >=media-plugins/gst-plugins-cdparanoia-${GVER}
dev-python/cddb-py )
ipod? ( >=media-libs/libgpod-0.4
>=media-plugins/gst-plugins-faad-${GVER} )"
DEPEND="nls? ( dev-util/intltool sys-devel/gettext )"
S=${WORKDIR}/${MY_P}
pkg_setup() {
local fail_a="Re-emerge media-libs/libgpod with USE python."
local fail_b="Re-emerge dev-lang/python with USE sqlite."
if use ipod && ! built_with_use media-libs/libgpod python; then
eerror "${fail_a}"
die "${fail_a}"
fi
if ! has_version ">=dev-python/pysqlite-2.3.4-r1"; then
if ! built_with_use ">=dev-lang/python-2.5" sqlite; then
eerror "${fail_b}"
die "${fail_b}"
fi
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-libgtkembedmoz.patch
}
src_compile() {
emake mmkeys.so || die "emake mmkeys.so failed."
if use nls; then
emake translations || die "emake translations failed."
fi
}
src_install() {
emake PREFIX="/usr" LIBDIR="/$(get_libdir)" DESTDIR="${D}" install || die "emake install failed."
dodoc changelog TODO
}
pkg_postinst() {
python_mod_optimize /usr/$(get_libdir)/${PN}
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/${PN}
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|