mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
textproc/bat-extras: Add port
These are various scripts that use textproc/bat as a colorizer and pager. The manpage colorization alone is worth the price of admission. Various scripts have dependencies, some mandatory and some optional. The pkg-descr lists them, but I opted not to register DEPENDS on them as it comes down to each user's personal preference.
This commit is contained in:
parent
264ca81148
commit
a8c7c7b4e2
4 changed files with 74 additions and 0 deletions
|
@ -75,6 +75,7 @@
|
||||||
SUBDIR += az-aspell
|
SUBDIR += az-aspell
|
||||||
SUBDIR += bar
|
SUBDIR += bar
|
||||||
SUBDIR += bat
|
SUBDIR += bat
|
||||||
|
SUBDIR += bat-extras
|
||||||
SUBDIR += bbe
|
SUBDIR += bbe
|
||||||
SUBDIR += be-aspell
|
SUBDIR += be-aspell
|
||||||
SUBDIR += belr
|
SUBDIR += belr
|
||||||
|
|
45
textproc/bat-extras/Makefile
Normal file
45
textproc/bat-extras/Makefile
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
PORTNAME= bat-extras
|
||||||
|
DISTVERSIONPREFIX= v
|
||||||
|
DISTVERSION= 2024.08.24
|
||||||
|
CATEGORIES= textproc
|
||||||
|
|
||||||
|
MAINTAINER= adamw@FreeBSD.org
|
||||||
|
COMMENT= Scripts that integrate with textproc/bat
|
||||||
|
WWW= https://github.com/eth-p/bat-extras
|
||||||
|
|
||||||
|
LICENSE= MIT
|
||||||
|
|
||||||
|
BUILD_DEPENDS= bash:shells/bash \
|
||||||
|
shfmt:devel/shfmt
|
||||||
|
RUN_DEPENDS= bash:shells/bash \
|
||||||
|
bat:textproc/bat
|
||||||
|
|
||||||
|
USE_GITHUB= yes
|
||||||
|
GH_ACCOUNT= eth-p
|
||||||
|
NO_ARCH= yes
|
||||||
|
|
||||||
|
PLIST_FILES= bin/batdiff \
|
||||||
|
bin/batgrep \
|
||||||
|
bin/batman \
|
||||||
|
bin/batpipe \
|
||||||
|
bin/batwatch \
|
||||||
|
bin/prettybat
|
||||||
|
PORTDOCS= *
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
|
do-build:
|
||||||
|
${WRKSRC}/build.sh --no-verify
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/batdiff ${STAGEDIR}${PREFIX}/bin
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/batgrep ${STAGEDIR}${PREFIX}/bin
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/batman ${STAGEDIR}${PREFIX}/bin
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/batpipe ${STAGEDIR}${PREFIX}/bin
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/batwatch ${STAGEDIR}${PREFIX}/bin
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/prettybat ${STAGEDIR}${PREFIX}/bin
|
||||||
|
|
||||||
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
textproc/bat-extras/distinfo
Normal file
3
textproc/bat-extras/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1741359498
|
||||||
|
SHA256 (eth-p-bat-extras-v2024.08.24_GH0.tar.gz) = 2ff1b9104134f10721ef36580150365e94546e5b41b9a2a6eaa4851c5959b487
|
||||||
|
SIZE (eth-p-bat-extras-v2024.08.24_GH0.tar.gz) = 50671
|
25
textproc/bat-extras/pkg-descr
Normal file
25
textproc/bat-extras/pkg-descr
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
A collection of scripts that integrate textproc/bat (a Rust-based uberpager)
|
||||||
|
with various command-line tools. Note that you'll have to install some
|
||||||
|
related tools manually if you want them.
|
||||||
|
|
||||||
|
batdiff:
|
||||||
|
Diff a file against the current git index, or diff two files.
|
||||||
|
Optional: git-delta
|
||||||
|
|
||||||
|
batgrep
|
||||||
|
Quickly search through and highlight files using ripgrep.
|
||||||
|
Requires: ripgrep
|
||||||
|
|
||||||
|
batman:
|
||||||
|
Colorize manpages (I'm ruined and can never go back to plain manpages).
|
||||||
|
|
||||||
|
batpipe:
|
||||||
|
Drop-in replacement for lesspipe.
|
||||||
|
|
||||||
|
batwatch:
|
||||||
|
Watch for changes in one or more files and display them with bat.
|
||||||
|
Optional: entr
|
||||||
|
|
||||||
|
prettybat:
|
||||||
|
Reformats and highlights source code.
|
||||||
|
Requires: prettier, shfmt, blank, clang-format, rustfmt, etc. (as needed)
|
Loading…
Add table
Reference in a new issue