Ravenports generated: 08 Feb 2023 00:14
[ravenports.git] / bucket_53 / upower
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               upower
4 VERSION=                1.90.0
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.0/
13 DISTFILE[1]=            upower-v1.90.0.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                         gobject-introspection:single:standard
27                         gtk-doc:single:standard
28                         libtool:single:standard
29 BUILDRUN_DEPENDS=       dbus-glib:primary:standard
30                         polkit:primary:standard
31 BR_DEPS[linux]=         libgudev:single:standard libusb:single:standard
32
33 USES=                   meson pkgconfig gtk-doc
34 GNOME_COMPONENTS=       glib intltool
35
36 DISTNAME=               upower-v1.90.0
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
53 INSTALL_REQ_TOOLCHAIN=  yes
54 SOVERSION=              3.1.0
55
56 CFLAGS=                 -Wno-deprecated-declarations
57 VAR_OPSYS[freebsd]=     CONFIGURE_ARGS=-Dos_backend=freebsd
58                         CONFIGURE_ARGS=-Dudevrulesdir=no
59                         CONFIGURE_ARGS=-Dudevhwdbdir=no
60                         LDFLAGS=-lkvm
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
73 post-stage:
74         ${RM} -r ${STAGEDIR}/var
75
76 pre-configure:
77         ${REINPLACE_CMD} -e "s|http://docbook.sourceforge.net/release/xsl/current/|file://${LOCALBASE}/share/xsl/docbook/|" \
78                 ${WRKSRC}/doc/man/meson.build
79
80 [FILE:863:descriptions/desc.primary]
81 UPower is an abstraction for enumerating power devices, listening to 
82 device events and querying history and statistics. Any application or 
83 service on the system can access the org.freedesktop.UPower service via 
84 the system message bus. Some operations (such as suspending the system) 
85 are restricted using PolicyKit.
86
87 UPower was once called DeviceKit-power. UPower aims to make a large chunk 
88 of HAL redundant, as HAL is officially deprecated.
89
90 UPower is also useful to control the latency of different operations on 
91 your computer, which enables you to save significant amounts of power. 
92 Nothing much uses this interface yet, but this is a classic chicken and 
93 egg scenario, and I think it's important to encourage the egg to lay a 
94 chicken. Please report any problems to the Freedesktop bugzilla or send a 
95 mail to the DeviceKit mailing list for discussion.
96
97
98 [FILE:100:distinfo]
99 cb6028f095824422c59d98b3c9903e2eda2a96fc613f11824f0b6379de7efa2e       170168 upower-v1.90.0.tar.gz
100
101
102 [FILE:851:manifests/plist.primary]
103 %%ONLY-LINUX%%/etc/udev/hwdb.d/95-upower-hid.hwdb
104 %%ONLY-LINUX%%/etc/udev/rules.d/
105  95-upower-hid.rules
106  95-upower-wup.rules
107 bin/upower
108 etc/UPower/UPower.conf
109 include/libupower-glib/
110  up-autocleanups.h
111  up-client.h
112  up-device.h
113  up-history-item.h
114  up-stats-item.h
115  up-types.h
116  up-version.h
117  upower.h
118 lib/
119  libupower-glib.so
120  libupower-glib.so.%%SOMAJOR%%
121  libupower-glib.so.%%SOVERSION%%
122 lib/girepository-1.0/UPowerGlib-1.0.typelib
123 lib/pkgconfig/upower-glib.pc
124 libexec/upowerd
125 share/dbus-1/interfaces/
126  org.freedesktop.UPower.Device.xml
127  org.freedesktop.UPower.KbdBacklight.xml
128  org.freedesktop.UPower.xml
129 share/dbus-1/system-services/org.freedesktop.UPower.service
130 share/dbus-1/system.d/org.freedesktop.UPower.conf
131 share/gir-1.0/UPowerGlib-1.0.gir
132 share/man/man1/upower.1.gz
133 share/man/man7/UPower.7.gz
134 share/man/man8/upowerd.8.gz
135 @dir var/lib/upower
136
137
138 [FILE:152:manifests/plist.nls]
139 share/locale/fr/LC_MESSAGES/upower.mo
140 share/locale/it/LC_MESSAGES/upower.mo
141 share/locale/pl/LC_MESSAGES/upower.mo
142 share/locale/sv/LC_MESSAGES/upower.mo
143
144
145 [FILE:466:manifests/plist.docs]
146 share/doc/upower/
147  Device.html
148  KbdBacklight.html
149  UPower-up-types.html
150  UPower.7.html
151  UPower.html
152  UpClient.html
153  UpDevice.html
154  UpHistoryItem.html
155  UpStatsItem.html
156  annotation-glossary.html
157  home.png
158  index.html
159  ix01.html
160  left-insensitive.png
161  left.png
162  libupower-glib-helpers.html
163  libupower-glib.html
164  license.html
165  ref-dbus.html
166  right-insensitive.png
167  right.png
168  style.css
169  tools-fileformats.html
170  up-insensitive.png
171  up.png
172  upower.1.html
173  upowerd.8.html
174
175
176 [FILE:300:patches/patch-meson.build]
177 --- meson.build.orig    2022-07-21 09:06:49 UTC
178 +++ meson.build
179 @@ -111,7 +111,9 @@ endif
180  config_h = configure_file(output: 'config.h', configuration: cdata)
181  
182  subdir('etc')
183 -subdir('rules')
184 +if os_backend == 'linux'
185 +    subdir('rules')
186 +endif
187  subdir('po')
188  subdir('dbus')
189  subdir('libupower-glib')
190
191
192 [FILE:555:freebsd/patch-src_freebsd_meson.build]
193 --- src/freebsd/meson.build.orig        2022-07-21 09:06:49 UTC
194 +++ src/freebsd/meson.build
195 @@ -1,3 +1,4 @@
196 +kvm_dep = cc.find_library('kvm')
197  upshared += { 'freebsd': static_library('upshared',
198      sources: [
199          'up-acpi-native.c',
200 @@ -13,6 +14,6 @@ upshared += { 'freebsd': static_library(
201          'up-util.h',
202      ],
203      c_args: [ '-DG_LOG_DOMAIN="UPower-Freebsd"' ],
204 -    dependencies: [ gudev_dep, upowerd_deps, upshared_common_dep ],
205 +    dependencies: [ gudev_dep, upowerd_deps, upshared_common_dep, kvm_dep ],
206      build_by_default: false,
207  )}
208
209
210 [FILE:363:freebsd/patch-src_freebsd_up-devd.c]
211 --- src/freebsd/up-devd.c.orig  2022-07-21 09:06:49 UTC
212 +++ src/freebsd/up-devd.c
213 @@ -195,7 +195,7 @@ up_devd_event_cb (GIOChannel *source, GI
214                 event[terminator] = 0;
215                 up_devd_process_event(event, user_data);
216                 g_free(event);
217 -       } else if (status == G_IO_STATUS_AGAIN) {
218 +       } else {
219                 up_devd_init (UP_BACKEND(user_data));
220                 if (up_devd_inited) {
221                         int fd;
222
223
224 [FILE:472:freebsd/patch-src_freebsd_up-device-supply.c]
225 --- src/freebsd/up-device-supply.c.orig 2022-09-08 20:53:32.327516000 +0200
226 +++ src/freebsd/up-device-supply.c      2022-09-08 20:55:09.728351000 +0200
227 @@ -250,7 +250,7 @@
228                       "energy", cap,
229                       "energy-full", lastfull,
230                       "energy-full-design", dcap,
231 -                     "energy-rate", rate,
232 +                     "energy-rate", (battinfo.battinfo.state & ACPI_BATT_STAT_CHARGING) ? -rate : rate,
233                       "energy-empty", lcap,
234                       "voltage", volt,
235                       "capacity", capacity,
236
237
238 [FILE:836:freebsd/patch-src_up-device-battery.c]
239 --- src/up-device-battery.c.orig        2022-09-08 20:57:32.863720000 +0200
240 +++ src/up-device-battery.c     2022-09-08 20:58:59.388754000 +0200
241 @@ -125,7 +125,7 @@
242                         continue;
243  
244                 /* Stop searching if the new reference is further away from the long timeout. */
245 -               if (abs(UP_DAEMON_LONG_TIMEOUT * G_USEC_PER_SEC - abs (td)) > abs(UP_DAEMON_SHORT_TIMEOUT * G_USEC_PER_SEC - ref_td))
246 +               if (labs(UP_DAEMON_LONG_TIMEOUT * G_USEC_PER_SEC - labs (td)) > labs(UP_DAEMON_SHORT_TIMEOUT * G_USEC_PER_SEC - ref_td))
247                         break;
248  
249                 ref_td = td;
250 @@ -155,7 +155,7 @@
251          */
252         if (cur->state == UP_DEVICE_STATE_UNKNOWN) {
253                 /* Consider a rate of 0.5W as "no change", otherwise set CHARGING/DISCHARGING */
254 -               if (abs(energy_rate) < 0.5)
255 +               if (fabs(energy_rate) < 0.5)
256                         return;
257                 else if (energy_rate < 0.0)
258                         cur->state = UP_DEVICE_STATE_DISCHARGING;
259