From 071dde0deabfeed67a3ec3c4d19c7006f2fa45bb Mon Sep 17 00:00:00 2001
From: Matthias Fechner <mfechner@FreeBSD.org>
Date: Fri, 5 Nov 2021 07:02:57 +0100
Subject: [PATCH] devel/rubygem-license_finder: added new port

Is required for gitlab-ce.
---
 devel/Makefile                         |  3 +++
 devel/rubygem-license_finder/Makefile  | 33 ++++++++++++++++++++++++++
 devel/rubygem-license_finder/distinfo  |  3 +++
 devel/rubygem-license_finder/pkg-descr |  6 +++++
 devel/rubygem-thor10/Makefile          | 25 +++++++++++++++++++
 devel/rubygem-thor10/distinfo          |  3 +++
 devel/rubygem-thor10/pkg-descr         |  3 +++
 devel/rubygem-with_env/Makefile        | 21 ++++++++++++++++
 devel/rubygem-with_env/distinfo        |  3 +++
 devel/rubygem-with_env/pkg-descr       |  5 ++++
 10 files changed, 105 insertions(+)
 create mode 100644 devel/rubygem-license_finder/Makefile
 create mode 100644 devel/rubygem-license_finder/distinfo
 create mode 100644 devel/rubygem-license_finder/pkg-descr
 create mode 100644 devel/rubygem-thor10/Makefile
 create mode 100644 devel/rubygem-thor10/distinfo
 create mode 100644 devel/rubygem-thor10/pkg-descr
 create mode 100644 devel/rubygem-with_env/Makefile
 create mode 100644 devel/rubygem-with_env/distinfo
 create mode 100644 devel/rubygem-with_env/pkg-descr

diff --git a/devel/Makefile b/devel/Makefile
index 7809ac52b59d..1e6e67faf62c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6467,6 +6467,7 @@
     SUBDIR += rubygem-librarian
     SUBDIR += rubygem-librarianp
     SUBDIR += rubygem-libyajl2
+    SUBDIR += rubygem-license_finder
     SUBDIR += rubygem-licensee
     SUBDIR += rubygem-listen
     SUBDIR += rubygem-little-plugger
@@ -6832,6 +6833,7 @@
     SUBDIR += rubygem-test-unit
     SUBDIR += rubygem-thor
     SUBDIR += rubygem-thor0
+    SUBDIR += rubygem-thor10
     SUBDIR += rubygem-thread_safe
     SUBDIR += rubygem-thread_safe1
     SUBDIR += rubygem-thrift
@@ -6921,6 +6923,7 @@
     SUBDIR += rubygem-will_paginate
     SUBDIR += rubygem-windows_error
     SUBDIR += rubygem-wisper
+    SUBDIR += rubygem-with_env
     SUBDIR += rubygem-wmi-lite
     SUBDIR += rubygem-xdg
     SUBDIR += rubygem-xdg2
diff --git a/devel/rubygem-license_finder/Makefile b/devel/rubygem-license_finder/Makefile
new file mode 100644
index 000000000000..d222481aedea
--- /dev/null
+++ b/devel/rubygem-license_finder/Makefile
@@ -0,0 +1,33 @@
+# Created by: Matthias Fechner <mfechner@FreeBSD.org>
+
+PORTNAME=	license_finder
+PORTVERSION=	6.14.2
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	mfechner@FreeBSD.org
+COMMENT=	Generate, verify and enforce software licenses
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	rubygem-bundler>=0:sysutils/rubygem-bundler \
+		rubygem-rubyzip>=1<3:archivers/rubygem-rubyzip \
+		rubygem-thor10>=1.0.1<1.1:devel/rubygem-thor10 \
+		rubygem-tomlrb>=1.3<2.1:textproc/rubygem-tomlrb \
+		rubygem-with_env>=1.1.0<1.1.1:devel/rubygem-with_env \
+		rubygem-xml-simple>=1.1.5<1.2:textproc/rubygem-xml-simple
+
+USES=		gem python:run shebangfix
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+SHEBANG_FILES=	dlf \
+		bin/license_finder_pip.py \
+		ci/scripts/*.sh
+
+PLIST_FILES=	bin/license_finder \
+		bin/license_finder_pip.py
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-license_finder/distinfo b/devel/rubygem-license_finder/distinfo
new file mode 100644
index 000000000000..2b06908d285d
--- /dev/null
+++ b/devel/rubygem-license_finder/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1636089645
+SHA256 (rubygem/license_finder-6.14.2.gem) = 690995460f0709eb9f78d61df262df7c1a25f35b8847e9e8d49fd3e3982cea58
+SIZE (rubygem/license_finder-6.14.2.gem) = 169984
diff --git a/devel/rubygem-license_finder/pkg-descr b/devel/rubygem-license_finder/pkg-descr
new file mode 100644
index 000000000000..f90fca91df3d
--- /dev/null
+++ b/devel/rubygem-license_finder/pkg-descr
@@ -0,0 +1,6 @@
+LicenseFinder works with your package managers to find dependencies,
+detect the licenses of the packages in them, compare those licenses
+against a user-defined list of permitted licenses, and give you an
+actionable exception report.
+
+WWW: https://github.com/pivotal/LicenseFinder
diff --git a/devel/rubygem-thor10/Makefile b/devel/rubygem-thor10/Makefile
new file mode 100644
index 000000000000..aa15ef2d3266
--- /dev/null
+++ b/devel/rubygem-thor10/Makefile
@@ -0,0 +1,25 @@
+# Created by: Matthias Fechner <mfechner@FreeBSD.org>
+#
+PORTNAME=	thor
+PORTVERSION=	1.0.1
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	10
+
+MAINTAINER=	mfechner@FreeBSD.org
+COMMENT=	Scripting framework that replaces rake, sake, and rubigen
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+USES=		gem
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+PORTSCOUT=	limit:^1\.0\.
+
+post-install:
+	${RM} ${STAGEDIR}${PREFIX}/bin/thor
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-thor10/distinfo b/devel/rubygem-thor10/distinfo
new file mode 100644
index 000000000000..2e62e01f0ca8
--- /dev/null
+++ b/devel/rubygem-thor10/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1636090411
+SHA256 (rubygem/thor-1.0.1.gem) = 7572061e3cbe6feee57828670e6a25a66dd397f05c1f8515d49f770a7d9d70f5
+SIZE (rubygem/thor-1.0.1.gem) = 56320
diff --git a/devel/rubygem-thor10/pkg-descr b/devel/rubygem-thor10/pkg-descr
new file mode 100644
index 000000000000..b54e9a884c89
--- /dev/null
+++ b/devel/rubygem-thor10/pkg-descr
@@ -0,0 +1,3 @@
+A scripting framework that replaces rake, sake and rubigen
+
+WWW: https://github.com/erikhuda/thor
diff --git a/devel/rubygem-with_env/Makefile b/devel/rubygem-with_env/Makefile
new file mode 100644
index 000000000000..a9b6a90958f5
--- /dev/null
+++ b/devel/rubygem-with_env/Makefile
@@ -0,0 +1,21 @@
+# Created by: Matthias Fechner <mfechner@FreeBSD.org>
+
+PORTNAME=	with_env
+PORTVERSION=	1.1.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	mfechner@FreeBSD.org
+COMMENT=	Execute code with env variables
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		gem shebangfix
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+SHEBANG_FILES=	bin/setup
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-with_env/distinfo b/devel/rubygem-with_env/distinfo
new file mode 100644
index 000000000000..b16045f4ce23
--- /dev/null
+++ b/devel/rubygem-with_env/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1636089840
+SHA256 (rubygem/with_env-1.1.0.gem) = 50b3e4f0a6cda8f90d8a6bd87a6261f6c381429abafb161c4c69ad4a0cd0b6e4
+SIZE (rubygem/with_env-1.1.0.gem) = 7168
diff --git a/devel/rubygem-with_env/pkg-descr b/devel/rubygem-with_env/pkg-descr
new file mode 100644
index 000000000000..cd234d324945
--- /dev/null
+++ b/devel/rubygem-with_env/pkg-descr
@@ -0,0 +1,5 @@
+WithEnv is an extremely small helper module for executing code with ENV
+variables. It exists because I got tired of re-writing or copying over
+a #with_env helper method for the 131st time.
+
+WWW: https://github.com/mhs/with_env-rb