# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/bonobo-python/bonobo-python-0.2.0-r3.ebuild,v 1.6 2003/09/06 23:32:28 msterret Exp $ IUSE="" S=${WORKDIR}/${P} DESCRIPTION="Bonobo bindings for Python" SRC_URI="http://bonobo-python.lajnux.nu/download/${P}.tar.gz" HOMEPAGE="http://bonobo-python.lajnux.nu/" DEPEND="=x11-libs/gtk+-1.2* >=gnome-base/bonobo-1.0.9 configure chmod +x configure } src_compile() { PYTHON="/usr/bin/python" econf \ --with-libIDL-prefix=/usr --with-orbit-prefix=/usr \ --with-oaf-prefix=/usr || die make || die } src_install() { # check if nautilus 1 was found grep "#pysite_PYTHON" ${S}/nautilus/Makefile >& /dev/null && \ ( \ mv ${S}/nautilus/Makefile ${S}/nautilus/Makefile.orig; \ sed s/'install-data-am: install-pysitePYTHON'/'install-data-am:'/ ${S}/nautilus/Makefile.orig > ${S}/nautilus/Makefile; \ ) einstall || die dodoc AUTHORS COPYING ChangeLog NEWS README TODO }