pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/hexyl



Module Name:    pkgsrc
Committed By:   pin
Date:           Wed Sep 13 08:10:40 UTC 2023

Modified Files:
        pkgsrc/sysutils/hexyl: Makefile
Removed Files:
        pkgsrc/sysutils/hexyl/files: hexyl.1

Log Message:
sysutils/hexyl: generate manpage when building


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/sysutils/hexyl/Makefile
cvs rdiff -u -r1.1 -r0 pkgsrc/sysutils/hexyl/files/hexyl.1

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

Modified files:

Index: pkgsrc/sysutils/hexyl/Makefile
diff -u pkgsrc/sysutils/hexyl/Makefile:1.8 pkgsrc/sysutils/hexyl/Makefile:1.9
--- pkgsrc/sysutils/hexyl/Makefile:1.8  Sun Sep 10 18:34:07 2023
+++ pkgsrc/sysutils/hexyl/Makefile      Wed Sep 13 08:10:40 2023
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2023/09/10 18:34:07 pin Exp $
+# $NetBSD: Makefile,v 1.9 2023/09/13 08:10:40 pin Exp $
 
 DISTNAME=      hexyl-0.13.1
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=sharkdp/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -11,15 +11,16 @@ HOMEPAGE=   https://github.com/sharkdp/hex
 COMMENT=       Command-line hex viewer
 LICENSE=       apache-2.0
 
+TOOL_DEPENDS+= go-md2man-[0-9]*:../../textproc/go-md2man
+
 .include "cargo-depends.mk"
 
 INSTALLATION_DIRS=     ${PKGMANDIR}/man1
 
-post-build:
-       ${CP} ${FILESDIR}/hexyl.1 ${WRKDIR}/hexyl.1
-
+# Use go-md2man to generate manpages and install them
 post-install:
-       ${INSTALL_MAN} ${WRKDIR}/hexyl.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       go-md2man < ${WRKSRC}/doc/hexyl.1.md > ${WRKSRC}/doc/hexyl.1
+       ${INSTALL_MAN} ${WRKSRC}/doc/hexyl.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../lang/rust/cargo.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index