# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Nautilus bindings for Python" HOMEPAGE="http://wiki.creativecommons.org/wiki/Developer" SRC_URI="mirror://sourceforge/cctools/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND=">=dev-python/gnome-python-2.0.0 >=gnome-base/nautilus-2.6" RDEPEND="${DEPEND}" S=${WORKDIR}/${PN} src_compile() { ./autogen.sh \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man || die "./configure failed" emake || die "emake failed" } src_install() { make \ DESTDIR=${D} \ prefix=${D}/usr \ mandir=${D}/usr/share/man \ infodir=${D}/usr/share/info \ libdir=${D}/usr/$(get_libdir) \ install || die # not sure why portage doesn't grab this automagically dodir /usr/lib/pkgconfig cd ${D}/usr/lib/pkgconfig touch nautilus-python.pc cd ${D} # or why it creates a ${D} inside of ${D} rm -rf ${D}/var }