git: 572a79744110 - main - ports-mgmt/submodules2tuple: Add new port

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Sat, 20 May 2023 07:26:29 UTC
The branch main has been updated by ehaupt:

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

commit 572a7974411049e12926cb17d5c02b6f25cc8738
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-05-20 07:25:54 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-05-20 07:25:54 +0000

    ports-mgmt/submodules2tuple: Add new port
    
    FreeBSD ports developers often encounter projects hosted on GitHub that
    make use of submodules. Manually creating the GH_TUPLE values for such
    projects can be time-consuming and error-prone, especially when dealing
    with recursive submodules. This script simplifies the process by
    automating the generation of these values, saving developers valuable
    time and effort.
---
 ports-mgmt/Makefile                   |  1 +
 ports-mgmt/submodules2tuple/Makefile  | 26 ++++++++++++++++++++++++++
 ports-mgmt/submodules2tuple/distinfo  |  3 +++
 ports-mgmt/submodules2tuple/pkg-descr |  6 ++++++
 4 files changed, 36 insertions(+)

diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile
index c1cf1229dd52..82ff597733cc 100644
--- a/ports-mgmt/Makefile
+++ b/ports-mgmt/Makefile
@@ -76,6 +76,7 @@
     SUBDIR += rc-subr-jail
     SUBDIR += reprise
     SUBDIR += sccache-overlay
+    SUBDIR += submodules2tuple
     SUBDIR += synth
     SUBDIR += wanted-ports
 
diff --git a/ports-mgmt/submodules2tuple/Makefile b/ports-mgmt/submodules2tuple/Makefile
new file mode 100644
index 000000000000..2d8ad9a6ecf7
--- /dev/null
+++ b/ports-mgmt/submodules2tuple/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	submodules2tuple
+PORTVERSION=	1.0.0
+DISTVERSIONPREFIX=	v
+CATEGORIES=	ports-mgmt
+
+MAINTAINER=	ehaupt@FreeBSD.org
+COMMENT=	GH_TUPLE generator for GitHub projects with submodules
+WWW=		https://github.com/ehaupt/submodules2tuple
+
+LICENSE=	BSD3CLAUSE
+
+RUN_DEPENDS=	bash:shells/bash
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	ehaupt
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+PLIST_FILES=	bin/submodules2tuple
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/scripts/submodules2tuple \
+		${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/ports-mgmt/submodules2tuple/distinfo b/ports-mgmt/submodules2tuple/distinfo
new file mode 100644
index 000000000000..e93c1cdf6ff1
--- /dev/null
+++ b/ports-mgmt/submodules2tuple/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1684410477
+SHA256 (ehaupt-submodules2tuple-v1.0.0_GH0.tar.gz) = f21c84043a279e6e62173186f32a0fc70ef0ab653a5f10aa7cba694688b93bf6
+SIZE (ehaupt-submodules2tuple-v1.0.0_GH0.tar.gz) = 2333
diff --git a/ports-mgmt/submodules2tuple/pkg-descr b/ports-mgmt/submodules2tuple/pkg-descr
new file mode 100644
index 000000000000..d37c37bebea6
--- /dev/null
+++ b/ports-mgmt/submodules2tuple/pkg-descr
@@ -0,0 +1,6 @@
+FreeBSD ports developers often encounter projects hosted on GitHub that
+make use of submodules. Manually creating the GH_TUPLE values for such
+projects can be time-consuming and error-prone, especially when dealing
+with recursive submodules. This script simplifies the process by
+automating the generation of these values, saving developers valuable
+time and effort.