freebsd-ports/sysutils/tmux-xpanes/Makefile
Baptiste Daroussin 7074d7f6ae MANPREFIX: eliminate usage of MANPREFIX
While here move some manpages to share/man
2024-01-11 14:59:36 +01:00

46 lines
1.2 KiB
Makefile

PORTNAME= tmux-xpanes
DISTVERSIONPREFIX= v
DISTVERSION= 4.1.4
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= vidar@karlsen.tech
COMMENT= Ultimate terminal divider powered by tmux
WWW= https://github.com/greymd/tmux-xpanes
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= bash>0:shells/bash tmux>0:sysutils/tmux
TEST_DEPENDS= shunit2>0:devel/shunit2
USES= shebangfix
USE_GITHUB= yes
GH_ACCOUNT= greymd
SHEBANG_FILES= ${WRKSRC}/bin/xpanes
NO_ARCH= yes
NO_BUILD= yes
OPTIONS_DEFINE= DOCS
do-configure:
${REINPLACE_CMD} 's|XP_SHELL="/usr/bin/env bash"|XP_SHELL="${bash_CMD}"|' \
${WRKSRC}/bin/xpanes
do-install:
cd ${WRKSRC} && ${INSTALL_SCRIPT} bin/xpanes ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC} && ${INSTALL_MAN} man/xpanes.1 ${STAGEDIR}${PREFIX}/share/man/man1
cd ${WRKSRC} && ${INSTALL_DATA} completion/zsh/_xpanes \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_MAN} README.md ${STAGEDIR}${DOCSDIR}
do-test:
${REINPLACE_CMD} 's|$${THIS_DIR}/shunit2|${LOCALBASE}/bin|' \
${WRKSRC}/test/cases_smoke.sh
cd ${WRKSRC}/test && ./cases_smoke.sh
.include <bsd.port.mk>