Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-python/dbus-python/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST dbus-python-1.2.18.tar.gz 578204 BLAKE2B 932a06f4b0145f7a47cf1ab6ea33c14eb4e36570ef548e7557d4aa5b780e49f2d284cdb51f0ec2d8a1cb286097fb9eabb2193d7cbeb387eaf43cbe209b7f11fa SHA512 72f422c59637392bd78b741b66dff2afadcc706452c3e82fdc14b1dc052a0c5cb8a85e2758d18c5cbdc08004419a0b3c16b67b99688d96307084403e72585900
72 changes: 72 additions & 0 deletions dev-python/dbus-python/dbus-python-1.2.18.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python3+ pypy3 )
PYTHON_REQ_USE="threads(+)"

inherit autotools python-r1

DESCRIPTION="Python bindings for the D-Bus messagebus"
HOMEPAGE="https://www.freedesktop.org/wiki/Software/DBusBindings https://dbus.freedesktop.org/doc/dbus-python/"
SRC_URI="https://files.pythonhosted.org/packages/b1/5c/ccfc167485806c1936f7d3ba97db6c448d0089c5746ba105b6eb22dba60e/dbus-python-1.2.18.tar.gz -> dbus-python-1.2.18.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE="doc examples test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"

RDEPEND="
>=sys-apps/dbus-1.8:=
>=dev-libs/glib-2.40
${PYTHON_DEPS}"
DEPEND="${RDEPEND}
virtual/pkgconfig
doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
test? ( dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/tappy[${PYTHON_USEDEP}] )"

python_check_deps() {
has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
}

src_prepare() {
default
# Update py-compile, bug 529502.
eautoreconf
python_copy_sources
}

src_configure() {
use doc && python_setup
local SPHINX_IMPL=${EPYTHON}

configuring() {
local myconf=(
--disable-documentation
)
[[ ${EPYTHON} == ${SPHINX_IMPL} ]] &&
myconf+=( --enable-documentation )

econf "${myconf[@]}"
}
python_foreach_impl run_in_build_dir configuring
}

src_compile() {
python_foreach_impl run_in_build_dir default
}

src_test() {
unset DBUS_SESSION_BUS_ADDRESS
python_foreach_impl run_in_build_dir default
}

src_install() {
python_foreach_impl run_in_build_dir default
find "${D}" -name "*.la" -delete || die

use examples && dodoc -r examples
}