blob: 04c428b7209e9d2c45e4ed1cacbfa9545716084b (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils multilib python
MY_PN="${PN/q/Q}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="a gtk/glade front-end for Qemu"
HOMEPAGE="http://qemulator.createweb.de/"
SRC_URI="http://qemulator.createweb.de/plugins/downloads/dodownload.php?file=${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND=">=dev-python/pygtk-2.8.6
>=app-emulation/qemu-0.8.1"
S=${WORKDIR}/${MY_P}
src_unpack(){
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-basedir.patch"
sed -i -e "s:@GENTOO_LIBDIR@:$(get_libdir):" \
usr/local/lib/${PN}/${PN}.py || die "sed failed"
}
src_install() {
dobin usr/local/bin/*
insinto /usr/$(get_libdir)
doins -r usr/local/lib/*
insinto /usr/share
doins -r usr/local/share/*
dodoc TRANSLATION README
}
pkg_postinst() {
python_mod_optimize "${ROOT}/usr/$(get_libdir)/${PN}"
}
pkg_postrm() {
python_mod_cleanup "${ROOT}/usr/$(get_libdir)/${PN}"
}
|