pkgsrc-WIP-changes archive

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

Import wlopm



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Tue Mar 24 01:42:39 2026 +0100
Changeset:	3c80e2f681b4aae617b8badf9932b6e7be866344

Modified Files:
	Makefile
Added Files:
	wlopm/DESCR
	wlopm/Makefile
	wlopm/PLIST
	wlopm/distinfo
	wlopm/patches/patch-Makefile

Log Message:
Import wlopm

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3c80e2f681b4aae617b8badf9932b6e7be866344

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

diffstat:
 Makefile                     |  1 +
 wlopm/DESCR                  |  3 +++
 wlopm/Makefile               | 29 +++++++++++++++++++++++++++++
 wlopm/PLIST                  |  4 ++++
 wlopm/distinfo               |  6 ++++++
 wlopm/patches/patch-Makefile | 26 ++++++++++++++++++++++++++
 6 files changed, 69 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 60a041ab2b..6fe900cb2e 100644
--- a/Makefile
+++ b/Makefile
@@ -6086,6 +6086,7 @@ SUBDIR+=	wl-git
 SUBDIR+=	wl-snapshot
 SUBDIR+=	wla-dx
 SUBDIR+=	wla-dx-git
+SUBDIR+=	wlopm
 SUBDIR+=	wlr-randr
 SUBDIR+=	wlrctl
 SUBDIR+=	wlroots
diff --git a/wlopm/DESCR b/wlopm/DESCR
new file mode 100644
index 0000000000..cb4484baa7
--- /dev/null
+++ b/wlopm/DESCR
@@ -0,0 +1,3 @@
+wlopm is a simple client implementing wlr-output-power-management-v1.
+If no operations are defined, wlopm will list all outputs and their
+current power modes.
diff --git a/wlopm/Makefile b/wlopm/Makefile
new file mode 100644
index 0000000000..8f21e17e0c
--- /dev/null
+++ b/wlopm/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME=	wlopm-1.0.0
+CATEGORIES=	x11
+MASTER_SITES=	https://git.sr.ht/~leon_plickat/wlopm/archive/
+DIST_SUBDIR=	wlopm
+DISTFILES=	v${PKGVERSION_NOREV}${EXTRACT_SUFX}
+
+MAINTAINER=	kikadf.01%gmail.com@localhost
+HOMEPAGE=	https://sr.ht/~leon_plickat/wlopm/
+COMMENT=	Wayland output power management
+LICENSE=	gnu-gpl-v3
+
+NO_CONFIGURE=	yes
+BUILD_TARGET=	wlopm
+USE_TOOLS+=	gmake
+MAKE_FLAGS+=	SCANNER=${TOOLBASE:Q}/bin/wayland-scanner
+TOOL_DEPENDS+=	wayland-[0-9]*:../../devel/wayland
+WRKSRC=		${WRKDIR}/wlopm-v${PKGVERSION_NOREV}
+
+SUBST_CLASSES+=		path
+SUBST_STAGE.path=	pre-build
+SUBST_MESSAGE.path=	Fixing pathes
+SUBST_FILES.path+=	Makefile
+SUBST_VARS.path+=	PREFIX PKGMANDIR
+
+.include "../../devel/wayland/buildlink3.mk"
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/wlopm/PLIST b/wlopm/PLIST
new file mode 100644
index 0000000000..cdfd796ab5
--- /dev/null
+++ b/wlopm/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/wlopm
+man/man1/wlopm.1
+share/bash-completion/completions/wlopm/bash-completion
diff --git a/wlopm/distinfo b/wlopm/distinfo
new file mode 100644
index 0000000000..e2aab40e72
--- /dev/null
+++ b/wlopm/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (wlopm/v1.0.0.tar.gz) = ac18076399b7678871a7f696d3f1c9d866c24124605b8288c57e5ecde7d46de4
+SHA512 (wlopm/v1.0.0.tar.gz) = 6765f4abd46013c4b887972633798956cae8b60c3abd039aa74f3f70ae76696ea015a39dac68898950a939fe808d77e06a4b050b18b38b42eab1402d81926abd
+Size (wlopm/v1.0.0.tar.gz) = 19451 bytes
+SHA1 (patch-Makefile) = 8ef79cf3953f73a1f9e9bdce7ef1f58235ee39b7
diff --git a/wlopm/patches/patch-Makefile b/wlopm/patches/patch-Makefile
new file mode 100644
index 0000000000..d80f13eb6d
--- /dev/null
+++ b/wlopm/patches/patch-Makefile
@@ -0,0 +1,26 @@
+$NetBSD$
+
+* Fix pathes
+* Create BASHCOMPDIR before install the completion file
+
+--- Makefile.orig	2024-12-05 03:07:02.000000000 +0000
++++ Makefile
+@@ -1,8 +1,8 @@
+ SCANNER := wayland-scanner
+ 
+-PREFIX=/usr/local
++PREFIX=@PREFIX@
+ BINDIR=$(PREFIX)/bin
+-MANDIR=$(PREFIX)/share/man
++MANDIR=$(PREFIX)/@PKGMANDIR@
+ BASHCOMPDIR=$(PREFIX)/share/bash-completion/completions
+ 
+ CFLAGS+=-Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result -Wno-strict-prototypes
+@@ -26,6 +26,7 @@ install: wlopm
+ 	install wlopm $(DESTDIR)$(BINDIR)
+ 	install -d $(DESTDIR)$(MANDIR)/man1
+ 	install -m 644 wlopm.1 $(DESTDIR)$(MANDIR)/man1
++	install -d $(DESTDIR)$(BASHCOMPDIR)/wlopm
+ 	install bash-completion $(DESTDIR)$(BASHCOMPDIR)/wlopm
+ 
+ uninstall:


Home | Main Index | Thread Index | Old Index