Ravenports generated: 20 Jun 2024 17:00
[ravenports.git] / bucket_53 / upower
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               upower
4 VERSION=                1.90.4
5 REVISION=               1
6 KEYWORDS=               sysutils
7 VARIANTS=               standard
8 SDESC[standard]=        D-Bus daemon for power management tasks
9 HOMEPAGE=               https://upower.freedesktop.org
10 CONTACT=                Michael_Reim[kraileth@elderlinux.org]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            https://gitlab.freedesktop.org/upower/upower/-/archive/v1.90.4/
14 DISTFILE[1]=            upower-v1.90.4.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         nls
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                         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
31
32 USES=                   meson pkgconfig shebangfix
33 GNOME_COMPONENTS=       glib intltool introspection
34
35 DISTNAME=               upower-v1.90.4
36
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
42 LICENSE_SCHEME=         solo
43
44 FPC_EQUIVALENT=         sysutils/upower
45 GTKDOC_OUTPUT_BASEDIR=  UPower
46 MESON_ARGS=             -Dman=true
47                         -Dgtk-doc=false
48                         -Dintrospection=enabled
49                         -Dsystemdsystemunitdir=no
50                         -Didevice=disabled
51 SHEBANG_FILES=          src/linux/integration-test.py
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 VAR_OPSYS[midnightbsd]= CONFIGURE_ARGS=-Dos_backend=freebsd
73                         CONFIGURE_ARGS=-Dudevrulesdir=no
74                         CONFIGURE_ARGS=-Dudevhwdbdir=no
75                         LDFLAGS=-lkvm
76
77 post-stage:
78         ${RM} -r ${STAGEDIR}/var
79
80 pre-configure:
81         ${REINPLACE_CMD} -e "s|http://docbook.sourceforge.net/release/xsl/current/|file://${LOCALBASE}/share/xsl/docbook/|" \
82                 ${WRKSRC}/doc/man/meson.build
83
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.
90
91 UPower was once called DeviceKit-power. UPower aims to make a large chunk 
92 of HAL redundant, as HAL is officially deprecated.
93
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.
100
101
102 [FILE:100:distinfo]
103 cd194dd278bd8d058b4728efd1d0a91cdf017378f025b558beb6f60a86af4781       181952 upower-v1.90.4.tar.gz
104
105
106 [FILE:1210:manifests/plist.primary]
107 %%ONLY-LINUX%%/etc/udev/hwdb.d/95-upower-hid.hwdb
108 %%ONLY-LINUX%%/etc/udev/rules.d/
109  95-upower-hid.rules
110  95-upower-wup.rules
111 %%ONLY-LINUX%%libexec/upower/
112  integration-test.py
113  output_checker.py
114 %%ONLY-LINUX%%libexec/upower/tests/
115  logitech-g903.device
116  steelseries-headset.device
117  usb-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
123 bin/upower
124 etc/UPower/UPower.conf
125 include/libupower-glib/
126  up-autocleanups.h
127  up-client.h
128  up-device.h
129  up-history-item.h
130  up-stats-item.h
131  up-types.h
132  up-version.h
133  upower.h
134 lib/
135  libupower-glib.so
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
140 libexec/upowerd
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
151 @dir var/lib/upower
152
153
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
159
160
161 [FILE:300:patches/patch-meson.build]
162 --- meson.build.orig    2023-07-06 08:52:27 UTC
163 +++ meson.build
164 @@ -111,7 +111,9 @@ endif
165  config_h = configure_file(output: 'config.h', configuration: cdata)
166  
167  subdir('etc')
168 -subdir('rules')
169 +if os_backend == 'linux'
170 +    subdir('rules')
171 +endif
172  subdir('po')
173  subdir('dbus')
174  subdir('libupower-glib')
175
176
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
180 @@ -1,3 +1,4 @@
181 +kvm_dep = cc.find_library('kvm')
182  upshared += { 'freebsd': static_library('upshared',
183      sources: [
184          'up-acpi-native.c',
185 @@ -13,6 +14,6 @@ upshared += { 'freebsd': static_library(
186          'up-util.h',
187      ],
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,
192  )}
193
194
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);
201                 g_free(event);
202 -       } else if (status == G_IO_STATUS_AGAIN) {
203 +       } else {
204                 up_devd_init (UP_BACKEND(user_data));
205                 if (up_devd_inited) {
206                         int fd;
207
208
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
213                       "energy", cap,
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,
219                       "voltage", volt,
220                       "capacity", capacity,
221