mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 06:37:10 -08:00
dev-python/dbus-python: Bump to 1.5.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST dbus-python-1.4.0.tar.xz 168268 BLAKE2B 17ed4ed1d6f76acf4dc55dc9d281081d0bb412811f0b340edd8c2ef767802dd0386ffa39cdbc7a61870b916b20c89bee0d6a5b6b8e9355c84d2fdc846575e465 SHA512 defd5fba8348635ce52654b7e93e6cacf52966f6facfb7bb04fc77f2f82129e0b7673d4f3d483ef3321985172987d8c3265b27b9200c68c39c729567ffa21456
|
||||
DIST dbus_python-1.5.0.tar.gz 203989 BLAKE2B 1c11bfc701acbe80573117c69f221b17e95210a8711e2cc6d36ce3f441a30953fc3ea10ce384ddce82f06d74b4294b6c7608e4ec46a02aca28467dfa23a69ea6 SHA512 f2de006030df74490df808ed5fe3041a1a0a97ff3ee3d38ecf9e8bd271487d7eca6c1dcd134c646aad0dd4bab7329d7b308ed3045d7e7d8fb3a5e36e1c5507ce
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit meson pypi 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/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="doc examples test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=sys-apps/dbus-1.8
|
||||
>=dev-libs/glib-2.40
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
$(python_gen_any_dep '
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
test? (
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/tap-py[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" \
|
||||
"dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use doc && python_setup
|
||||
local SPHINX_IMPL=${EPYTHON}
|
||||
|
||||
python_configure() {
|
||||
local emesonargs=(
|
||||
-Ddoc=disabled
|
||||
$(meson_feature test tests)
|
||||
)
|
||||
if use doc && [[ ${EPYTHON} == ${SPHINX_IMPL} ]]; then
|
||||
emesonargs+=(
|
||||
-Ddoc=enabled
|
||||
)
|
||||
fi
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
python_foreach_impl python_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_foreach_impl meson_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
python_foreach_impl meson_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_install() {
|
||||
meson_src_install
|
||||
python_optimize
|
||||
}
|
||||
|
||||
python_foreach_impl python_install
|
||||
|
||||
if use doc; then
|
||||
mv "${ED}"/usr/share/doc/dbus-python{,-${PV}} || die
|
||||
fi
|
||||
use examples && dodoc -r examples
|
||||
}
|
||||
Reference in New Issue
Block a user