1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= D-Bus daemon for power management tasks
9 HOMEPAGE= https://upower.freedesktop.org
10 CONTACT= Michael_Reim[kraileth@elderlinux.org]
13 SITES[main]= https://gitlab.freedesktop.org/upower/upower/-/archive/v1.90.4/
14 DISTFILE[1]= upower-v1.90.4.tar.gz:main
16 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
23 BUILD_DEPENDS= automake:single:standard
24 autoconf:single:standard
25 docbook-xsl:primary:standard
26 libtool:single:standard
27 BUILDRUN_DEPENDS= dbus-glib:primary:standard
28 polkit:primary:standard
29 B_DEPS[linux]= libgudev:dev:standard libusb:dev:standard
30 BR_DEPS[linux]= libgudev:primary:standard libusb:primary:standard
32 USES= meson pkgconfig shebangfix
33 GNOME_COMPONENTS= glib intltool introspection
35 DISTNAME= upower-v1.90.4
37 LICENSE= GPLv2+:primary
38 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
39 LICENSE_FILE= GPLv2+:{{WRKSRC}}/COPYING
40 LICENSE_AWK= TERMS:"^$$"
41 LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/up-native.h
44 FPC_EQUIVALENT= sysutils/upower
45 GTKDOC_OUTPUT_BASEDIR= UPower
46 MESON_ARGS= -Dman=true
48 -Dintrospection=enabled
49 -Dsystemdsystemunitdir=no
51 SHEBANG_FILES= src/linux/integration-test.py
53 INSTALL_REQ_TOOLCHAIN= yes
56 CFLAGS= -Wno-deprecated-declarations
57 VAR_OPSYS[freebsd]= CONFIGURE_ARGS=-Dos_backend=freebsd
58 CONFIGURE_ARGS=-Dudevrulesdir=no
59 CONFIGURE_ARGS=-Dudevhwdbdir=no
61 VAR_OPSYS[sunos]= CONFIGURE_ARGS=-Dos_backend=dummy
62 VAR_OPSYS[linux]= CONFIGURE_ARGS=-Dos_backend=linux
63 CONFIGURE_ARGS=-Dudevrulesdir=/etc/udev/rules.d
64 CONFIGURE_ARGS=-Dudevhwdbdir=/etc/udev/hwdb.d
65 VAR_OPSYS[netbsd]= CONFIGURE_ARGS=-Dos_backend=dummy
66 CONFIGURE_ARGS=-Dudevrulesdir=no
67 CONFIGURE_ARGS=-Dudevhwdbdir=no
68 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS=-Dos_backend=freebsd
69 CONFIGURE_ARGS=-Dudevrulesdir=no
70 CONFIGURE_ARGS=-Dudevhwdbdir=no
71 CFLAGS=-D__WANT_NO_INLINED___ERROR
72 VAR_OPSYS[midnightbsd]= CONFIGURE_ARGS=-Dos_backend=freebsd
73 CONFIGURE_ARGS=-Dudevrulesdir=no
74 CONFIGURE_ARGS=-Dudevhwdbdir=no
78 ${RM} -r ${STAGEDIR}/var
81 ${REINPLACE_CMD} -e "s|http://docbook.sourceforge.net/release/xsl/current/|file://${LOCALBASE}/share/xsl/docbook/|" \
82 ${WRKSRC}/doc/man/meson.build
84 [FILE:863:descriptions/desc.primary]
85 UPower is an abstraction for enumerating power devices, listening to
86 device events and querying history and statistics. Any application or
87 service on the system can access the org.freedesktop.UPower service via
88 the system message bus. Some operations (such as suspending the system)
89 are restricted using PolicyKit.
91 UPower was once called DeviceKit-power. UPower aims to make a large chunk
92 of HAL redundant, as HAL is officially deprecated.
94 UPower is also useful to control the latency of different operations on
95 your computer, which enables you to save significant amounts of power.
96 Nothing much uses this interface yet, but this is a classic chicken and
97 egg scenario, and I think it's important to encourage the egg to lay a
98 chicken. Please report any problems to the Freedesktop bugzilla or send a
99 mail to the DeviceKit mailing list for discussion.
103 cd194dd278bd8d058b4728efd1d0a91cdf017378f025b558beb6f60a86af4781 181952 upower-v1.90.4.tar.gz
106 [FILE:1210:manifests/plist.primary]
107 %%ONLY-LINUX%%/etc/udev/hwdb.d/95-upower-hid.hwdb
108 %%ONLY-LINUX%%/etc/udev/rules.d/
111 %%ONLY-LINUX%%libexec/upower/
114 %%ONLY-LINUX%%libexec/upower/tests/
116 steelseries-headset.device
118 wacom-bluetooth-active.device
119 wacom-dongle-active.device
120 wacom-dongle-waiting.device
121 wacom-pen-digitiser.device
122 %%ONLY-LINUX%%share/installed-tests/upower/upower-integration.test
124 etc/UPower/UPower.conf
125 include/libupower-glib/
136 libupower-glib.so.%%SOMAJOR%%
137 libupower-glib.so.%%SOVERSION%%
138 lib/girepository-1.0/UPowerGlib-1.0.typelib
139 lib/pkgconfig/upower-glib.pc
141 share/dbus-1/interfaces/
142 org.freedesktop.UPower.Device.xml
143 org.freedesktop.UPower.KbdBacklight.xml
144 org.freedesktop.UPower.xml
145 share/dbus-1/system-services/org.freedesktop.UPower.service
146 share/dbus-1/system.d/org.freedesktop.UPower.conf
147 share/gir-1.0/UPowerGlib-1.0.gir
148 share/man/man1/upower.1.gz
149 share/man/man7/UPower.7.gz
150 share/man/man8/upowerd.8.gz
154 [FILE:152:manifests/plist.nls]
155 share/locale/fr/LC_MESSAGES/upower.mo
156 share/locale/it/LC_MESSAGES/upower.mo
157 share/locale/pl/LC_MESSAGES/upower.mo
158 share/locale/sv/LC_MESSAGES/upower.mo
161 [FILE:300:patches/patch-meson.build]
162 --- meson.build.orig 2023-07-06 08:52:27 UTC
164 @@ -111,7 +111,9 @@ endif
165 config_h = configure_file(output: 'config.h', configuration: cdata)
169 +if os_backend == 'linux'
174 subdir('libupower-glib')
177 [FILE:555:freebsd/patch-src_freebsd_meson.build]
178 --- src/freebsd/meson.build.orig 2023-07-06 08:52:27 UTC
179 +++ src/freebsd/meson.build
181 +kvm_dep = cc.find_library('kvm')
182 upshared += { 'freebsd': static_library('upshared',
185 @@ -13,6 +14,6 @@ upshared += { 'freebsd': static_library(
188 c_args: [ '-DG_LOG_DOMAIN="UPower-Freebsd"' ],
189 - dependencies: [ gudev_dep, upowerd_deps, upshared_common_dep ],
190 + dependencies: [ gudev_dep, upowerd_deps, upshared_common_dep, kvm_dep ],
191 build_by_default: false,
195 [FILE:363:freebsd/patch-src_freebsd_up-devd.c]
196 --- src/freebsd/up-devd.c.orig 2023-07-06 08:52:27 UTC
197 +++ src/freebsd/up-devd.c
198 @@ -195,7 +195,7 @@ up_devd_event_cb (GIOChannel *source, GI
199 event[terminator] = 0;
200 up_devd_process_event(event, user_data);
202 - } else if (status == G_IO_STATUS_AGAIN) {
204 up_devd_init (UP_BACKEND(user_data));
205 if (up_devd_inited) {
209 [FILE:464:freebsd/patch-src_freebsd_up-device-supply.c]
210 --- src/freebsd/up-device-supply.c.orig 2023-07-06 08:52:27 UTC
211 +++ src/freebsd/up-device-supply.c
212 @@ -250,7 +250,7 @@ up_device_supply_battery_set_properties
214 "energy-full", lastfull,
215 "energy-full-design", dcap,
216 - "energy-rate", rate,
217 + "energy-rate", (battinfo.battinfo.state & ACPI_BATT_STAT_CHARGING) ? -rate : rate,
218 "energy-empty", lcap,
220 "capacity", capacity,