pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/ast-grep



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat May 23 12:31:10 UTC 2026

Modified Files:
        pkgsrc/devel/ast-grep: Makefile PLIST

Log Message:
ast-grep: install shell completions.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 pkgsrc/devel/ast-grep/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/ast-grep/PLIST

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

Modified files:

Index: pkgsrc/devel/ast-grep/Makefile
diff -u pkgsrc/devel/ast-grep/Makefile:1.82 pkgsrc/devel/ast-grep/Makefile:1.83
--- pkgsrc/devel/ast-grep/Makefile:1.82 Wed May 20 03:45:03 2026
+++ pkgsrc/devel/ast-grep/Makefile      Sat May 23 12:31:10 2026
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.82 2026/05/20 03:45:03 pin Exp $
+# $NetBSD: Makefile,v 1.83 2026/05/23 12:31:10 wiz Exp $
 
 DISTNAME=      ast-grep-0.42.3
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ast-grep/}
 
@@ -15,12 +16,26 @@ RUST_REQ=   1.79.0
 USE_LANGUAGES= c c++
 
 INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    share/bash-completion/completions
+INSTALLATION_DIRS+=    share/fish/vendor_completions.d
+INSTALLATION_DIRS+=    share/zsh/site-functions
+
+post-build:
+       for shell in bash fish zsh; do \
+               ${WRKSRC}/target/release/ast-grep completions $$shell > ${WRKDIR}/$$shell; \
+       done
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/sg \
                ${DESTDIR}${PREFIX}/bin
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/ast-grep \
                ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKDIR}/bash \
+               ${DESTDIR}${PREFIX}/share/bash-completion/completions/ast-grep
+       ${INSTALL_DATA} ${WRKDIR}/fish \
+               ${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/ast-grep.fish
+       ${INSTALL_DATA} ${WRKDIR}/zsh \
+               ${DESTDIR}${PREFIX}/share/zsh/site-functions/_ast-grep
 
 .include "../../lang/rust/cargo.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/ast-grep/PLIST
diff -u pkgsrc/devel/ast-grep/PLIST:1.1 pkgsrc/devel/ast-grep/PLIST:1.2
--- pkgsrc/devel/ast-grep/PLIST:1.1     Sat Jan 13 19:30:50 2024
+++ pkgsrc/devel/ast-grep/PLIST Sat May 23 12:31:10 2026
@@ -1,3 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1 2024/01/13 19:30:50 pin Exp $
+@comment $NetBSD: PLIST,v 1.2 2026/05/23 12:31:10 wiz Exp $
 bin/ast-grep
 bin/sg
+share/bash-completion/completions/ast-grep
+share/fish/vendor_completions.d/ast-grep.fish
+share/zsh/site-functions/_ast-grep



Home | Main Index | Thread Index | Old Index