git: 574f4db8b8e6 - main - astro/mepo: install manpage

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 00:05:26 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=574f4db8b8e6751e3836e2f42330545e70735ad5

commit 574f4db8b8e6751e3836e2f42330545e70735ad5
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-01-23 23:36:44 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-01-23 23:51:42 +0000

    astro/mepo: install manpage
    
    Inspired by:    Alpine, Arch, NixPkgs
---
 astro/mepo/Makefile  | 6 +++++-
 astro/mepo/pkg-plist | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/astro/mepo/Makefile b/astro/mepo/Makefile
index b35f28c11a8a..e273a2e96d36 100644
--- a/astro/mepo/Makefile
+++ b/astro/mepo/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mepo
 DISTVERSION=	1.1.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	astro geography wayland
 MASTER_SITES=	https://git.sr.ht/~mil/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
 
@@ -41,6 +41,10 @@ post-patch:
 do-build:
 	@(cd ${WRKSRC} && ${MAKE_ENV} zig build ${CONFIGURE_ARGS})
 
+post-install:
+	@${STAGEDIR}${PREFIX}/bin/${PORTNAME} -docman \
+		>${STAGEDIR}${PREFIX}/share/man/man1/${PORTNAME}.1
+
 do-test:
 	@(cd ${WRKSRC} && ${TEST_ENV} zig build test ${CONFIGURE_ARGS})
 
diff --git a/astro/mepo/pkg-plist b/astro/mepo/pkg-plist
index e3a75f57e892..9ffc92578841 100644
--- a/astro/mepo/pkg-plist
+++ b/astro/mepo/pkg-plist
@@ -21,4 +21,5 @@ bin/mepo_ui_menu_user_pin_updater.sh
 share/applications/mepo.desktop
 share/icons/hicolor/128x128/apps/mepo.png
 share/icons/hicolor/512x512/apps/mepo.png
+share/man/man1/mepo.1.gz
 share/pixmaps/mepo.png