pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
jsongrep: install man pages and shell completion files
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Sat Mar 28 20:40:46 2026 +0100
Changeset: 8415b0766f53819beaf6e8584a226f72ff2d0f0d
Modified Files:
jsongrep/Makefile
jsongrep/PLIST
Log Message:
jsongrep: install man pages and shell completion files
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8415b0766f53819beaf6e8584a226f72ff2d0f0d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
jsongrep/Makefile | 14 ++++++++++++++
jsongrep/PLIST | 6 ++++++
2 files changed, 20 insertions(+)
diffs:
diff --git a/jsongrep/Makefile b/jsongrep/Makefile
index 0272f99e87..342db2f8e3 100644
--- a/jsongrep/Makefile
+++ b/jsongrep/Makefile
@@ -10,6 +10,20 @@ HOMEPAGE= https://github.com/micahkepe/jsongrep/
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"
diff --git a/jsongrep/PLIST b/jsongrep/PLIST
index 973799978c..41656a5947 100644
--- a/jsongrep/PLIST
+++ b/jsongrep/PLIST
@@ -1,2 +1,8 @@
@comment $NetBSD$
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