# $Id$ sminclude python # some sane default values : ${PCAT="dev-python"} : ${SRCFILE="gnome-python-${PVER}.tar.bz2"} : ${SRCDIR="${BUILDDIR}/gnome-python-${PVER}"} : ${DESCRIPTION="${PNAME/-python/} module of gnome-python."} : ${HOMEPAGE="http://www.pygtk.org/"} if [[ ${PNAME} != gnome-python-base ]] then SDEPEND="${SDEPEND} == dev-python/gnome-python-base-${PVER}" fi SDEPEND="${SDEPEND} >= dev-util/pkgconfig-0.23" SRC_URI=( ${SRC_URI[*]} gnome://gnome-python/${PVER%.*}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) gnome-python_src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # delete setup.py - this build method is deprecated, use autotools instead! if [[ -e setup.py ]] then rm setup.py || die fi if [[ ${PNAME} != gnome-python-base ]] then # do not install the pkgconfig file, it gets installed by the base package sed -i -e '/^pkgconfig_DATA/d' -e '/^pkgconfigdir/d' Makefile.in || die fi } gnome-python_src_compile() { local myconf if [[ ${PNAME} != gnome-python-base ]] then myconf="--enable-${PNAME/-python/}" fi python_src_compile --disable-allbindings ${myconf} || die } gnome-python_src_install() { python_src_install || die } export_inherits gnome-python src_prepare src_compile src_install