Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 1 | SUMMARY = "UPower is an abstraction for enumerating power devices" |
| 2 | DESCRIPTION = "UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics." |
| 3 | LICENSE = "GPL-2.0-or-later" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0de8fbf1d97a140d1d93b9f14dcfbf08" |
| 5 | |
| 6 | DEPENDS = " \ |
| 7 | intltool-native \ |
| 8 | libusb1 \ |
| 9 | libgudev \ |
| 10 | glib-2.0 \ |
| 11 | dbus-glib \ |
| 12 | " |
| 13 | |
| 14 | SRC_URI = "git://gitlab.freedesktop.org/upower/upower.git;protocol=https;branch=master" |
| 15 | SRCREV = "c889154ec8e3e2239db9260d48b2e198d72ba002" |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | UPSTREAM_CHECK_GITTAGREGEX = "UPOWER_(?P<pver>\d+(\_\d+)+)" |
| 19 | |
| 20 | GIR_MESON_ENABLE_FLAG = "enabled" |
| 21 | GIR_MESON_DISABLE_FLAG = "disabled" |
| 22 | GTKDOC_MESON_OPTION = "gtk-doc" |
| 23 | |
| 24 | inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd |
| 25 | |
| 26 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 27 | PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist" |
| 28 | PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd" |
| 29 | |
| 30 | EXTRA_OEMESON = " \ |
| 31 | -Dos_backend=linux \ |
| 32 | -Dman=false \ |
| 33 | " |
| 34 | |
| 35 | SYSTEMD_SERVICE:${PN} = "upower.service" |
| 36 | # don't start on boot by default - dbus does that on demand |
| 37 | SYSTEMD_AUTO_ENABLE = "disable" |
| 38 | |
| 39 | RDEPENDS:${PN} += "dbus" |
| 40 | RRECOMMENDS:${PN} += "pm-utils" |
| 41 | FILES:${PN} += " \ |
| 42 | ${datadir}/dbus-1/ \ |
| 43 | ${base_libdir}/udev/* \ |
| 44 | " |