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

js pushed a commit to branch master
in repository licensecheck.

commit 8f90ac255eeb5d3e70f9477ce08bbd60e4dbc616
Author: Jonas Smedegaard <d...@jones.dk>
Date:   Mon Oct 10 10:32:57 2016 +0200

    Add license patterns unicode_strict unicode_tou.
---
 lib/App/Licensecheck.pm       | 10 ++++-----
 lib/Regexp/Pattern/License.pm | 15 +++++++++++++
 t/SPDX/Unicode-TOU.txt        | 51 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+), 6 deletions(-)

diff --git a/lib/App/Licensecheck.pm b/lib/App/Licensecheck.pm
index ccaf44e..568eaf6 100755
--- a/lib/App/Licensecheck.pm
+++ b/lib/App/Licensecheck.pm
@@ -60,8 +60,6 @@ my %SPDX = (
        'public-domain'        => 'Public domain',
        'Python'               => 'PSF',
        'SGI-B'                => 'SGI Free Software License B',
-       'Unicode-strict'       => 'Unicode strict',
-       'Unicode-TOU'          => 'Unicode Terms Of Use',
 );
 
 my $under_terms_of
@@ -921,15 +919,15 @@ sub parse_license
 
        # Unicode-strict
        given ($licensetext) {
-               when ( /Unicode, Inc\. hereby grants the right to freely use 
the information supplied in this file in the creation of products supporting 
the Unicode Standard, and to make copies of this file in any form for internal 
or external distribution as long as this notice remains attached/i ) {
-                       $gen_license->('Unicode-strict');
+               when ( /$L{re}{unicode_strict}/i ) {
+                       $gen_license->('unicode_strict');
                }
        }
 
        # Unicode-TOU
        given ($licensetext) {
-               when ( /Any person is hereby authorized, without fee, to view, 
use, reproduce, and distribute all documents and files solely for informational 
purposes in the creation of products supporting the Unicode Standard, subject 
to the Terms and Conditions herein/i ) {
-                       $gen_license->('Unicode-TOU');
+               when ( /$L{re}{unicode_tou}/i ) {
+                       $gen_license->('unicode_tou');
                }
        }
 
diff --git a/lib/Regexp/Pattern/License.pm b/lib/Regexp/Pattern/License.pm
index 18d6206..e3e3839 100644
--- a/lib/Regexp/Pattern/License.pm
+++ b/lib/Regexp/Pattern/License.pm
@@ -110,6 +110,10 @@ Patterns each covering a single license.
 
 =item * qpl
 
+=item * unicode_strict
+
+=item * unicode_tou
+
 =item * zlib
 
 =item * zlib_acknowledgement
@@ -412,6 +416,17 @@ END
                pat =>
                        qr/$the?(?:Q Public License(?: \(QPL\))?$by_fsf?|QPL)/,
        },
+       unicode_strict => {
+               name    => 'Unicode-strict',
+               caption => 'Unicode strict',
+               pat     => qr/hereby grants the right to freely use/,
+       },
+       unicode_tou => {
+               name    => 'Unicode-TOU',
+               caption => 'Unicode Terms Of Use',
+               pat =>
+                       qr/distribute all documents and files solely for 
informational/,
+       },
        zlib => {
                name    => 'Zlib',
                caption => 'zlib/libpng',
diff --git a/t/SPDX/Unicode-TOU.txt b/t/SPDX/Unicode-TOU.txt
new file mode 100644
index 0000000..b10fef1
--- /dev/null
+++ b/t/SPDX/Unicode-TOU.txt
@@ -0,0 +1,51 @@
+Unicode Terms of Use 
+
+For the general privacy policy governing access to this site, see the Unicode 
Privacy Policy. For trademark usage, see the Unicode® Consortium Name and 
Trademark Usage Policy.
+
+A. Unicode Copyright. 
+   
+     1. Copyright © 1991-2014 Unicode, Inc. All rights reserved. 
+
+     2. Certain documents and files on this website contain a legend 
indicating that "Modification is permitted." Any person is hereby authorized, 
without fee, to modify such documents and files to create derivative works 
conforming to the Unicode® Standard, subject to Terms and Conditions herein. 
+
+     3. Any person is hereby authorized, without fee, to view, use, reproduce, 
and distribute all documents and files solely for informational purposes in the 
creation of products supporting the Unicode Standard, subject to the Terms and 
Conditions herein. 
+
+     4. Further specifications of rights and restrictions pertaining to the 
use of the particular set of data files known as the "Unicode Character 
Database" can be found in Exhibit 1. 
+
+     5. Each version of the Unicode Standard has further specifications of 
rights and restrictions of use. For the book editions (Unicode 5.0 and 
earlier), these are found on the back of the title page. The online code charts 
carry specific restrictions. All other files, including online documentation of 
the core specification for Unicode 6.0 and later, are covered under these 
general Terms of Use. 
+
+     6. No license is granted to "mirror" the Unicode website where a fee is 
charged for access to the "mirror" site. 
+
+     7. Modification is not permitted with respect to this document. All 
copies of this document must be verbatim. 
+
+B. Restricted Rights Legend. Any technical data or software which is licensed 
to the United States of America, its agencies and/or instrumentalities under 
this Agreement is commercial technical data or commercial computer software 
developed exclusively at private expense as defined in FAR 2.101, or DFARS 
252.227-7014 (June 1995), as applicable. For technical data, use, duplication, 
or disclosure by the Government is subject to restrictions as set forth in 
DFARS 202.227-7015 Technical Dat [...]
+
+C. Warranties and Disclaimers. 
+
+     1. This publication and/or website may include technical or typographical 
errors or other inaccuracies . Changes are periodically added to the 
information herein; these changes will be incorporated in new editions of the 
publication and/or website. Unicode may make improvements and/or changes in the 
product(s) and/or program(s) described in this publication and/or website at 
any time. 
+
+     2. If this file has been purchased on magnetic or optical media from 
Unicode, Inc. the sole and exclusive remedy for any claim will be exchange of 
the defective media within ninety (90) days of original purchase. 
+
+     3. EXCEPT AS PROVIDED IN SECTION C.2, THIS PUBLICATION AND/OR SOFTWARE IS 
PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS, IMPLIED, OR 
STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, 
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. UNICODE AND ITS 
LICENSORS ASSUME NO RESPONSIBILITY FOR ERRORS OR OMISSIONS IN THIS PUBLICATION 
AND/OR SOFTWARE OR OTHER DOCUMENTS WHICH ARE REFERENCED BY OR LINKED TO THIS 
PUBLICATION OR THE UNICODE WEBSITE. 
+
+D. Waiver of Damages. In no event shall Unicode or its licensors be liable for 
any special, incidental, indirect or consequential damages of any kind, or any 
damages whatsoever, whether or not Unicode was advised of the possibility of 
the damage, including, without limitation, those resulting from the following: 
loss of use, data or profits, in connection with the use, modification or 
distribution of this information or its derivatives. 
+
+E. Trademarks & Logos. 
+
+     1. The Unicode Word Mark and the Unicode Logo are trademarks of Unicode, 
Inc. “The Unicode Consortium” and “Unicode, Inc.” are trade names of Unicode, 
Inc. Use of the information and materials found on this website indicates your 
acknowledgement of Unicode, Inc.’s exclusive worldwide rights in the Unicode 
Word Mark, the Unicode Logo, and the Unicode trade names. 
+
+     2. The Unicode Consortium Name and Trademark Usage Policy (“Trademark 
Policy”) are incorporated herein by reference and you agree to abide by the 
provisions of the Trademark Policy, which may be changed from time to time in 
the sole discretion of Unicode, Inc. 
+
+     3. All third party trademarks referenced herein are the property of their 
respective owners. 
+
+F. Miscellaneous. 
+
+     1. Jurisdiction and Venue. This server is operated from a location in the 
State of California, United States of America. Unicode makes no representation 
that the materials are appropriate for use in other locations. If you access 
this server from other locations, you are responsible for compliance with local 
laws. This Agreement, all use of this site and any claims and damages resulting 
from use of this site are governed solely by the laws of the State of 
California without regard t [...]
+
+     2. Modification by Unicode Unicode shall have the right to modify this 
Agreement at any time by posting it to this site. The user may not assign any 
part of this Agreement without Unicode’s prior written consent. 
+
+     3. Taxes. The user agrees to pay any taxes arising from access to this 
website or use of the information herein, except for those based on Unicode’s 
net income. 
+
+     4. Severability. If any provision of this Agreement is declared invalid 
or unenforceable, the remaining provisions of this Agreement shall remain in 
effect. 
+
+     5. Entire Agreement. This Agreement constitutes the entire agreement 
between the parties. 
\ No newline at end of file

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to