summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2016-04-24 13:47:41 +0200
committerPacho Ramos <pacho@gentoo.org>2016-04-24 14:06:59 +0200
commit891536f0aa09c00e03ca888c71a69e5beaf35aa0 (patch)
treee7bc20d8bb2ebd26e0d41a56926b2f1f35d483e6 /media-sound
parentapp-i18n/imhangul: Bump EAPI (diff)
downloadgentoo-891536f0aa09c00e03ca888c71a69e5beaf35aa0.tar.gz
gentoo-891536f0aa09c00e03ca888c71a69e5beaf35aa0.tar.bz2
gentoo-891536f0aa09c00e03ca888c71a69e5beaf35aa0.zip
media-sound/pympd: Bump eapi, use new python eclasses, fix dependencies
Package-Manager: portage-2.2.28
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/pympd/pympd-0.08.1-r1.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/media-sound/pympd/pympd-0.08.1-r1.ebuild b/media-sound/pympd/pympd-0.08.1-r1.ebuild
new file mode 100644
index 000000000000..53967ba58357
--- /dev/null
+++ b/media-sound/pympd/pympd-0.08.1-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils gnome2-utils multilib python-single-r1 toolchain-funcs
+
+DESCRIPTION="a Rhythmbox-like PyGTK+ client for Music Player Daemon"
+HOMEPAGE="http://sourceforge.net/projects/pympd"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-python/pygtk-2.6:2
+ gnome-base/libglade:2.0
+ x11-libs/gdk-pixbuf:2[jpeg]
+ x11-themes/adwaita-icon-theme
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}"/${P}-desktop-entry.patch )
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ python_fix_shebang .
+ sed -i -e 's:FLAGS =:FLAGS +=:' src/modules/tray/Makefile || die
+ sed -i -e 's:\..\/py:/usr/share/pympd/py:g' src/glade/pympd.glade || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" PREFIX=/usr DESTDIR="${D}"
+}
+
+src_install() {
+ emake PREFIX=/usr DESTDIR="${D}" install
+ einstalldocs
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}