1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

sysutils/tmux-xpanes: new port

Ultimate terminal divider powered by tmux

Features:
- 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)

WWW: https://github.com/greymd/tmux-xpanes

Maintainer becomes submitter.  Already submitter of other ports.

PR:		269102
Approved by:	flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38780
This commit is contained in:
Vidar Karlsen 2023-01-22 20:12:03 +01:00 committed by Robert Clausecker
parent 48a5ea0ff0
commit dd998c7e12
5 changed files with 65 additions and 0 deletions

View File

@ -1430,6 +1430,7 @@
SUBDIR += tmpwatch
SUBDIR += tmux
SUBDIR += tmux-mem-cpu-load
SUBDIR += tmux-xpanes
SUBDIR += tmux23
SUBDIR += topgrade
SUBDIR += topless

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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)

View File

@ -0,0 +1,4 @@
bin/xpanes
man/man1/xpanes.1.gz
share/zsh/site-functions/_xpanes
%%PORTDOCS%%%%DOCSDIR%%/README.md