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/ifp-gnome/ifp-gnome-0.7.ebuild,v 1.4 2011/02/22 17:21:19 ssuominen Exp $ |
4 |
|
5 |
EAPI=2 |
6 |
|
7 |
PYTHON_DEPEND=2 |
8 |
inherit eutils python |
9 |
|
10 |
DESCRIPTION="Gnome front-end for file management on iRiver iFP MP3 players." |
11 |
HOMEPAGE="http://ifp-gnome.sourceforge.net" |
12 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
13 |
|
14 |
LICENSE="GPL-2" |
15 |
SLOT="0" |
16 |
KEYWORDS="~amd64 ~x86" |
17 |
IUSE="" |
18 |
|
19 |
RDEPEND=">=dev-python/libgnome-python-2 |
20 |
>=dev-python/pygtk-2 |
21 |
>=dev-python/pyifp-0.2.2" |
22 |
DEPEND="" |
23 |
|
24 |
S=${WORKDIR}/${PN} |
25 |
|
26 |
pkg_setup() { |
27 |
python_set_active_version 2 |
28 |
python_pkg_setup |
29 |
} |
30 |
|
31 |
src_prepare() { |
32 |
python_convert_shebangs 2 ${PN}.py |
33 |
epatch "${FILESDIR}"/${P}-file-locations.patch |
34 |
} |
35 |
|
36 |
src_install() { |
37 |
insinto /usr/share/${PN} |
38 |
doins ${PN}.{glade,png} || die |
39 |
newbin ${PN}.py ${PN} || die |
40 |
} |