pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/upower



Module Name:    pkgsrc
Committed By:   vins
Date:           Sun May  4 11:44:33 UTC 2025

Modified Files:
        pkgsrc/sysutils/upower: Makefile
Added Files:
        pkgsrc/sysutils/upower: PLIST.Linux

Log Message:
sysutils/upower: allow linux backend

bump revision


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/sysutils/upower/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/upower/PLIST.Linux

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/upower/Makefile
diff -u pkgsrc/sysutils/upower/Makefile:1.26 pkgsrc/sysutils/upower/Makefile:1.27
--- pkgsrc/sysutils/upower/Makefile:1.26        Sun May  4 06:30:39 2025
+++ pkgsrc/sysutils/upower/Makefile     Sun May  4 11:44:32 2025
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2025/05/04 06:30:39 vins Exp $
+# $NetBSD: Makefile,v 1.27 2025/05/04 11:44:32 vins Exp $
 
 DISTNAME=      upower-v1.90.9
 PKGNAME=       ${DISTNAME:S/v//}
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  https://gitlab.freedesktop.org/upower/upower/-/archive/v${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.bz2
@@ -32,8 +33,7 @@ PKGCONFIG_OVERRIDE+=  upower-glib.pc.in
 .include "../../mk/bsd.prefs.mk"
 
 # Free/OpenBSD and Linux are officially supported.
-# However, the Linux backend requires gudev, which we lack in pkgsrc.
-.if ${OPSYS} == "OpenBSD" || ${OPSYS} == "FreeBSD"
+.if ${OPSYS} == "OpenBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} =="Linux"
 MESON_ARGS+=   -Dos_backend=${LOWER_OPSYS}
 .else
 MESON_ARGS+=   -Dos_backend=dummy
@@ -44,13 +44,27 @@ MESON_ARGS+=        --sysconfdir=${PKG_SYSCONFB
                -Dstatedir=${VARBASE} \
                -Dhistorydir=${VARBASE}/db/upower \
                -Degdir=${EGDIR} \
+               -Dzshcompletiondir=${PREFIX}/share/zsh/site-functions \
                -Dman=true \
                -Dgtk-doc=false \
-               -Dudevrulesdir=disabled \
-               -Dudevhwdbdir=disabled \
-               -Dsystemdsystemunitdir=no \
                -Didevice=disabled
 
+.if ${OPSYS} =="Linux"
+.  include "../../lang/python/pyversion.mk"
+.  include "../../lang/python/application.mk"
+
+REPLACE_PYTHON=        integration-test.py unittest_inspector.py
+
+.  include "../../devel/libgudev/buildlink3.mk"
+MESON_ARGS+=   -Dudevrulesdir=${PREFIX}/lib/udev/rules.d \
+               -Dudevhwdbdir=${PKG_SYSCONFBASEDIR}/udev/hwdb.d \
+               -Dsystemdsystemunitdir=${EGDIR}
+.else
+MESON_ARGS+=    -Dudevrulesdir=disabled \
+                       -Dudevhwdbdir=disabled \
+                       -Dsystemdsystemunitdir=no
+.endif
+
 .include "options.mk"
 
 BUILDLINK_TRANSFORM.Darwin+=   rm:-Wl,--as-needed

Added files:

Index: pkgsrc/sysutils/upower/PLIST.Linux
diff -u /dev/null pkgsrc/sysutils/upower/PLIST.Linux:1.1
--- /dev/null   Sun May  4 11:44:33 2025
+++ pkgsrc/sysutils/upower/PLIST.Linux  Sun May  4 11:44:32 2025
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2025/05/04 11:44:32 vins Exp $
+etc/udev/hwdb.d/60-upower-battery.hwdb
+etc/udev/hwdb.d/95-upower-hid.hwdb
+lib/udev/rules.d/60-upower-battery.rules
+lib/udev/rules.d/95-upower-hid.rules
+lib/udev/rules.d/95-upower-wup.rules
+libexec/upower/integration-test.py
+libexec/upower/output_checker.py
+libexec/upower/tests/logitech-g903.device
+libexec/upower/tests/steelseries-headset.device
+libexec/upower/tests/usb-headset.device
+libexec/upower/tests/wacom-bluetooth-active.device
+libexec/upower/tests/wacom-dongle-active.device
+libexec/upower/tests/wacom-dongle-waiting.device
+libexec/upower/tests/wacom-pen-digitiser.device
+share/examples/upower/upower.service
+share/installed-tests/upower/upower-integration.test



Home | Main Index | Thread Index | Old Index