git: 1748e6ecdd6d - main - shells/shellharden: New ports: Corrective bash syntax highlighter

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 01 Jan 2023 22:21:25 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1748e6ecdd6dc0886500b1ebc5dc99d861115022

commit 1748e6ecdd6dc0886500b1ebc5dc99d861115022
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-01 21:19:47 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-01 22:21:18 +0000

    shells/shellharden: New ports: Corrective bash syntax highlighter
---
 shells/Makefile              |  1 +
 shells/shellharden/Makefile  | 24 ++++++++++++++++++++++++
 shells/shellharden/distinfo  |  3 +++
 shells/shellharden/pkg-descr |  5 +++++
 4 files changed, 33 insertions(+)

diff --git a/shells/Makefile b/shells/Makefile
index 6ae90402bbd7..975c3a741951 100644
--- a/shells/Makefile
+++ b/shells/Makefile
@@ -45,6 +45,7 @@
     SUBDIR += rush
     SUBDIR += sash
     SUBDIR += scponly
+    SUBDIR += shellharden
     SUBDIR += starship
     SUBDIR += switchBashZsh
     SUBDIR += tcsh_nls
diff --git a/shells/shellharden/Makefile b/shells/shellharden/Makefile
new file mode 100644
index 000000000000..73cb1bb6aecf
--- /dev/null
+++ b/shells/shellharden/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	shellharden
+DISTVERSIONPREFIX=	v
+DISTVERSION=	4.3.0
+CATEGORIES=	shells
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Corrective bash syntax highlighter
+WWW=		https://github.com/anordal/shellharden
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cargo
+USE_GITHUB=	yes
+GH_ACCOUNT=	anordal
+
+CARGO_CRATES=	\
+
+PLIST_FILES=	bin/${PORTNAME}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/shells/shellharden/distinfo b/shells/shellharden/distinfo
new file mode 100644
index 000000000000..c9c1c8c91867
--- /dev/null
+++ b/shells/shellharden/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672607457
+SHA256 (anordal-shellharden-v4.3.0_GH0.tar.gz) = d17bf55bae4ed6aed9f0d5cea8efd11026623a47b6d840b826513ab5b48db3eb
+SIZE (anordal-shellharden-v4.3.0_GH0.tar.gz) = 191795
diff --git a/shells/shellharden/pkg-descr b/shells/shellharden/pkg-descr
new file mode 100644
index 000000000000..3355b693169c
--- /dev/null
+++ b/shells/shellharden/pkg-descr
@@ -0,0 +1,5 @@
+Shellharden is a syntax highlighter and a tool to semi-automate the rewriting
+of scripts to ShellCheck conformance, mainly focused on quoting.
+
+The default mode of operation is like cat, but with syntax highlighting in
+foreground colors and suggestive changes in background colors.