[licensecheck] 60/112: Add license pattern apafml.

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 7f2b9f08ca274670d8b00088193d6016e0fe0399
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Oct 10 01:01:54 2016 +0200

    Add license pattern apafml.
---
 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 8d3a784..9179dd7 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 = (
-	'APAFML'               => 'Adobe Postscript AFM',
 	FSFAP                  => 'FSF All Permissive',
 	FSFUL                  => 'FSF Unlimited',
 	FSFULLR                => 'FSF Unlimited (with Retention)',
@@ -712,8 +711,8 @@ sub parse_license
 
 	# APAFML
 	given ($licensetext) {
-		when ( /AFM files it accompanies may be used|that the AFM files are not distributed/ ) {
-			$gen_license->('APAFML');
+		when ( /$L{re}{apafml}/ ) {
+			$gen_license->('apafml');
 		}
 	}
 
diff --git a/lib/Regexp/Pattern/License.pm b/lib/Regexp/Pattern/License.pm
index e6521e4..923cb99 100644
--- a/lib/Regexp/Pattern/License.pm
+++ b/lib/Regexp/Pattern/License.pm
@@ -34,6 +34,8 @@ Patterns each covering a single license.
 
 =item * apache
 
+=item * apafml
+
 =item * artistic
 
 =item * bsd_2_clause
@@ -141,6 +143,12 @@ our %RE = (
 		summary => 'Apache License',
 		pat     => qr/$the?Apache(?: Software)? License/,
 	},
+	apafml => {
+		name    => 'APAFML',
+		caption => 'Adobe Postscript AFM',
+		pat =>
+			qr/(?:AFM files it accompanies may be used|that the AFM files are not distributed)/,
+	},
 	artistic => {
 		name    => 'Artistic',
 		summary => 'Artistic 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