git: 690d877dfec3 - main - sysutils/rubygem-license_scout: Add rubygem-license_scout 2.6.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 25 Oct 2021 16:01:13 UTC
The branch main has been updated by sunpoet:

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

commit 690d877dfec3aea807f7a09c252aedb93dac020b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-10-25 14:44:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-10-25 15:57:07 +0000

    sysutils/rubygem-license_scout: Add rubygem-license_scout 2.6.2
    
    License Scout is a utility that discovers and aggregates the licenses for your
    software project's transitive dependencies.
    
    WWW: https://github.com/chef/license_scout
---
 sysutils/Makefile                                  |  1 +
 sysutils/rubygem-license_scout/Makefile            | 31 ++++++++++++++++++++++
 sysutils/rubygem-license_scout/distinfo            |  3 +++
 sysutils/rubygem-license_scout/files/patch-gemspec | 16 +++++++++++
 sysutils/rubygem-license_scout/pkg-descr           |  4 +++
 5 files changed, 55 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 98754c923198..027c3b1e0e8a 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1190,6 +1190,7 @@
     SUBDIR += rubygem-itamae
     SUBDIR += rubygem-librarian-puppet
     SUBDIR += rubygem-license-acceptance
+    SUBDIR += rubygem-license_scout
     SUBDIR += rubygem-log4r
     SUBDIR += rubygem-logify
     SUBDIR += rubygem-mogilefs-client
diff --git a/sysutils/rubygem-license_scout/Makefile b/sysutils/rubygem-license_scout/Makefile
new file mode 100644
index 000000000000..8cbb89428ab4
--- /dev/null
+++ b/sysutils/rubygem-license_scout/Makefile
@@ -0,0 +1,31 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	license_scout
+PORTVERSION=	2.6.2
+CATEGORIES=	sysutils rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Discover license files of a project's dependencies
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	rubygem-ffi-yajl>=2.2<3:devel/rubygem-ffi-yajl \
+		rubygem-fuzzy_match>=0:devel/rubygem-fuzzy_match \
+		rubygem-licensee>=9.8<10:devel/rubygem-licensee \
+		rubygem-mixlib-cli>=0:devel/rubygem-mixlib-cli \
+		rubygem-mixlib-config>=2.2:devel/rubygem-mixlib-config \
+		rubygem-mixlib-log>=0:devel/rubygem-mixlib-log \
+		rubygem-mixlib-shellout>=2.2:devel/rubygem-mixlib-shellout \
+		rubygem-terminal-table>=0:textproc/rubygem-terminal-table \
+		rubygem-toml-rb>=1.0:www/rubygem-toml-rb
+
+USES=		gem
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+PLIST_FILES=	bin/license_scout
+
+.include <bsd.port.mk>
diff --git a/sysutils/rubygem-license_scout/distinfo b/sysutils/rubygem-license_scout/distinfo
new file mode 100644
index 000000000000..3c827baec1e8
--- /dev/null
+++ b/sysutils/rubygem-license_scout/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1634391100
+SHA256 (rubygem/license_scout-2.6.2.gem) = 2e837cbda2c80bbd46749c245b16ef53f8ce552f07f4a735e11cd50d1712d26e
+SIZE (rubygem/license_scout-2.6.2.gem) = 1826304
diff --git a/sysutils/rubygem-license_scout/files/patch-gemspec b/sysutils/rubygem-license_scout/files/patch-gemspec
new file mode 100644
index 000000000000..7b4c8120fd38
--- /dev/null
+++ b/sysutils/rubygem-license_scout/files/patch-gemspec
@@ -0,0 +1,16 @@
+--- license_scout.gemspec.orig	2021-10-22 11:28:34 UTC
++++ license_scout.gemspec
+@@ -23,10 +23,10 @@ Gem::Specification.new do |s|
+ 
+     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+       s.add_runtime_dependency(%q<ffi-yajl>.freeze, ["~> 2.2"])
+-      s.add_runtime_dependency(%q<mixlib-shellout>.freeze, ["~> 2.2"])
+-      s.add_runtime_dependency(%q<toml-rb>.freeze, ["~> 1.0"])
++      s.add_runtime_dependency(%q<mixlib-shellout>.freeze, [">= 2.2"])
++      s.add_runtime_dependency(%q<toml-rb>.freeze, [">= 1.0"])
+       s.add_runtime_dependency(%q<licensee>.freeze, ["~> 9.8"])
+-      s.add_runtime_dependency(%q<mixlib-config>.freeze, ["~> 2.2"])
++      s.add_runtime_dependency(%q<mixlib-config>.freeze, [">= 2.2"])
+       s.add_runtime_dependency(%q<mixlib-cli>.freeze, [">= 0"])
+       s.add_runtime_dependency(%q<mixlib-log>.freeze, [">= 0"])
+       s.add_runtime_dependency(%q<terminal-table>.freeze, [">= 0"])
diff --git a/sysutils/rubygem-license_scout/pkg-descr b/sysutils/rubygem-license_scout/pkg-descr
new file mode 100644
index 000000000000..701b0b8a1c3c
--- /dev/null
+++ b/sysutils/rubygem-license_scout/pkg-descr
@@ -0,0 +1,4 @@
+License Scout is a utility that discovers and aggregates the licenses for your
+software project's transitive dependencies.
+
+WWW: https://github.com/chef/license_scout