Ravenports generated: 24 Jan 2024 23:27
[ravenports.git] / bucket_53 / upower
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               upower
4 VERSION=                1.90.2
5 KEYWORDS=               sysutils
6 VARIANTS=               standard
7 SDESC[standard]=        D-Bus daemon for power management tasks
8 HOMEPAGE=               https://upower.freedesktop.org
9 CONTACT=                Michael_Reim[kraileth@elderlinux.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://gitlab.freedesktop.org/upower/upower/-/archive/v1.90.2/
13 DISTFILE[1]=            upower-v1.90.2.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         nls
18                         docs
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
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
32
33 USES=                   meson pkgconfig gtk-doc shebangfix
34 GNOME_COMPONENTS=       glib intltool introspection
35
36 DISTNAME=               upower-v1.90.2
37
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
43 LICENSE_SCHEME=         solo
44
45 FPC_EQUIVALENT=         sysutils/upower
46 GTKDOC_OUTPUT_BASEDIR=  UPower
47 MESON_ARGS=             -Dman=true
48                         -Dgtk-doc=true
49                         -Dintrospection=enabled
50                         -Dsystemdsystemunitdir=no
51                         -Didevice=disabled
52 SHEBANG_FILES=          src/linux/integration-test.py
53
54 INSTALL_REQ_TOOLCHAIN=  yes
55 SOVERSION=              3.1.0
56
57 CFLAGS=                 -Wno-deprecated-declarations
58 VAR_OPSYS[freebsd]=     CONFIGURE_ARGS=-Dos_backend=freebsd
59                         CONFIGURE_ARGS=-Dudevrulesdir=no
60                         CONFIGURE_ARGS=-Dudevhwdbdir=no
61                         LDFLAGS=-lkvm
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
76                         LDFLAGS=-lkvm
77
78 post-stage:
79         ${RM} -r ${STAGEDIR}/var
80
81 pre-configure:
82         ${REINPLACE_CMD} -e "s|http://docbook.sourceforge.net/release/xsl/current/|file://${LOCALBASE}/share/xsl/docbook/|" \
83                 ${WRKSRC}/doc/man/meson.build
84
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.
91
92 UPower was once called DeviceKit-power. UPower aims to make a large chunk 
93 of HAL redundant, as HAL is officially deprecated.
94
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.
101
102
103 [FILE:100:distinfo]
104 5c4e736648f0c89d2368fbbe1e6fc0598a1565c4b435bade1d65e890259fb759       180731 upower-v1.90.2.tar.gz
105
106
107 [FILE:1210:manifests/plist.primary]
108 %%ONLY-LINUX%%/etc/udev/hwdb.d/95-upower-hid.hwdb
109 %%ONLY-LINUX%%/etc/udev/rules.d/
110  95-upower-hid.rules
111  95-upower-wup.rules
112 %%ONLY-LINUX%%libexec/upower/
113  integration-test.py
114  output_checker.py
115 %%ONLY-LINUX%%libexec/upower/tests/
116  logitech-g903.device
117  steelseries-headset.device
118  usb-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
124 bin/upower
125 etc/UPower/UPower.conf
126 include/libupower-glib/
127  up-autocleanups.h
128  up-client.h
129  up-device.h
130  up-history-item.h
131  up-stats-item.h
132  up-types.h
133  up-version.h
134  upower.h
135 lib/
136  libupower-glib.so
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
141 libexec/upowerd
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
152 @dir var/lib/upower
153
154
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
160
161
162 [FILE:466:manifests/plist.docs]
163 share/doc/upower/
164  Device.html
165  KbdBacklight.html
166  UPower-up-types.html
167  UPower.7.html
168  UPower.html
169  UpClient.html
170  UpDevice.html
171  UpHistoryItem.html
172  UpStatsItem.html
173  annotation-glossary.html
174  home.png
175  index.html
176  ix01.html
177  left-insensitive.png
178  left.png
179  libupower-glib-helpers.html
180  libupower-glib.html
181  license.html
182  ref-dbus.html
183  right-insensitive.png
184  right.png
185  style.css
186  tools-fileformats.html
187  up-insensitive.png
188  up.png
189  upower.1.html
190  upowerd.8.html
191
192
193 [FILE:300:patches/patch-meson.build]
194 --- meson.build.orig    2023-07-06 08:52:27 UTC
195 +++ meson.build
196 @@ -111,7 +111,9 @@ endif
197  config_h = configure_file(output: 'config.h', configuration: cdata)
198  
199  subdir('etc')
200 -subdir('rules')
201 +if os_backend == 'linux'
202 +    subdir('rules')
203 +endif
204  subdir('po')
205  subdir('dbus')
206  subdir('libupower-glib')
207
208
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
212 @@ -1,3 +1,4 @@
213 +kvm_dep = cc.find_library('kvm')
214  upshared += { 'freebsd': static_library('upshared',
215      sources: [
216          'up-acpi-native.c',
217 @@ -13,6 +14,6 @@ upshared += { 'freebsd': static_library(
218          'up-util.h',
219      ],
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,
224  )}
225
226
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);
233                 g_free(event);
234 -       } else if (status == G_IO_STATUS_AGAIN) {
235 +       } else {
236                 up_devd_init (UP_BACKEND(user_data));
237                 if (up_devd_inited) {
238                         int fd;
239
240
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
245                       "energy", cap,
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,
251                       "voltage", volt,
252                       "capacity", capacity,
253