/[gentoo-x86]/media-sound/exaile/exaile-0.3.2.0.ebuild
Gentoo

Contents of /media-sound/exaile/exaile-0.3.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Oct 20 02:52:13 2011 UTC (2 years, 10 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
Use slot dep for pygobject.

(Portage version: 2.2.0_alpha69/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/exaile/exaile-0.3.2.0.ebuild,v 1.7 2011/07/07 15:31:31 ssuominen Exp $
4
5 EAPI=3
6
7 PYTHON_DEPEND="2:2.6"
8 PYTHON_USE_WITH="sqlite"
9
10 inherit fdo-mime multilib python
11
12 DESCRIPTION="a media player aiming to be similar to AmaroK, but for GTK+"
13 HOMEPAGE="http://www.exaile.org/"
14 SRC_URI="http://launchpad.net/${PN}/0.3.2/${PV}/+download/${P}.tar.gz"
15
16 LICENSE="GPL-2 GPL-3"
17 SLOT="0"
18 KEYWORDS="amd64 ppc ~sparc x86"
19 IUSE="cddb libnotify nls"
20
21 RDEPEND="dev-python/dbus-python
22 >=media-libs/mutagen-1.10
23 >=dev-python/pygtk-2.17
24 >=dev-python/pygobject-2.18:2
25 dev-python/gst-python:0.10
26 media-libs/gst-plugins-good:0.10
27 media-plugins/gst-plugins-meta:0.10
28 libnotify? ( dev-python/notify-python )
29 cddb? ( dev-python/cddb-py )"
30 DEPEND="nls? ( dev-util/intltool
31 sys-devel/gettext )"
32
33 RESTRICT="test" #315589
34
35 pkg_setup() {
36 python_set_active_version 2
37 python_pkg_setup
38 }
39
40 src_prepare() {
41 sed -i \
42 -e "s:exec python:exec $(PYTHON):" \
43 exaile tools/generate-launcher || die
44 }
45
46 src_compile() {
47 if use nls; then
48 emake locale || die
49 fi
50 }
51
52 src_install() {
53 emake \
54 PREFIX=/usr \
55 LIBINSTALLDIR=/$(get_libdir) \
56 DESTDIR="${D}" \
57 install$(use nls || echo _no_locale) || die
58
59 dodoc FUTURE README || die
60
61 if has_version "<media-sound/exaile-0.3"; then
62 insinto /usr/share/exaile/data
63 doins -r data/migrations || die
64 fi
65 }
66
67 pkg_postinst() {
68 python_need_rebuild
69 python_mod_optimize /usr/$(get_libdir)/${PN}
70 fdo-mime_desktop_database_update
71 fdo-mime_mime_database_update
72 }
73
74 pkg_postrm() {
75 python_mod_cleanup /usr/$(get_libdir)/${PN}
76 fdo-mime_desktop_database_update
77 fdo-mime_mime_database_update
78 }

  ViewVC Help
Powered by ViewVC 1.1.20