blob: fc0e2daef332e81e06c21efaef26fb514bbe57ec (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/gquilt/gquilt-0.21.ebuild,v 1.3 2010/05/08 20:51:06 arfrever Exp $
inherit python
DESCRIPTION="A Python/GTK wrapper for quilt"
HOMEPAGE="http://users.bigpond.net.au/Peter-Williams/"
SRC_URI="mirror://sourceforge/gquilt/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="dev-util/quilt
>=dev-python/pygtk-2"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i "s/MODULES_BIN=.*/MODULES_BIN=/;
s/MODULES_OPT=.*/MODULES_OPT=/" Makefile
sed -i -e '/install -m 0644 $(MODULES_OPT)/s/\t/&#/g' Makefile
sed -i -e '/install -m 0644 $(MODULES_BIN)/s/\t/&#/g' Makefile
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" install || die "make install failed"
dodoc ChangeLog
}
pkg_postinst() {
python_mod_optimize /usr/share/gquilt
}
pkg_postrm() {
python_mod_cleanup /usr/share/gquilt
}
|