pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/jsongrep
Module Name: pkgsrc
Committed By: pin
Date: Sun Apr 19 16:08:21 UTC 2026
Modified Files:
pkgsrc/textproc/jsongrep: Makefile PLIST
Log Message:
textproc/jsongrep: install man pages
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/textproc/jsongrep/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/jsongrep/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/jsongrep/Makefile
diff -u pkgsrc/textproc/jsongrep/Makefile:1.3 pkgsrc/textproc/jsongrep/Makefile:1.4
--- pkgsrc/textproc/jsongrep/Makefile:1.3 Sun Apr 19 14:47:33 2026
+++ pkgsrc/textproc/jsongrep/Makefile Sun Apr 19 16:08:20 2026
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2026/04/19 14:47:33 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2026/04/19 16:08:20 pin Exp $
DISTNAME= jsongrep-0.9.0
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=micahkepe/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -10,6 +11,20 @@ HOMEPAGE= https://github.com/micahkepe/j
COMMENT= Path query language over JSON documents
LICENSE= mit
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= share/bash-completion/completions
+INSTALLATION_DIRS+= share/zsh/site-functions
+
+post-build:
+ cd ${WRKSRC} && target/release/jg generate shell bash > jg.bash
+ cd ${WRKSRC} && target/release/jg generate shell zsh > jg.zsh
+ cd ${WRKSRC} && target/release/jg generate man -o .
+
+post-install:
+ cd ${WRKSRC} && ${INSTALL_MAN} *.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ cd ${WRKSRC} && ${INSTALL_DATA} jg.bash ${DESTDIR}${PREFIX}/share/bash-completion/completions/jg
+ cd ${WRKSRC} && ${INSTALL_DATA} jg.zsh ${DESTDIR}${PREFIX}/share/zsh/site-functions/_jg
+
.include "cargo-depends.mk"
.include "../../lang/rust/cargo.mk"
Index: pkgsrc/textproc/jsongrep/PLIST
diff -u pkgsrc/textproc/jsongrep/PLIST:1.1 pkgsrc/textproc/jsongrep/PLIST:1.2
--- pkgsrc/textproc/jsongrep/PLIST:1.1 Sun Mar 29 15:28:31 2026
+++ pkgsrc/textproc/jsongrep/PLIST Sun Apr 19 16:08:20 2026
@@ -1,2 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2026/03/29 15:28:31 pin Exp $
+@comment $NetBSD: PLIST,v 1.2 2026/04/19 16:08:20 pin Exp $
bin/jg
+man/man1/jg-generate-man.1
+man/man1/jg-generate-shell.1
+man/man1/jg-generate.1
+man/man1/jg.1
+share/bash-completion/completions/jg
+share/zsh/site-functions/_jg
Home |
Main Index |
Thread Index |
Old Index