# 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 }