summaryrefslogtreecommitdiff
path: root/sysutils/vimpager/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/vimpager/Makefile')
-rw-r--r--sysutils/vimpager/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/sysutils/vimpager/Makefile b/sysutils/vimpager/Makefile
index 3cd535016297..4e60790ac91e 100644
--- a/sysutils/vimpager/Makefile
+++ b/sysutils/vimpager/Makefile
@@ -1,6 +1,10 @@
PORTNAME= vimpager
DISTVERSION= 2.06.20250412
+PORTREVISION= 1
CATEGORIES= sysutils
+MASTER_SITES= https://github.com/rkitover/vimpager/releases/download/${DISTVERSION:R}/
+DISTFILES+= man${EXTRACT_SUFX}
+DIST_SUBDIR= ${PORTNAME}
MAINTAINER= nxjoseph@protonmail.com
COMMENT= Use Vim/NeoVim as a pager (${FLAVOR:U} flavor)
@@ -9,6 +13,8 @@ WWW= https://github.com/rkitover/vimpager
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
+TEST_DEPENDS= bats:devel/bats-core
+
FLAVORS= console gtk2 gtk3 motif tiny x11 neovim
FLAVOR?= ${FLAVORS:[1]}
@@ -39,10 +45,19 @@ CONFLICTS_INSTALL= ${FLAVORS:N${FLAVOR}:S/^/vimpager-/}
NO_ARCH= yes
-OPTIONS_DEFINE= DOCS TEST
+OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
DOCS_BUILD_DEPENDS= pandoc:textproc/hs-pandoc
-TEST_RUN_DEPENDS= bats:devel/bats-core
+DOCS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-docs-off
+
+post-extract:
+ @(${MKDIR} ${WRKSRC}/man && \
+ ${MV} ${WRKDIR}/*.1 \
+ ${WRKSRC}/man)
+
+post-install:
+ @${MV} ${STAGEDIR}${PREFIX}/etc/vimpagerrc \
+ ${STAGEDIR}${PREFIX}/etc/vimpagerrc.sample
.include <bsd.port.mk>