blob: 41e7fb11abbc0b4cb587468c59313c1f68cbef77 (
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
|
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v3
# $Header: $
EAPI=2
DESCRIPTION="A Python/GTK application to play free music from Jamendo"
HOMEPAGE="https://launchpad.net/pyjama"
SRC_URI="http://launchpad.net/pyjama/trunk/0.3/+download/${P}_all.tar.gz
-> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="gnome"
RDEPEND="dev-python/pygtk
dev-python/simplejson
|| ( dev-python/lxml dev-python/pyxml )
|| ( dev-lang/python:2.6[sqlite] dev-python/pysqlite )
dev-lang/python:2.6
>=dev-python/gst-python-0.10
>=media-plugins/gst-plugins-soup-0.10
gnome? ( dev-python/gnome-python-extras )"
DEPEND="${DEPEND}"
src_compile() {
einfo "Nothing to compile for ${P}."
}
src_install() {
if [ -e /usr/lib/pyjama/pyjama.py ]
then
ewarn "Please delete /usr/lib/pyjama!"
ewarn "This directory is not needed any more"
fi
einfo "1/3 Copying files"
dodir /usr/share/apps/pyjama
cp -R "${S}_all"/src/* ${D}/usr/share/apps/pyjama/
dosym /usr/share/apps/pyjama/pyjama.py /usr/bin/pyjama
einfo "2/3 Checking modules..."
${D}/usr/bin/pyjama check-modules
einfo "3/3 Creating menu-entry for pyjama"
dosym /usr/share/apps/pyjama/images/pyjama.xpm /usr/share/pixmaps/pyjama.xpm
dosym /usr/share/apps/pyjama/pyjama.desktop /usr/share/applications/pyjama.desktop
einfo "Pyjama has been installed. Just type 'pyjama' to run it."
}
|