aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-01-23 23:36:44 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-01-24 00:06:46 +0000
commitd674ffac146cfba7d207d85acfb5f395b18d9854 (patch)
tree1517b22cd7a60a725cf014d45044b28fa0e4dc71
parent188b98d8135051ed471ef005564785b0f5b62f0e (diff)
downloadports-d674ffac146cfba7d207d85acfb5f395b18d9854.tar.gz
ports-d674ffac146cfba7d207d85acfb5f395b18d9854.zip
astro/mepo: install manpage
Inspired by: Alpine, Arch, NixPkgs (cherry picked from commit 574f4db8b8e6751e3836e2f42330545e70735ad5)
-rw-r--r--astro/mepo/Makefile5
-rw-r--r--astro/mepo/pkg-plist1
2 files changed, 6 insertions, 0 deletions
diff --git a/astro/mepo/Makefile b/astro/mepo/Makefile
index 8ed9ce1947ec..220ebb807866 100644
--- a/astro/mepo/Makefile
+++ b/astro/mepo/Makefile
@@ -1,5 +1,6 @@
PORTNAME= mepo
DISTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= astro geography wayland
MASTER_SITES= https://git.sr.ht/~mil/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
@@ -37,6 +38,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