summaryrefslogtreecommitdiff
blob: 1ad41e78ee350e09a583dbb91b7c11746c279161 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/gquilt/gquilt-0.20.ebuild,v 1.3 2008/02/18 00:39:21 mr_bones_ 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_version
	python_mod_optimize /usr/share/gquilt
}

pkg_prerm() {
	python_version
	python_mod_cleanup /usr/share/gquilt
}