git: 5bf71a618967 - main - shells/zsh-fast-syntax-highlighting: Optimized and extended zsh-syntax-highlighting

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 28 Oct 2024 12:44:21 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5bf71a6189674afd290f33fe9ddd5bb32fae2a64

commit 5bf71a6189674afd290f33fe9ddd5bb32fae2a64
Author:     Son Phan Trung <phantrungson17@gmail.com>
AuthorDate: 2024-02-14 13:09:02 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-10-28 12:42:02 +0000

    shells/zsh-fast-syntax-highlighting: Optimized and extended zsh-syntax-highlighting
    
    Zsh-fast-syntax-highlighting enables highlighting of commands whilst they
    are typed at an interactive zsh prompt. This helps in reviewing
    commands before running them, particularly in catching syntax errors.
    Compared to zsh-syntax-highlighting, this package is more optimized
    and feature-rich.
    
    WWW: https://github.com/zdharma-continuum/fast-syntax-highlighting
---
 shells/Makefile                                    |  1 +
 shells/zsh-fast-syntax-highlighting/Makefile       | 28 +++++++
 shells/zsh-fast-syntax-highlighting/distinfo       |  3 +
 .../files/pkg-message.in                           |  9 +++
 shells/zsh-fast-syntax-highlighting/pkg-descr      |  5 ++
 shells/zsh-fast-syntax-highlighting/pkg-plist      | 91 ++++++++++++++++++++++
 6 files changed, 137 insertions(+)

diff --git a/shells/Makefile b/shells/Makefile
index a825aa8be741..45056e4ea190 100644
--- a/shells/Makefile
+++ b/shells/Makefile
@@ -72,6 +72,7 @@
     SUBDIR += zsh-antigen
     SUBDIR += zsh-autosuggestions
     SUBDIR += zsh-completions
+    SUBDIR += zsh-fast-syntax-highlighting
     SUBDIR += zsh-navigation-tools
     SUBDIR += zsh-syntax-highlighting
 
diff --git a/shells/zsh-fast-syntax-highlighting/Makefile b/shells/zsh-fast-syntax-highlighting/Makefile
new file mode 100644
index 000000000000..accfc1893b83
--- /dev/null
+++ b/shells/zsh-fast-syntax-highlighting/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	zsh-fast-syntax-highlighting
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.55
+CATEGORIES=	shells
+
+MAINTAINER=	phantrungson17@gmail.com
+COMMENT=	Optimized and extended zsh-syntax-highlighting
+WWW=		https://github.com/zdharma-continuum/fast-syntax-highlighting
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	zsh>=5.4:shells/zsh
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	zdharma-continuum
+GH_PROJECT=	fast-syntax-highlighting
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+SUB_FILES=	pkg-message
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "! -path \./\.* ! -name *\.bak ! -name *\.orig"
+
+.include <bsd.port.mk>
diff --git a/shells/zsh-fast-syntax-highlighting/distinfo b/shells/zsh-fast-syntax-highlighting/distinfo
new file mode 100644
index 000000000000..be66e173dd14
--- /dev/null
+++ b/shells/zsh-fast-syntax-highlighting/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707906686
+SHA256 (zdharma-continuum-fast-syntax-highlighting-v1.55_GH0.tar.gz) = d06cea9c047ce46ad09ffd01a8489a849fc65b8b6310bd08f8bcec9d6f81a898
+SIZE (zdharma-continuum-fast-syntax-highlighting-v1.55_GH0.tar.gz) = 615290
diff --git a/shells/zsh-fast-syntax-highlighting/files/pkg-message.in b/shells/zsh-fast-syntax-highlighting/files/pkg-message.in
new file mode 100644
index 000000000000..da4b6b7f7bfa
--- /dev/null
+++ b/shells/zsh-fast-syntax-highlighting/files/pkg-message.in
@@ -0,0 +1,9 @@
+[
+{ type: install
+  message: <<EOM
+Add the line below to *the end of* your .zshrc to enable highlighting.
+
+source %%DATADIR%%/fast-syntax-highlighting-plugin.zsh
+EOM
+}
+]
diff --git a/shells/zsh-fast-syntax-highlighting/pkg-descr b/shells/zsh-fast-syntax-highlighting/pkg-descr
new file mode 100644
index 000000000000..6c7145b73317
--- /dev/null
+++ b/shells/zsh-fast-syntax-highlighting/pkg-descr
@@ -0,0 +1,5 @@
+Zsh-fast-syntax-highlighting enables highlighting of commands whilst they
+are typed at an interactive zsh prompt. This helps in reviewing
+commands before running them, particularly in catching syntax errors.
+Compared to zsh-syntax-highlighting, this package is more optimized
+and feature-rich.
diff --git a/shells/zsh-fast-syntax-highlighting/pkg-plist b/shells/zsh-fast-syntax-highlighting/pkg-plist
new file mode 100644
index 000000000000..ff18ec535b0e
--- /dev/null
+++ b/shells/zsh-fast-syntax-highlighting/pkg-plist
@@ -0,0 +1,91 @@
+%%DATADIR%%/-fast-make-targets
+%%DATADIR%%/-fast-run-command
+%%DATADIR%%/-fast-run-git-command
+%%DATADIR%%/-fast-zts-read-all
+%%DATADIR%%/:chroma/-alias.ch
+%%DATADIR%%/:chroma/-autoload.ch
+%%DATADIR%%/:chroma/-autorandr.ch
+%%DATADIR%%/:chroma/-awk.ch
+%%DATADIR%%/:chroma/-docker.ch
+%%DATADIR%%/:chroma/-example.ch
+%%DATADIR%%/:chroma/-fast-theme.ch
+%%DATADIR%%/:chroma/-fpath_peq.ch
+%%DATADIR%%/:chroma/-git.ch
+%%DATADIR%%/:chroma/-grep.ch
+%%DATADIR%%/:chroma/-hub.ch
+%%DATADIR%%/:chroma/-ionice.ch
+%%DATADIR%%/:chroma/-lab.ch
+%%DATADIR%%/:chroma/-make.ch
+%%DATADIR%%/:chroma/-nice.ch
+%%DATADIR%%/:chroma/-nmcli.ch
+%%DATADIR%%/:chroma/-node.ch
+%%DATADIR%%/:chroma/-ogit.ch
+%%DATADIR%%/:chroma/-perl.ch
+%%DATADIR%%/:chroma/-precommand.ch
+%%DATADIR%%/:chroma/-printf.ch
+%%DATADIR%%/:chroma/-ruby.ch
+%%DATADIR%%/:chroma/-scp.ch
+%%DATADIR%%/:chroma/-sh.ch
+%%DATADIR%%/:chroma/-source.ch
+%%DATADIR%%/:chroma/-ssh.ch
+%%DATADIR%%/:chroma/-subcommand.ch
+%%DATADIR%%/:chroma/-subversion.ch
+%%DATADIR%%/:chroma/-vim.ch
+%%DATADIR%%/:chroma/-whatis.ch
+%%DATADIR%%/:chroma/-which.ch
+%%DATADIR%%/:chroma/-zplugin.ch
+%%DATADIR%%/:chroma/main-chroma.ch
+%%DATADIR%%/CHANGELOG.md
+%%DATADIR%%/CHROMA_GUIDE.adoc
+%%DATADIR%%/DONATIONS.md
+%%DATADIR%%/LICENSE
+%%DATADIR%%/README.md
+%%DATADIR%%/THEME_GUIDE.md
+%%DATADIR%%/_fast-theme
+%%DATADIR%%/fast-highlight
+%%DATADIR%%/fast-read-ini-file
+%%DATADIR%%/fast-string-highlight
+%%DATADIR%%/fast-syntax-highlighting.plugin.zsh
+%%DATADIR%%/fast-theme
+%%DATADIR%%/images/203654.gif
+%%DATADIR%%/images/array-assign.png
+%%DATADIR%%/images/assign.png
+%%DATADIR%%/images/brackets.gif
+%%DATADIR%%/images/cmdsubst.png
+%%DATADIR%%/images/cplx_cond.png
+%%DATADIR%%/images/eval_cmp.png
+%%DATADIR%%/images/execfd.png
+%%DATADIR%%/images/execfd_cmp.png
+%%DATADIR%%/images/for-loop-cmp.png
+%%DATADIR%%/images/for-loop.png
+%%DATADIR%%/images/function.png
+%%DATADIR%%/images/git_chroma.png
+%%DATADIR%%/images/global-alias.png
+%%DATADIR%%/images/heredoc.png
+%%DATADIR%%/images/herestring.png
+%%DATADIR%%/images/highlight-less.png
+%%DATADIR%%/images/highlight-much.png
+%%DATADIR%%/images/ideal-string.png
+%%DATADIR%%/images/in_string.png
+%%DATADIR%%/images/math.gif
+%%DATADIR%%/images/parameter.png
+%%DATADIR%%/images/theme.png
+%%DATADIR%%/images/typeset.png
+%%DATADIR%%/images/zcalc.png
+%%DATADIR%%/test/parse.zsh
+%%DATADIR%%/test/to-parse.zsh
+%%DATADIR%%/tests/_output/.gitkeep
+%%DATADIR%%/tests/_support/.gitkeep
+%%DATADIR%%/tests/_support/bootstrap
+%%DATADIR%%/tests/example.zunit
+%%DATADIR%%/tests/main.zunit
+%%DATADIR%%/themes/clean.ini
+%%DATADIR%%/themes/default.ini
+%%DATADIR%%/themes/forest.ini
+%%DATADIR%%/themes/free.ini
+%%DATADIR%%/themes/q-jmnemonic.ini
+%%DATADIR%%/themes/safari.ini
+%%DATADIR%%/themes/spa.ini
+%%DATADIR%%/themes/sv-orple.ini
+%%DATADIR%%/themes/sv-plant.ini
+%%DATADIR%%/themes/zdharma.ini