[licensecheck] 59/112: Add license pattern adobe_glyph.

Jonas Smedegaard dr at jones.dk
Fri Nov 25 22:01:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository licensecheck.

commit db1e2218aedf3073c4d5c7642f735c8228597267
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Oct 10 00:59:35 2016 +0200

    Add license pattern adobe_glyph.
---
 lib/App/Licensecheck.pm       | 5 ++---
 lib/Regexp/Pattern/License.pm | 8 ++++++++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/lib/App/Licensecheck.pm b/lib/App/Licensecheck.pm
index 0329eb3..8d3a784 100755
--- a/lib/App/Licensecheck.pm
+++ b/lib/App/Licensecheck.pm
@@ -56,7 +56,6 @@ See the script for casual usage.
 
 # legacy descriptive names different from SPDX shortnames
 my %SPDX = (
-	'Adobe-Glyph'          => 'Adobe Glyph List',
 	'APAFML'               => 'Adobe Postscript AFM',
 	FSFAP                  => 'FSF All Permissive',
 	FSFUL                  => 'FSF Unlimited',
@@ -720,8 +719,8 @@ sub parse_license
 
 	# Adobe-Glyph
 	given ($licensetext) {
-		when ( /and to permit others to do the same, provided that the derived work is not represented as being a copy/ ) {
-			$gen_license->('Adobe-Glyph');
+		when ( /$L{re}{'adobe_glyph'}/ ) {
+			$gen_license->('adobe_glyph');
 		}
 	}
 
diff --git a/lib/Regexp/Pattern/License.pm b/lib/Regexp/Pattern/License.pm
index dd3c949..e6521e4 100644
--- a/lib/Regexp/Pattern/License.pm
+++ b/lib/Regexp/Pattern/License.pm
@@ -26,6 +26,8 @@ Patterns each covering a single license.
 
 =item * adobe_2006
 
+=item * adobe_glyph
+
 =item * afl
 
 =item * agpl
@@ -118,6 +120,12 @@ our %RE = (
 		caption => 'Adobe',
 		pat     => qr/You agree to indemnify, hold harmless and defend/,
 	},
+	adobe_glyph => {
+		name    => 'Adobe-Glyph',
+		caption => 'Adobe Glyph List',
+		pat =>
+			qr/and to permit others to do the same, provided that the derived work is not represented as being a copy/,
+	},
 	afl => {
 		name    => 'AFL',
 		summary => 'Academic Free License',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/licensecheck.git



More information about the Pkg-perl-cvs-commits mailing list