/[gentoo-x86]/media-sound/pympd/pympd-0.08.1.ebuild
Gentoo

Contents of /media-sound/pympd/pympd-0.08.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat May 5 08:48:22 2012 UTC (7 years, 5 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/pympd/pympd-0.08.1.ebuild,v 1.11 2011/03/23 23:10:04 angelos Exp $
4
5 EAPI=3
6
7 PYTHON_DEPEND="2:2.6"
8
9 inherit eutils gnome2-utils multilib python toolchain-funcs
10
11 DESCRIPTION="a Rhythmbox-like PyGTK+ client for Music Player Daemon"
12 HOMEPAGE="http://sourceforge.net/projects/pympd"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 ~ppc ~sparc x86"
18 IUSE=""
19
20 RDEPEND=">=dev-python/pygtk-2.6
21 || ( x11-libs/gdk-pixbuf:2[jpeg] x11-libs/gtk+:2[jpeg] )
22 x11-themes/gnome-icon-theme"
23 DEPEND="${RDEPEND}
24 virtual/pkgconfig"
25
26 pkg_setup() {
27 python_set_active_version 2
28 python_pkg_setup
29 }
30
31 src_prepare() {
32 sed -i -e 's:FLAGS =:FLAGS +=:' src/modules/tray/Makefile || die
33 sed -i -e 's:\..\/py:/usr/share/pympd/py:g' src/glade/pympd.glade || die
34 epatch "${FILESDIR}"/${P}-desktop-entry.patch
35 }
36
37 src_compile() {
38 emake CC="$(tc-getCC)" PREFIX=/usr DESTDIR="${D}" || die
39 }
40
41 src_install() {
42 emake PREFIX=/usr DESTDIR="${D}" install || die
43 dodoc README
44 }
45
46 pkg_preinst() {
47 gnome2_icon_savelist
48 }
49
50 pkg_postinst() {
51 python_mod_optimize pympd
52 gnome2_icon_cache_update
53 }
54
55 pkg_postrm() {
56 python_mod_cleanup pympd
57 gnome2_icon_cache_update
58 }

  ViewVC Help
Powered by ViewVC 1.1.20