pkgsrc-WIP-changes archive

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

micro: Install man page



Module Name:	pkgsrc-wip
Committed By:	Sijmen J. Mulder <sjmulder%NetBSD.org@localhost>
Pushed By:	sjmulder
Date:		Fri May 29 02:14:33 2020 +0200
Changeset:	925d8dd9a2fa50ffa3d724aa1382ea58a0f6ae90

Modified Files:
	micro/Makefile
	micro/PLIST

Log Message:
micro: Install man page

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=925d8dd9a2fa50ffa3d724aa1382ea58a0f6ae90

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

diffstat:
 micro/Makefile | 5 +++++
 micro/PLIST    | 1 +
 2 files changed, 6 insertions(+)

diffs:
diff --git a/micro/Makefile b/micro/Makefile
index 15ae12c94f..130e857a03 100644
--- a/micro/Makefile
+++ b/micro/Makefile
@@ -10,6 +10,8 @@ HOMEPAGE=	https://micro-eidtor.github.io
 COMMENT=	Modern and intuitive terminal-based text editor
 LICENSE=	mit 
 
+INSTALLATION_DIRS+=	${PKGMANDIR}/man1
+
 GO_BUILD_PATTERN=	./cmd/micro
 
 GO_MODULE_FILES+=	gopkg.in/yaml.v2/@v/v2.2.4.mod
@@ -80,5 +82,8 @@ GO_MODULE_FILES+=	github.com/mattn/go-runewidth/@v/v0.0.7.zip
 GO_MODULE_FILES+=	github.com/yuin/gopher-lua/@v/v0.0.0-20191220021717-ab39c6098bdb.zip
 GO_MODULE_FILES+=	layeh.com/gopher-luar/@v/v1.0.7.zip
 
+post-install:
+	${INSTALL_MAN} ${WRKSRC}/assets/packaging/micro.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
 .include "../../lang/go/go-module.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/micro/PLIST b/micro/PLIST
index 7a2b80e432..3c6f99419a 100644
--- a/micro/PLIST
+++ b/micro/PLIST
@@ -1,2 +1,3 @@
 @comment $NetBSD$
 bin/micro
+man/man1/micro.1


Home | Main Index | Thread Index | Old Index