diff options
author | Matt Turner <mattst88@gentoo.org> | 2022-08-31 21:24:15 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-08-31 21:28:14 -0400 |
commit | 56b055845d1c14d8e8171cefe8453fc521dc534a (patch) | |
tree | d3d19b38a0204dafd3978989038d26915d4ee1ff /sys-power | |
parent | x11-plugins/wmifs: add ppp-defs for musl (diff) | |
download | gentoo-56b055845d1c14d8e8171cefe8453fc521dc534a.tar.gz gentoo-56b055845d1c14d8e8171cefe8453fc521dc534a.tar.bz2 gentoo-56b055845d1c14d8e8171cefe8453fc521dc534a.zip |
sys-power/upower: Drop old versions
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/upower/Manifest | 4 | ||||
-rw-r--r-- | sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch | 31 | ||||
-rw-r--r-- | sys-power/upower/files/upower-0.99.12-fix-power_now-energy_rate-readings.patch | 43 | ||||
-rw-r--r-- | sys-power/upower/files/upower-0.99.17-meson-Don-t-search-for-gtk-doc-if-disabled.patch | 60 | ||||
-rw-r--r-- | sys-power/upower/upower-0.99.12-r1.ebuild | 100 | ||||
-rw-r--r-- | sys-power/upower/upower-0.99.17.ebuild | 117 | ||||
-rw-r--r-- | sys-power/upower/upower-0.99.18.ebuild | 117 | ||||
-rw-r--r-- | sys-power/upower/upower-0.99.19.ebuild | 117 |
8 files changed, 0 insertions, 589 deletions
diff --git a/sys-power/upower/Manifest b/sys-power/upower/Manifest index 1d7d74184043..1f9e6dd964b8 100644 --- a/sys-power/upower/Manifest +++ b/sys-power/upower/Manifest @@ -1,5 +1 @@ -DIST upower-0.99.12.tar.xz 423640 BLAKE2B 4c5c6357f0a2f8d721ebae9736912b1871a898c7ce65708626f9a9465cde87036ba6ab8050d97f5b9074d92e2700d8ed1e71b67f43cd6305eb4e89336f1b628f SHA512 9858a0e5f65271522cc5f36b0cd8722a5fb3effba37dbc5b22f08606701d4242ee54329d07460768004a24dc42705a84140ac6d9691afb7f09584b2e61fe3413 -DIST upower-v0.99.17.tar.bz2 139108 BLAKE2B de48a8058752f3e2bcefe83fe049ae9181517276f6d2930c402089291d935ecbdc6f7759d811467c537801c422f5d32a02366f3e3d57bea9e73e311b13df046a SHA512 fcb2f344e82f04af85eee3a4ef42a4d119f7b55fd4e1c6bc2633845135bf524957b54c849bf6501d89cfbd285a7e1fbeecb8e846aa108e2b36d1550347150c04 -DIST upower-v0.99.18.tar.bz2 141140 BLAKE2B 2e6acfaf58f6e0031326c269ad58bfcdac84a25f952ef3169e6ee85889696c5c83d10aaf67b8244a2378150fd591ddbd3101d21d1e7534e5d7f2f69ee070a174 SHA512 f33a2ca35209d69fa7ddf614c6a390973c998c6473448acb00ca86114f7bfc05beb8f904010ed7b5a440209fe503e759682459893fdc9690c4b79d516e7f9de1 -DIST upower-v0.99.19.tar.bz2 141661 BLAKE2B 4c117927d17f118cd06165160b407190ab86fff6bc194204038fd334dc879726c1f83fa23c89c2574cf8de6211ce6a884cc103f8292618818b1bc60e5ba8f1e8 SHA512 1462a64bc642bd6c5c235742f5a8fa9e3440846d90061889b568fc0a91f7b24d56d1f5a3d33bff8d6d35f78aa8bc8c15f9c4a51a2cb40f1ee3b2a822ad60ca33 DIST upower-v0.99.20.tar.bz2 126098 BLAKE2B 670a2ad746c5cf8b2aca332f1f8c36fc96cd82b3ad8a7a5337dd3edce60cd73b1a83e807ec3f257d5216b3b4873f1bcf6cc9c434c195f75680e891c653f44fe1 SHA512 50e5b03f1319da3869b0caba4fbe78c8eabf1df6f783f1463b06394bee58bae42ad411780faa503965c5fdb983d723c0b5ae0731fae4220997a17875f4850b1e diff --git a/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch b/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch deleted file mode 100644 index feafa87e9705..000000000000 --- a/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch +++ /dev/null @@ -1,31 +0,0 @@ -Bug: https://bugs.gentoo.org/848525 - -From aa646fa0ca3e164b09949c546796ec50433b748d Mon Sep 17 00:00:00 2001 -From: Benjamin Berg <bberg@redhat.com> -Date: Tue, 17 May 2022 16:02:49 +0200 -Subject: [PATCH] meson: Allow unittest inspector to fail - -It is only used to make the test output nicer, and it is completely fine -to fail. - -Closes: #187 ---- - src/meson.build | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/meson.build b/src/meson.build -index b49d5f0..2e1edd1 100644 ---- a/src/meson.build -+++ b/src/meson.build -@@ -124,7 +124,7 @@ if os_backend == 'linux' and gobject_introspection.found() - - python3 = find_program('python3') - unittest_inspector = find_program('linux/unittest_inspector.py') -- r = run_command(unittest_inspector, files('linux/integration-test.py'), check: true) -+ r = run_command(unittest_inspector, files('linux/integration-test.py'), check: false) - unit_tests = r.stdout().strip().split('\n') - - foreach ut: unit_tests --- -2.35.1 - diff --git a/sys-power/upower/files/upower-0.99.12-fix-power_now-energy_rate-readings.patch b/sys-power/upower/files/upower-0.99.12-fix-power_now-energy_rate-readings.patch deleted file mode 100644 index c3dd864a6b1d..000000000000 --- a/sys-power/upower/files/upower-0.99.12-fix-power_now-energy_rate-readings.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 2949136b152e94aa3b57da5130bcb9022724debe Mon Sep 17 00:00:00 2001 -From: Philipp Zabel <p.zabel@pengutronix.de> -Date: Thu, 17 Jun 2021 18:14:53 +0200 -Subject: [PATCH] linux: Fix < 0.01 W energy-rate readings from power_now sysfs - property - -Currently, if a power supplies' power_now sysfs file reports discharge -rates < 0.01 W, the code will try to calculate the discharge rate from -the legacy sysfs files. On new kernels where those don't exist, this -produces wrong results. - -For example, on a dual-battery Thinkpad T450s, while the external -battery is discharging, the internal battery reports power_now = 0, -but the corresponding upower energy-rate field incorrectly reads -about 2.3 W. - -This patch fixes the issue by falling back to the legacy code only if -the legacy current_now sysfs file exists. - -Closes: #7, #44 ---- - src/linux/up-device-supply.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c -index 3ebbd88..4236ce4 100644 ---- a/src/linux/up-device-supply.c -+++ b/src/linux/up-device-supply.c -@@ -682,8 +682,9 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply, - state = up_device_supply_get_state (native); - - /* this is the new value in uW */ -- energy_rate = fabs (g_udev_device_get_sysfs_attr_as_double_uncached (native, "power_now") / 1000000.0); -- if (energy_rate < 0.01) { -+ if (g_udev_device_has_sysfs_attr (native, "power_now")) { -+ energy_rate = fabs (g_udev_device_get_sysfs_attr_as_double_uncached (native, "power_now") / 1000000.0); -+ } else { - gdouble charge_full; - - /* convert charge to energy */ --- -GitLab - diff --git a/sys-power/upower/files/upower-0.99.17-meson-Don-t-search-for-gtk-doc-if-disabled.patch b/sys-power/upower/files/upower-0.99.17-meson-Don-t-search-for-gtk-doc-if-disabled.patch deleted file mode 100644 index ead41d2e64c8..000000000000 --- a/sys-power/upower/files/upower-0.99.17-meson-Don-t-search-for-gtk-doc-if-disabled.patch +++ /dev/null @@ -1,60 +0,0 @@ -https://gitlab.freedesktop.org/upower/upower/-/merge_requests/123 - -From 1003d5c2a69e6c28dcf68adf10181b5180b5defa Mon Sep 17 00:00:00 2001 -From: Matt Turner <mattst88@gmail.com> -Date: Sun, 20 Mar 2022 15:32:55 -0700 -Subject: [PATCH] meson: Don't search for gtk-doc if disabled - ---- - doc/meson.build | 38 ++++++++++++++++++++------------------ - 1 file changed, 20 insertions(+), 18 deletions(-) - -diff --git a/doc/meson.build b/doc/meson.build -index dc93a16..5fc253c 100644 ---- a/doc/meson.build -+++ b/doc/meson.build -@@ -27,21 +27,23 @@ version_xml = configure_file( - input: 'version.xml.in', - configuration: cdata) - --gnome.gtkdoc('UPower', -- main_xml: 'upower-docs.xml', -- src_dir: meson.source_root() / 'libupower-glib', -- dependencies: [ libupower_glib_dep ], -- scan_args: ['--rebuild-types', '--rebuild-sections'], -- content_files: [ -- version_xml, -- ifaces_refs, -- 'man/UPower.xml', -- 'man/upowerd.xml', -- 'man/upower.xml', -- '../COPYING', -- ], -- ignore_headers: [ -- 'config.h', -- ], -- install: get_option('gtk-doc') --) -+if get_option('gtk-doc') -+ gnome.gtkdoc('UPower', -+ main_xml: 'upower-docs.xml', -+ src_dir: meson.source_root() / 'libupower-glib', -+ dependencies: [ libupower_glib_dep ], -+ scan_args: ['--rebuild-types', '--rebuild-sections'], -+ content_files: [ -+ version_xml, -+ ifaces_refs, -+ 'man/UPower.xml', -+ 'man/upowerd.xml', -+ 'man/upower.xml', -+ '../COPYING', -+ ], -+ ignore_headers: [ -+ 'config.h', -+ ], -+ install: true -+ ) -+endif --- -2.34.1 - diff --git a/sys-power/upower/upower-0.99.12-r1.ebuild b/sys-power/upower/upower-0.99.12-r1.ebuild deleted file mode 100644 index d894dcb5bdf8..000000000000 --- a/sys-power/upower/upower-0.99.12-r1.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit systemd xdg-utils - -DESCRIPTION="D-Bus abstraction for enumerating power devices, querying history and statistics" -HOMEPAGE="https://upower.freedesktop.org/" -COMMIT="244f5966c58773bbd3b4c507c549560f" -SRC_URI="https://gitlab.freedesktop.org/upower/upower/uploads/${COMMIT}/${P}.tar.xz" -# No tarball released at the usual location -#SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz" - -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" - -# gtk-doc files are not available as prebuilt in the tarball -IUSE="doc +introspection ios selinux" - -DEPEND=" - >=dev-libs/glib-2.38:2 - sys-apps/dbus:= - introspection? ( dev-libs/gobject-introspection:= ) - kernel_linux? ( - >=dev-libs/libgudev-236:= - virtual/udev - ios? ( - >=app-pda/libimobiledevice-1:= - >=app-pda/libplist-2:= - ) - ) -" -RDEPEND="${DEPEND} - selinux? ( sec-policy/selinux-devicekit ) -" -BDEPEND=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - >=sys-devel/gettext-0.19.8 - virtual/pkgconfig - doc? ( dev-util/gtk-doc ) -" - -QA_MULTILIB_PATHS="usr/lib/${PN}/.*" - -DOCS=( AUTHORS HACKING NEWS README ) - -PATCHES=( "${FILESDIR}/${P}-fix-power_now-energy_rate-readings.patch" ) # bug 796896 - -src_prepare() { - default - xdg_environment_reset - sed -i -e '/DISABLE_DEPRECATED/d' configure || die -} - -src_configure() { - local backend - - if use kernel_linux ; then - backend=linux - else - backend=dummy - fi - - local myeconfargs=( - --disable-tests - --enable-man-pages - --libexecdir="${EPREFIX}"/usr/lib/${PN} - --localstatedir="${EPREFIX}"/var - --with-backend=${backend} - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" - --with-systemdutildir="$(systemd_get_utildir)" - $(use_enable doc gtk-doc) - $(use_enable introspection) - $(use_with ios idevice) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - default - find "${ED}" -type f -name '*.la' -delete || die - keepdir /var/lib/upower #383091 -} - -pkg_postinst() { - 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" - elog "supported by the Linux kernel since version >=3.2." - elog - elog "Support for CSR devices battery state was removed from udev rules" - elog "in version 0.99.12. This concerns the following Logitech products" - elog "from the mid 2000s:" - elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," - elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." - fi -} diff --git a/sys-power/upower/upower-0.99.17.ebuild b/sys-power/upower/upower-0.99.17.ebuild deleted file mode 100644 index eaa60751fe3f..000000000000 --- a/sys-power/upower/upower-0.99.17.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -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/" -SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2" - -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" - -# gtk-doc files are not available as prebuilt in the tarball -IUSE="doc +introspection ios selinux test" -RESTRICT="!test? ( test )" - -DEPEND=" - >=dev-libs/glib-2.56:2 - sys-apps/dbus:= - introspection? ( dev-libs/gobject-introspection:= ) - kernel_linux? ( - >=dev-libs/libgudev-236:= - virtual/udev - ios? ( - >=app-pda/libimobiledevice-1:= - >=app-pda/libplist-2:= - ) - ) -" -RDEPEND="${DEPEND} - selinux? ( sec-policy/selinux-devicekit ) -" -BDEPEND=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - dev-util/gdbus-codegen - >=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}" - -QA_MULTILIB_PATHS="usr/lib/${PN}/.*" - -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 -} - -src_configure() { - local backend - - if use kernel_linux ; then - backend=linux - else - backend=dummy - fi - - local emesonargs=( - --localstatedir "${EPREFIX}"/var - - -Dman=true - $(meson_use doc gtk-doc) - $(meson_feature introspection) - -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d" - -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" - -Dos_backend="${backend}" - $(meson_feature ios idevice) - ) - meson_src_configure -} - -src_install() { - meson_src_install - keepdir /var/lib/upower #383091 -} - -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" - elog "supported by the Linux kernel since version >=3.2." - elog - elog "Support for CSR devices battery state was removed from udev rules" - elog "in version 0.99.12. This concerns the following Logitech products" - elog "from the mid 2000s:" - elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," - elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." - fi -} diff --git a/sys-power/upower/upower-0.99.18.ebuild b/sys-power/upower/upower-0.99.18.ebuild deleted file mode 100644 index 760dcd025ded..000000000000 --- a/sys-power/upower/upower-0.99.18.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..11} ) -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/" -SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2" - -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" - -# gtk-doc files are not available as prebuilt in the tarball -IUSE="doc +introspection ios selinux test" -RESTRICT="!test? ( test )" - -DEPEND=" - >=dev-libs/glib-2.58:2 - sys-apps/dbus:= - introspection? ( dev-libs/gobject-introspection:= ) - kernel_linux? ( - >=dev-libs/libgudev-236:= - virtual/udev - ios? ( - >=app-pda/libimobiledevice-1:= - >=app-pda/libplist-2:= - ) - ) -" -RDEPEND="${DEPEND} - selinux? ( sec-policy/selinux-devicekit ) -" -BDEPEND=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - dev-util/gdbus-codegen - >=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}" - -QA_MULTILIB_PATHS="usr/lib/${PN}/.*" - -PATCHES=( - "${FILESDIR}"/${PV}-meson-Allow-unittest-inspector-to-fail.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 -} - -src_configure() { - local backend - - if use kernel_linux ; then - backend=linux - else - backend=dummy - fi - - local emesonargs=( - --localstatedir "${EPREFIX}"/var - - -Dman=true - $(meson_use doc gtk-doc) - $(meson_feature introspection) - -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d" - -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" - -Dos_backend="${backend}" - $(meson_feature ios idevice) - ) - meson_src_configure -} - -src_install() { - meson_src_install - keepdir /var/lib/upower #383091 -} - -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" - elog "supported by the Linux kernel since version >=3.2." - elog - elog "Support for CSR devices battery state was removed from udev rules" - elog "in version 0.99.12. This concerns the following Logitech products" - elog "from the mid 2000s:" - elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," - elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." - fi -} diff --git a/sys-power/upower/upower-0.99.19.ebuild b/sys-power/upower/upower-0.99.19.ebuild deleted file mode 100644 index 5554b4d5e0a6..000000000000 --- a/sys-power/upower/upower-0.99.19.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..11} ) -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/" -SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0/3" # based on SONAME of libupower-glib.so -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" - -# gtk-doc files are not available as prebuilt in the tarball -IUSE="doc +introspection ios selinux test" -RESTRICT="!test? ( test )" - -DEPEND=" - >=dev-libs/glib-2.58:2 - sys-apps/dbus:= - introspection? ( dev-libs/gobject-introspection:= ) - kernel_linux? ( - >=dev-libs/libgudev-236:= - virtual/udev - ios? ( - >=app-pda/libimobiledevice-1:= - >=app-pda/libplist-2:= - ) - ) -" -RDEPEND="${DEPEND} - selinux? ( sec-policy/selinux-devicekit ) -" -BDEPEND=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - dev-util/gdbus-codegen - >=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}" - -QA_MULTILIB_PATHS="usr/lib/${PN}/.*" - -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 -} - -src_configure() { - local backend - - if use kernel_linux ; then - backend=linux - else - backend=dummy - fi - - local emesonargs=( - --localstatedir "${EPREFIX}"/var - - -Dman=true - $(meson_use doc gtk-doc) - $(meson_feature introspection) - -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d" - -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" - -Dos_backend="${backend}" - $(meson_feature ios idevice) - ) - meson_src_configure -} - -src_install() { - meson_src_install - keepdir /var/lib/upower #383091 -} - -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" - elog "supported by the Linux kernel since version >=3.2." - elog - elog "Support for CSR devices battery state was removed from udev rules" - elog "in version 0.99.12. This concerns the following Logitech products" - elog "from the mid 2000s:" - elog "Mouse/Dual/Keyboard+Mouse Receiver, Freedom Optical, Elite Duo," - elog "MX700/MX1000, Optical TrackMan, Click! Mouse, Presenter." - fi -} - -pkg_postrm() { - udev_reload -} |