git: aedecb29275c - main - shells/oil: New port: New Unix shell

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 25 Oct 2024 18:02:38 UTC
The branch main has been updated by yuri:

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

commit aedecb29275c82aab829f0f61a3749977a9a653b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-25 15:14:10 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-25 15:14:10 +0000

    shells/oil: New port: New Unix shell
---
 shells/Makefile      |  1 +
 shells/oil/Makefile  | 32 ++++++++++++++++++++++++++++++++
 shells/oil/distinfo  |  3 +++
 shells/oil/pkg-descr |  4 ++++
 4 files changed, 40 insertions(+)

diff --git a/shells/Makefile b/shells/Makefile
index 555bd207b2de..a825aa8be741 100644
--- a/shells/Makefile
+++ b/shells/Makefile
@@ -42,6 +42,7 @@
     SUBDIR += nu_plugin_query
     SUBDIR += nushell
     SUBDIR += ohmyzsh
+    SUBDIR += oil
     SUBDIR += oksh
     SUBDIR += p5-Bash-Completion
     SUBDIR += p5-Shell-Perl
diff --git a/shells/oil/Makefile b/shells/oil/Makefile
new file mode 100644
index 000000000000..03c5913d8b40
--- /dev/null
+++ b/shells/oil/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	oil
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.23.0
+CATEGORIES=	shells
+MASTER_SITES=	https://www.oilshell.org/download/
+PKGNAMESUFFIX=	-shell
+DISTNAME=	oils-for-unix-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	New Unix shell
+WWW=		https://www.oilshell.org/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		gmake
+
+GNU_CONFIGURE=	yes
+
+PLIST_FILES=	bin/oils-for-unix \
+		bin/osh \
+		bin/ysh \
+		share/man/man1/osh.1.gz
+
+do-build:
+	@cd ${WRKSRC} && \
+		${SETENV} ${MAKE_ENV} _build/oils.sh
+do-install:
+	@cd ${WRKSRC} && \
+		${SETENV} DESTDIR=${STAGEDIR} ./install
+
+.include <bsd.port.mk>
diff --git a/shells/oil/distinfo b/shells/oil/distinfo
new file mode 100644
index 000000000000..64b5ae9032a2
--- /dev/null
+++ b/shells/oil/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1729878247
+SHA256 (oils-for-unix-0.23.0.tar.gz) = c9d35ca78b4a08eeafac8bc6439e2bb40bccd3370db2226487faed6348a17521
+SIZE (oils-for-unix-0.23.0.tar.gz) = 519154
diff --git a/shells/oil/pkg-descr b/shells/oil/pkg-descr
new file mode 100644
index 000000000000..608b68d2e272
--- /dev/null
+++ b/shells/oil/pkg-descr
@@ -0,0 +1,4 @@
+Oils is our upgrade path from bash to a better language and runtime.
+
+* OSH runs your existing shell scripts.
+* YSH is for Python and JavaScript users who avoid shell.