1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= D-Bus daemon for power management tasks
8 HOMEPAGE= https://upower.freedesktop.org
9 CONTACT= Michael_Reim[kraileth@elderlinux.org]
12 SITES[main]= https://gitlab.freedesktop.org/upower/upower/-/archive/v1.90.2/
13 DISTFILE[1]= upower-v1.90.2.tar.gz:main
15 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 gtk-doc:single:standard
27 libtool:single:standard
28 BUILDRUN_DEPENDS= dbus-glib:primary:standard
29 polkit:primary:standard
30 B_DEPS[linux]= libgudev:dev:standard libusb:dev:standard
31 BR_DEPS[linux]= libgudev:primary:standard libusb:primary:standard
33 USES= meson pkgconfig gtk-doc shebangfix
34 GNOME_COMPONENTS= glib intltool introspection
36 DISTNAME= upower-v1.90.2
38 LICENSE= GPLv2+:primary
39 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
40 LICENSE_FILE= GPLv2+:{{WRKSRC}}/COPYING
41 LICENSE_AWK= TERMS:"^$$"
42 LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/up-native.h
45 FPC_EQUIVALENT= sysutils/upower
46 GTKDOC_OUTPUT_BASEDIR= UPower
47 MESON_ARGS= -Dman=true
49 -Dintrospection=enabled
50 -Dsystemdsystemunitdir=no
52 SHEBANG_FILES= src/linux/integration-test.py
54 INSTALL_REQ_TOOLCHAIN= yes
57 CFLAGS= -Wno-deprecated-declarations
58 VAR_OPSYS[freebsd]= CONFIGURE_ARGS=-Dos_backend=freebsd
59 CONFIGURE_ARGS=-Dudevrulesdir=no
60 CONFIGURE_ARGS=-Dudevhwdbdir=no
62 VAR_OPSYS[sunos]= CONFIGURE_ARGS=-Dos_backend=dummy
63 VAR_OPSYS[linux]= CONFIGURE_ARGS=-Dos_backend=linux
64 CONFIGURE_ARGS=-Dudevrulesdir=/etc/udev/rules.d
65 CONFIGURE_ARGS=-Dudevhwdbdir=/etc/udev/hwdb.d
66 VAR_OPSYS[netbsd]= CONFIGURE_ARGS=-Dos_backend=dummy
67 CONFIGURE_ARGS=-Dudevrulesdir=no
68 CONFIGURE_ARGS=-Dudevhwdbdir=no
69 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS=-Dos_backend=freebsd
70 CONFIGURE_ARGS=-Dudevrulesdir=no
71 CONFIGURE_ARGS=-Dudevhwdbdir=no
72 CFLAGS=-D__WANT_NO_INLINED___ERROR
73 VAR_OPSYS[midnightbsd]= CONFIGURE_ARGS=-Dos_backend=freebsd
74 CONFIGURE_ARGS=-Dudevrulesdir=no
75 CONFIGURE_ARGS=-Dudevhwdbdir=no
79 ${RM} -r ${STAGEDIR}/var
82 ${REINPLACE_CMD} -e "s|http://docbook.sourceforge.net/release/xsl/current/|file://${LOCALBASE}/share/xsl/docbook/|" \
83 ${WRKSRC}/doc/man/meson.build
85 [FILE:863:descriptions/desc.primary]
86 UPower is an abstraction for enumerating power devices, listening to
87 device events and querying history and statistics. Any application or
88 service on the system can access the org.freedesktop.UPower service via
89 the system message bus. Some operations (such as suspending the system)
90 are restricted using PolicyKit.
92 UPower was once called DeviceKit-power. UPower aims to make a large chunk
93 of HAL redundant, as HAL is officially deprecated.
95 UPower is also useful to control the latency of different operations on
96 your computer, which enables you to save significant amounts of power.
97 Nothing much uses this interface yet, but this is a classic chicken and
98 egg scenario, and I think it's important to encourage the egg to lay a
99 chicken. Please report any problems to the Freedesktop bugzilla or send a
100 mail to the DeviceKit mailing list for discussion.
104 5c4e736648f0c89d2368fbbe1e6fc0598a1565c4b435bade1d65e890259fb759 180731 upower-v1.90.2.tar.gz
107 [FILE:1210:manifests/plist.primary]
108 %%ONLY-LINUX%%/etc/udev/hwdb.d/95-upower-hid.hwdb
109 %%ONLY-LINUX%%/etc/udev/rules.d/
112 %%ONLY-LINUX%%libexec/upower/
115 %%ONLY-LINUX%%libexec/upower/tests/
117 steelseries-headset.device
119 wacom-bluetooth-active.device
120 wacom-dongle-active.device
121 wacom-dongle-waiting.device
122 wacom-pen-digitiser.device
123 %%ONLY-LINUX%%share/installed-tests/upower/upower-integration.test
125 etc/UPower/UPower.conf
126 include/libupower-glib/
137 libupower-glib.so.%%SOMAJOR%%
138 libupower-glib.so.%%SOVERSION%%
139 lib/girepository-1.0/UPowerGlib-1.0.typelib
140 lib/pkgconfig/upower-glib.pc
142 share/dbus-1/interfaces/
143 org.freedesktop.UPower.Device.xml
144 org.freedesktop.UPower.KbdBacklight.xml
145 org.freedesktop.UPower.xml
146 share/dbus-1/system-services/org.freedesktop.UPower.service
147 share/dbus-1/system.d/org.freedesktop.UPower.conf
148 share/gir-1.0/UPowerGlib-1.0.gir
149 share/man/man1/upower.1.gz
150 share/man/man7/UPower.7.gz
151 share/man/man8/upowerd.8.gz
155 [FILE:152:manifests/plist.nls]
156 share/locale/fr/LC_MESSAGES/upower.mo
157 share/locale/it/LC_MESSAGES/upower.mo
158 share/locale/pl/LC_MESSAGES/upower.mo
159 share/locale/sv/LC_MESSAGES/upower.mo
162 [FILE:466:manifests/plist.docs]
173 annotation-glossary.html
179 libupower-glib-helpers.html
183 right-insensitive.png
186 tools-fileformats.html
193 [FILE:300:patches/patch-meson.build]
194 --- meson.build.orig 2023-07-06 08:52:27 UTC
196 @@ -111,7 +111,9 @@ endif
197 config_h = configure_file(output: 'config.h', configuration: cdata)
201 +if os_backend == 'linux'
206 subdir('libupower-glib')
209 [FILE:555:freebsd/patch-src_freebsd_meson.build]
210 --- src/freebsd/meson.build.orig 2023-07-06 08:52:27 UTC
211 +++ src/freebsd/meson.build
213 +kvm_dep = cc.find_library('kvm')
214 upshared += { 'freebsd': static_library('upshared',
217 @@ -13,6 +14,6 @@ upshared += { 'freebsd': static_library(
220 c_args: [ '-DG_LOG_DOMAIN="UPower-Freebsd"' ],
221 - dependencies: [ gudev_dep, upowerd_deps, upshared_common_dep ],
222 + dependencies: [ gudev_dep, upowerd_deps, upshared_common_dep, kvm_dep ],
223 build_by_default: false,
227 [FILE:363:freebsd/patch-src_freebsd_up-devd.c]
228 --- src/freebsd/up-devd.c.orig 2023-07-06 08:52:27 UTC
229 +++ src/freebsd/up-devd.c
230 @@ -195,7 +195,7 @@ up_devd_event_cb (GIOChannel *source, GI
231 event[terminator] = 0;
232 up_devd_process_event(event, user_data);
234 - } else if (status == G_IO_STATUS_AGAIN) {
236 up_devd_init (UP_BACKEND(user_data));
237 if (up_devd_inited) {
241 [FILE:464:freebsd/patch-src_freebsd_up-device-supply.c]
242 --- src/freebsd/up-device-supply.c.orig 2023-07-06 08:52:27 UTC
243 +++ src/freebsd/up-device-supply.c
244 @@ -250,7 +250,7 @@ up_device_supply_battery_set_properties
246 "energy-full", lastfull,
247 "energy-full-design", dcap,
248 - "energy-rate", rate,
249 + "energy-rate", (battinfo.battinfo.state & ACPI_BATT_STAT_CHARGING) ? -rate : rate,
250 "energy-empty", lcap,
252 "capacity", capacity,