# $Id$ PNAME="dbus-python" PVER="1.2.8" PBUILD="r1" SPLIT_PACKAGES="python2-dbus python3-dbus dbus-python" PCAT="dev-python" HOMEPAGE="http://www.freedesktop.org/wiki/Software/DBusBindings" DEPEND=">= dev-lang/python-2.7 >= sys-apps/dbus-1.10 >= dev-libs/glib2-2.45 >= dev-libs/dbus-glib-0.108" SDEPEND=">= dev-util/pkgconfig-0.25 >= dev-python/python2-setuptools-20 >= dev-python/python3-setuptools-20" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude python2 python3 SRC_URI=( http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2SUBDIR="${PNAME}" UP2TARBALL="${PNAME}" UP2DATE="updatecmd_freedesktop dbus gz" split_info_python2-dbus() { DESCRIPTION="DBus Python2 bindings." } split_info_python3-dbus() { DESCRIPTION="DBus Python3 bindings." } split_info_dbus-python() { PVER="9999" PKGTYPE="virtual" DESCRIPTION="Transitional package for python2-dbus." HOMEPAGE="http://www.magellan-linux.de/" DEPEND=">= dev-python/python2-dbus-1" } src_prepare() { python2_src_prepare || die python3_src_prepare || die } src_compile() { python2_src_compile || die python3_src_compile || die } src_install_python2-dbus() { python2_src_install || die } src_install_python3-dbus() { python3_src_install || die }