Looks good. Please also remove me as maintainer.

Sent from Outlook for iOS
________________________________
From: Klemens Nanni <k...@openbsd.org>
Sent: Friday, August 23, 2024 4:14:42 PM
To: ports <ports@openbsd.org>; Ashton Fagg <ash...@fagg.id.au>
Subject: x11/autorandr: ship bash, fish and zsh completions

Fish and zsh work for me, haven't tried bash.
Fix comment while here.

Feedback? OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/autorandr/Makefile,v
diff -u -p -r1.10 Makefile
--- Makefile    6 May 2024 12:24:16 -0000       1.10
+++ Makefile    23 Aug 2024 19:46:10 -0000
@@ -1,4 +1,4 @@
-COMMENT=       automates xrandr calls based on connect devices
+COMMENT=       automates xrandr calls based on connected devices

 CATEGORIES=     x11 sysutils

@@ -6,7 +6,7 @@ GH_ACCOUNT=     phillipberndt
 GH_PROJECT=     autorandr
 GH_TAGNAME=     1.15
 MODPY_EGG_VERSION=      ${GH_TAGNAME}.post1
-REVISION=              0
+REVISION=              1

 # GPLv3+
 PERMIT_PACKAGE= Yes
@@ -21,5 +21,8 @@ NO_TEST=      Yes

 post-install:
         ${INSTALL_MAN} ${WRKSRC}/autorandr.1 ${PREFIX}/man/man1/autorandr.1
+       ${INSTALL_DATA} -D 
{${WRKSRC}/contrib/bash_completion/,${PREFIX}/share/bash_completion/completions}/autorandr
+       ${INSTALL_DATA} -D 
{${WRKSRC}/contrib/fish_completion/,${PREFIX}/share/fish/vendor_completions.d}/autorandr.fish
+       ${INSTALL_DATA} -D 
{${WRKSRC}/contrib/zsh_completion/,${PREFIX}/share/zsh/site-functions}/_autorandr

 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/x11/autorandr/pkg/PLIST,v
diff -u -p -r1.3 PLIST
--- pkg/PLIST   25 Nov 2022 21:11:43 -0000      1.3
+++ pkg/PLIST   23 Aug 2024 19:51:36 -0000
@@ -10,3 +10,12 @@ lib/python${MODPY_VERSION}/site-packages
 
lib/python${MODPY_VERSION}/site-packages/autorandr-${MODPY_EGG_VERSION}.dist-info/top_level.txt
 lib/python${MODPY_VERSION}/site-packages/autorandr.py
 @man man/man1/autorandr.1
+share/bash_completion/
+share/bash_completion/completions/
+share/bash_completion/completions/autorandr
+share/fish/
+share/fish/vendor_completions.d/
+share/fish/vendor_completions.d/autorandr.fish
+share/zsh/
+share/zsh/site-functions/
+share/zsh/site-functions/_autorandr

Reply via email to