diff --git a/sysutils/Makefile b/sysutils/Makefile --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1430,6 +1430,7 @@ SUBDIR += tmpwatch SUBDIR += tmux SUBDIR += tmux-mem-cpu-load + SUBDIR += tmux-xpanes SUBDIR += tmux23 SUBDIR += topgrade SUBDIR += topless diff --git a/sysutils/tmux-xpanes/Makefile b/sysutils/tmux-xpanes/Makefile new file mode 100644 --- /dev/null +++ b/sysutils/tmux-xpanes/Makefile @@ -0,0 +1,45 @@ +PORTNAME= tmux-xpanes +DISTVERSIONPREFIX= v +DISTVERSION= 4.1.3 +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}${MANPREFIX}/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 diff --git a/sysutils/tmux-xpanes/distinfo b/sysutils/tmux-xpanes/distinfo new file mode 100644 --- /dev/null +++ b/sysutils/tmux-xpanes/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1677272549 +SHA256 (greymd-tmux-xpanes-v4.1.3_GH0.tar.gz) = d6c6ce10bb1a487c6455474fe2274eb56ff0a8a87ee9d5cae7dae676d13c19b2 +SIZE (greymd-tmux-xpanes-v4.1.3_GH0.tar.gz) = 64101 diff --git a/sysutils/tmux-xpanes/pkg-descr b/sysutils/tmux-xpanes/pkg-descr new file mode 100644 --- /dev/null +++ b/sysutils/tmux-xpanes/pkg-descr @@ -0,0 +1,12 @@ +Ultimate terminal divider powered by tmux + +- Split tmux window into multiple panes +- * Construct command lines & execute them on the panes +- Runnable from outside of tmux session +- Runnable from inside of tmux session +- Record operation log +- Flexible layout arrangement for panes +- * Select layout presets +- * Set columns or rows as you like +- Display pane title on each pane +- Generate command lines from standard input (Pipe mode) diff --git a/sysutils/tmux-xpanes/pkg-plist b/sysutils/tmux-xpanes/pkg-plist new file mode 100644 --- /dev/null +++ b/sysutils/tmux-xpanes/pkg-plist @@ -0,0 +1,4 @@ +bin/xpanes +man/man1/xpanes.1.gz +share/zsh/site-functions/_xpanes +%%PORTDOCS%%%%DOCSDIR%%/README.md