summaryrefslogtreecommitdiff
path: root/sys-power/upower
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
committerV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
commit752d6256e5204b958b0ef7905675a940b5e9172f (patch)
tree330d16e6362a49cbed8875a777fe641a43376cd3 /sys-power/upower
parent0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff)
gentoo resync : 12.05.2022
Diffstat (limited to 'sys-power/upower')
-rw-r--r--sys-power/upower/Manifest2
-rw-r--r--sys-power/upower/upower-0.99.17.ebuild26
2 files changed, 24 insertions, 4 deletions
diff --git a/sys-power/upower/Manifest b/sys-power/upower/Manifest
index c4b3eb6d0325..96537360d24f 100644
--- a/sys-power/upower/Manifest
+++ b/sys-power/upower/Manifest
@@ -3,5 +3,5 @@ AUX upower-0.99.17-meson-Don-t-search-for-gtk-doc-if-disabled.patch 1656 BLAKE2B
DIST upower-0.99.12.tar.xz 423640 BLAKE2B 4c5c6357f0a2f8d721ebae9736912b1871a898c7ce65708626f9a9465cde87036ba6ab8050d97f5b9074d92e2700d8ed1e71b67f43cd6305eb4e89336f1b628f SHA512 9858a0e5f65271522cc5f36b0cd8722a5fb3effba37dbc5b22f08606701d4242ee54329d07460768004a24dc42705a84140ac6d9691afb7f09584b2e61fe3413
DIST upower-v0.99.17.tar.bz2 139108 BLAKE2B de48a8058752f3e2bcefe83fe049ae9181517276f6d2930c402089291d935ecbdc6f7759d811467c537801c422f5d32a02366f3e3d57bea9e73e311b13df046a SHA512 fcb2f344e82f04af85eee3a4ef42a4d119f7b55fd4e1c6bc2633845135bf524957b54c849bf6501d89cfbd285a7e1fbeecb8e846aa108e2b36d1550347150c04
EBUILD upower-0.99.12-r1.ebuild 2705 BLAKE2B 4da66afcf8ad299b2cbe201d9f54b514bd912fdadd2c616e061d89d571834c2e71fa5a32258268ecfcf02984c4727edafb122f470f9140bb260c734c14513bd8 SHA512 f5961f9aba9d120646c643641a49fcf8e670543bbeee3670f36b06e41a3a675baaa6b426274ba9801ca446f67d7f39588955a877c225c2b98cf1144b1b21b366
-EBUILD upower-0.99.17.ebuild 2431 BLAKE2B c0ccd1d7381322b53005352d32e8a45813afd559412b594a2d380177685241ebc689c82f4688ae6c4900ea7219daed8ab4fcafdd6c8dfa4ed40d8ca54c50e387 SHA512 d1fec5822baa71e7b16e6029b24af371c9548dfc298214f0fdf7dcd3a7cc743b9d921af27ab9b921c3861a194b9622da080eebb1f60443c87d4d4754a61b996b
+EBUILD upower-0.99.17.ebuild 2890 BLAKE2B 7cbb2e63443639c494b2e98d1ff64ac7c08d0c2775ca86382f53794196e8f02ac8598aa989c0e6f734f2889d8637f8586932fb5c5d12b757861bce8dec20f562 SHA512 738c340c727c4d57603c25bca273b1a06de64357d04f55089f0eb97369cedbe06804c67639f31a50ab76145774a5257fec4bff95c81d0c291019cc15206f1cff
MISC metadata.xml 229 BLAKE2B 35bd897953d3051382021de0742162ed1a166c98224fec04fc54dc467dfe5492289b1da910ae9213259b20a0bd5bbffc041624ccb3aacc23b56de2c397861d7d SHA512 7340f6b8c0a938920b7940a288c212e868ae0d8cb18b97c028e6e959f72f94e35f37a2d864bb662fc1d01b43bd7b72efdcbcc5d48e700aaf8c845eb6b9d67fed
diff --git a/sys-power/upower/upower-0.99.17.ebuild b/sys-power/upower/upower-0.99.17.ebuild
index 3e2e50731bc6..eaa60751fe3f 100644
--- a/sys-power/upower/upower-0.99.17.ebuild
+++ b/sys-power/upower/upower-0.99.17.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-inherit meson systemd udev xdg-utils
+PYTHON_COMPAT=( python3_{8..10} )
+inherit meson python-any-r1 systemd udev xdg-utils
DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics"
HOMEPAGE="https://upower.freedesktop.org/"
@@ -11,10 +12,11 @@ SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV
LICENSE="GPL-2"
SLOT="0/3" # based on SONAME of libupower-glib.so
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
# gtk-doc files are not available as prebuilt in the tarball
-IUSE="doc +introspection ios selinux"
+IUSE="doc +introspection ios selinux test"
+RESTRICT="!test? ( test )"
DEPEND="
>=dev-libs/glib-2.56:2
@@ -39,6 +41,13 @@ BDEPEND="
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
doc? ( dev-util/gtk-doc )
+ test? (
+ $(python_gen_any_dep '
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/python-dbusmock[${PYTHON_USEDEP}]
+ ')
+ dev-util/umockdev
+ )
"
S="${WORKDIR}/${PN}-v${PV}"
@@ -49,6 +58,15 @@ PATCHES=(
"${FILESDIR}"/${P}-meson-Don-t-search-for-gtk-doc-if-disabled.patch
)
+python_check_deps() {
+ python_has_version -b "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
+ python_has_version -b "dev-python/python-dbusmock[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
src_prepare() {
default
xdg_environment_reset
@@ -83,6 +101,8 @@ src_install() {
}
pkg_postinst() {
+ udev_reload
+
if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.99.12; then
elog "Support for Logitech Unifying Receiver battery state readout was"
elog "removed in version 0.99.12, these devices have been directly"