mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
Use flavors for runtime dependencies. The flavors are same as in editors/vim. Add TEST target and dependency. Submitter takes maintainership. PR: 283220
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
PORTNAME= vimpager
|
|
DISTVERSION= 2.06.20250412
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= nxjoseph@protonmail.com
|
|
COMMENT= Use Vim/NeoVim as a pager (${FLAVOR:U} flavor)
|
|
WWW= https://github.com/rkitover/vimpager
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
FLAVORS= console gtk2 gtk3 motif tiny x11 neovim
|
|
FLAVOR?= ${FLAVORS:[1]}
|
|
|
|
console_RUN_DEPENDS= ${LOCALBASE}/bin/vim:editors/vim@console
|
|
gtk2_PKGNAMESUFFIX= -gtk2
|
|
gtk2_RUN_DEPENDS= ${LOCALBASE}/bin/vim:editors/vim@gtk2
|
|
gtk3_PKGNAMESUFFIX= -gtk3
|
|
gtk3_RUN_DEPENDS= ${LOCALBASE}/bin/vim:editors/vim@gtk3
|
|
motif_PKGNAMESUFFIX= -motif
|
|
motif_RUN_DEPENDS= ${LOCALBASE}/bin/vim:editors/vim@motif
|
|
neovim_PKGNAMESUFFIX= -neovim
|
|
neovim_RUN_DEPENDS= ${LOCALBASE}/bin/nvim:editors/neovim
|
|
tiny_PKGNAMESUFFIX= -tiny
|
|
tiny_RUN_DEPENDS= ${LOCALBASE}/bin/vim:editors/vim@tiny
|
|
x11_PKGNAMESUFFIX= -x11
|
|
x11_RUN_DEPENDS= ${LOCALBASE}/bin/vim:editors/vim@x11
|
|
|
|
USES= gmake
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= rkitover
|
|
GH_TAGNAME= 842f746
|
|
|
|
TEST_TARGET= test
|
|
TESTING_UNSAFE= yes
|
|
|
|
# Register conflicts with all other flavors
|
|
CONFLICTS_INSTALL= ${FLAVORS:N${FLAVOR}:S/^/vimpager-/}
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= DOCS TEST
|
|
OPTIONS_SUB= yes
|
|
|
|
DOCS_BUILD_DEPENDS= pandoc:textproc/hs-pandoc
|
|
TEST_RUN_DEPENDS= bats:devel/bats-core
|
|
|
|
.include <bsd.port.mk>
|