COPYRIGHT000644001750001750 225513144641316 17202 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Regexp-Pattern-License Upstream-Contact: Jonas Smedegaard (JONASS) Source: https://metacpan.org/release/Regexp-Pattern-License Files: Changes META.json META.yml dist.ini doap.ttl lib/Regexp/Pattern/License.pm lib/Regexp/Pattern/License/Parts.pm t/01-basic.t Copyright: Copyright 2017 Jonas Smedegaard. License: GPL-3.0 Files: COPYRIGHT CREDITS SIGNATURE Copyright: None License: public-domain Files: INSTALL LICENSE README Copyright: Unknown License: Unknown Files: Makefile.PL Copyright: Copyright 2013 Toby Inkster. License: GPL-1.0+ or Artistic-1.0 License: GPL-3.0 This software is Copyright (c) 2017 by Jonas Smedegaard. This is free software, licensed under: The GNU General Public License, Version 3, June 2007 License: Artistic-1.0 This software is Copyright (c) 2017 by the copyright holder(s). This is free software, licensed under: The Artistic License 1.0 License: GPL-1.0 This software is Copyright (c) 2017 by the copyright holder(s). This is free software, licensed under: The GNU General Public License, Version 1, February 1989 CREDITS000644001750001750 7313144641316 16663 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31Maintainer: - Jonas Smedegaard (JONASS) Changes000644001750001750 74613144641316 17165 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31Regexp-Pattern-License ====================== Created: 2016-11-23 Home page: Home page: Bug tracker: Maintainer: Jonas Smedegaard (JONASS) v3.0.31 2017-08-15 [ Packaging ] - Initial independent CPAN release (based on App::Licensecheck). [ Other ] - Use strict and warnings (not strictures). INSTALL000644001750001750 175713144641316 16746 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31 Installing Regexp-Pattern-License should be straightforward. INSTALLATION WITH CPANMINUS If you have cpanm, you only need one line: % cpanm Regexp::Pattern::License If you are installing into a system-wide directory, you may need to pass the "-S" flag to cpanm, which uses sudo to install the module: % cpanm -S Regexp::Pattern::License INSTALLATION WITH THE CPAN SHELL Alternatively, if your CPAN shell is set up, you should just be able to do: % cpan Regexp::Pattern::License MANUAL INSTALLATION As a last resort, you can manually install it. Download the tarball and unpack it. Consult the file META.json for a list of pre-requisites. Install these first. To build Regexp-Pattern-License: % perl Makefile.PL % make && make test Then install it: % make install If you are installing into a system-wide directory, you may need to run: % sudo make install LICENSE000644001750001750 10474513144641316 16763 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31This software is Copyright (c) 2017 by Jonas Smedegaard. This is free software, licensed under: The GNU General Public License, Version 3, June 2007 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . MANIFEST000644001750001750 30413144641316 17011 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31COPYRIGHT CREDITS Changes INSTALL LICENSE MANIFEST META.json META.yml Makefile.PL README SIGNATURE dist.ini doap.ttl lib/Regexp/Pattern/License.pm lib/Regexp/Pattern/License/Parts.pm t/01-basic.t META.json000644001750001750 405113144641316 17324 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31{ "abstract" : "regular expressions for legal licenses", "author" : [ "Jonas Smedegaard (JONASS) " ], "dynamic_config" : 0, "generated_by" : "Dist::Inkt::Profile::TOBYINK version 0.023, CPAN::Meta::Converter version 2.150010", "keywords" : [ "Licensing", "Sourcecode" ], "license" : [ "gpl_3" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Regexp-Pattern-License", "no_index" : { "directory" : [ "eg", "examples", "inc", "t", "xt" ] }, "optional_features" : {}, "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "6.17" } }, "runtime" : { "requires" : { "perl" : "5", "strictures" : "2" } }, "test" : { "requires" : { "Regexp::Pattern" : "0", "Test::Exception" : "0", "Test::More" : "0.98" } } }, "provides" : { "Regexp::Pattern::License" : { "file" : "lib/Regexp/Pattern/License.pm", "version" : "v3.0.31" }, "Regexp::Pattern::License::Parts" : { "file" : "lib/Regexp/Pattern/License/Parts.pm", "version" : "v3.0.31" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://bugs.debian.org/regexp-pattern-license" }, "homepage" : "https://metacpan.org/release/Regexp-Pattern-License", "license" : [ "http://www.gnu.org/licenses/gpl-3.0.txt" ], "repository" : { "type" : "git", "web" : "https://anonscm.debian.org/git/build-common/regexp-pattern-license.git" }, "x_identifier" : "http://purl.org/NET/cpan-uri/dist/Regexp-Pattern-License/project" }, "version" : "v3.0.31", "x_help_wanted" : [ "tester", "documenter" ], "x_serialization_backend" : "JSON::PP version 2.27400_02" } META.yml000644001750001750 247313144641316 17162 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31--- abstract: 'regular expressions for legal licenses' author: - 'Jonas Smedegaard (JONASS) ' build_requires: Regexp::Pattern: '0' Test::Exception: '0' Test::More: '0.98' configure_requires: ExtUtils::MakeMaker: '6.17' dynamic_config: 0 generated_by: 'Dist::Inkt::Profile::TOBYINK version 0.023, CPAN::Meta::Converter version 2.150010' keywords: - Licensing - Sourcecode license: gpl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Regexp-Pattern-License no_index: directory: - eg - examples - inc - t - xt optional_features: {} provides: Regexp::Pattern::License: file: lib/Regexp/Pattern/License.pm version: v3.0.31 Regexp::Pattern::License::Parts: file: lib/Regexp/Pattern/License/Parts.pm version: v3.0.31 requires: perl: '5' strictures: '2' resources: Identifier: http://purl.org/NET/cpan-uri/dist/Regexp-Pattern-License/project bugtracker: https://bugs.debian.org/regexp-pattern-license homepage: https://metacpan.org/release/Regexp-Pattern-License license: http://www.gnu.org/licenses/gpl-3.0.txt repository: https://anonscm.debian.org/git/build-common/regexp-pattern-license.git version: v3.0.31 x_help_wanted: - tester - documenter x_serialization_backend: 'CPAN::Meta::YAML version 0.018' Makefile.PL000644001750001750 1157013144641316 17701 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31use strict; use ExtUtils::MakeMaker 6.17; my $EUMM = eval( $ExtUtils::MakeMaker::VERSION ); my $meta = { "abstract" => "regular expressions for legal licenses", "author" => ["Jonas Smedegaard (JONASS) "], "dynamic_config" => 0, "generated_by" => "Dist::Inkt::Profile::TOBYINK version 0.023, CPAN::Meta::Converter version 2.150010", "keywords" => ["Licensing", "Sourcecode"], "license" => ["gpl_3"], "meta-spec" => { url => "http://search.cpan.org/perldoc?CPAN::Meta::Spec", version => 2, }, "name" => "Regexp-Pattern-License", "no_index" => { directory => ["eg", "examples", "inc", "t", "xt"] }, "prereqs" => { configure => { requires => { "ExtUtils::MakeMaker" => 6.17 } }, runtime => { requires => { perl => 5, strictures => 2 } }, test => { requires => { "Regexp::Pattern" => 0, "Test::Exception" => 0, "Test::More" => 0.98 }, }, }, "provides" => { "Regexp::Pattern::License" => { file => "lib/Regexp/Pattern/License.pm", version => "v3.0.31" }, "Regexp::Pattern::License::Parts" => { file => "lib/Regexp/Pattern/License/Parts.pm", version => "v3.0.31" }, }, "release_status" => "stable", "resources" => { bugtracker => { web => "https://bugs.debian.org/regexp-pattern-license" }, homepage => "https://metacpan.org/release/Regexp-Pattern-License", license => ["http://www.gnu.org/licenses/gpl-3.0.txt"], repository => { type => "git", web => "https://anonscm.debian.org/git/build-common/regexp-pattern-license.git", }, x_identifier => "http://purl.org/NET/cpan-uri/dist/Regexp-Pattern-License/project", }, "version" => "v3.0.31", "x_help_wanted" => ["tester", "documenter"], }; my %dynamic_config; my %WriteMakefileArgs = ( ABSTRACT => $meta->{abstract}, AUTHOR => ($EUMM >= 6.5702 ? $meta->{author} : $meta->{author}[0]), DISTNAME => $meta->{name}, VERSION => $meta->{version}, EXE_FILES => [ map $_->{file}, values %{ $meta->{x_provides_scripts} || {} } ], NAME => do { my $n = $meta->{name}; $n =~ s/-/::/g; $n }, test => { TESTS => "t/*.t" }, %dynamic_config, ); $WriteMakefileArgs{LICENSE} = $meta->{license}[0] if $EUMM >= 6.3001; sub deps { my %r; for my $stage (@_) { for my $dep (keys %{$meta->{prereqs}{$stage}{requires}}) { next if $dep eq 'perl'; my $ver = $meta->{prereqs}{$stage}{requires}{$dep}; $r{$dep} = $ver if !exists($r{$dep}) || $ver >= $r{$dep}; } } \%r; } my ($build_requires, $configure_requires, $runtime_requires, $test_requires); if ($EUMM >= 6.6303) { $WriteMakefileArgs{BUILD_REQUIRES} ||= deps('build'); $WriteMakefileArgs{CONFIGURE_REQUIRES} ||= deps('configure'); $WriteMakefileArgs{TEST_REQUIRES} ||= deps('test'); $WriteMakefileArgs{PREREQ_PM} ||= deps('runtime'); } elsif ($EUMM >= 6.5503) { $WriteMakefileArgs{BUILD_REQUIRES} ||= deps('build', 'test'); $WriteMakefileArgs{CONFIGURE_REQUIRES} ||= deps('configure'); $WriteMakefileArgs{PREREQ_PM} ||= deps('runtime'); } elsif ($EUMM >= 6.52) { $WriteMakefileArgs{CONFIGURE_REQUIRES} ||= deps('configure'); $WriteMakefileArgs{PREREQ_PM} ||= deps('runtime', 'build', 'test'); } else { $WriteMakefileArgs{PREREQ_PM} ||= deps('configure', 'build', 'test', 'runtime'); } { my ($minperl) = reverse sort( grep defined && /^[0-9]+(\.[0-9]+)?$/, map $meta->{prereqs}{$_}{requires}{perl}, qw( configure build runtime ) ); if (defined($minperl)) { die "Installing $meta->{name} requires Perl >= $minperl" unless $] >= $minperl; $WriteMakefileArgs{MIN_PERL_VERSION} ||= $minperl if $EUMM >= 6.48; } } sub FixMakefile { return unless -d 'inc'; my $file = shift; local *MAKEFILE; open MAKEFILE, "< $file" or die "FixMakefile: Couldn't open $file: $!; bailing out"; my $makefile = do { local $/; }; close MAKEFILE or die $!; $makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/$1'inc', /; $makefile =~ s/( -I\$\(INST_ARCHLIB\))/ -Iinc$1/g; $makefile =~ s/( "-I\$\(INST_LIB\)")/ "-Iinc"$1/g; $makefile =~ s/^(FULLPERL = .*)/$1 "-Iinc"/m; $makefile =~ s/^(PERL = .*)/$1 "-Iinc"/m; open MAKEFILE, "> $file" or die "FixMakefile: Couldn't open $file: $!; bailing out"; print MAKEFILE $makefile or die $!; close MAKEFILE or die $!; } my $mm = WriteMakefile(%WriteMakefileArgs); FixMakefile($mm->{FIRST_MAKEFILE} || 'Makefile'); exit(0); README000644001750001750 570413144641316 16571 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31NAME Regexp::Pattern::License - Regular expressions for legal licenses VERSION Version v3.0.31 DESCRIPTION Regexp::Pattern::License provides a hash of regular expression patterns related to legal software licenses. Regexp::Pattern is a convention for organizing reusable regex patterns. PATTERNS Single licenses Patterns each covering a single license. * adobe_2006 * adobe_glyph * afl * agpl * apache * apafml * artistic * artistic_2 * beerware * bsd_2_clause * bsd_3_clause * bsd_4_clause * cc_by * cc_by_nc * cc_by_nc_nd * cc_by_nc_sa * cc_by_nd * cc_by_sa * cc_cc0 * cc_sp * cddl * cecill * cecill_1 * cecill_1_1 * cecill_2 * cecill_2_1 * cecill_b * cecill_c * cube * curl * dsdp * epl * eurosym * fsfap * fsful * fsfullr * ftl * gfdl * gfdl_niv * gpl * isc * lgpl * llgpl * libpng * mit_advertising * mit_enna * mit_feh * mit_new * mit_new_materials * mit_old * mit_oldstyle * mit_oldstyle_disclaimer * mit_oldstyle_permission * mpl * ms_pl * ms_rl * ntp * ntp_disclaimer * openssl * postgresql * public_domain * python * qpl * sgi_b * unicode_strict * unicode_tou * wtfpl * zlib * zlib_acknowledgement Licensing traits Patterns each covering a single trait occuring in licenses. * clause_retention * clause_reproduction * clause_advertising * clause_advertising_always * clause_non_endorsement * fsf_unlimited * fsf_unlimited_retention * version_later * version_later_paragraph * version_later_postfix * version_number * version_prefix License combinations Patterns each covering a single combination of multiple licenses. * perl Multiple licenses Patterns each covering multiple licenses. * bsd * gnu * mit AUTHOR Jonas Smedegaard `` COPYRIGHT AND LICENSE Copyright © 2016-2017 Jonas Smedegaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . SIGNATURE000644001750001750 430513144641317 17172 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31This file contains message digests of all files listed in MANIFEST, signed via the Module::Signature module, version 0.81. To verify the content in this distribution, first make sure you have Module::Signature installed, then type: % cpansign -v It will check each file's integrity, as well as the signature's validity. If "==> Signature verified OK! <==" is not displayed, the distribution may already have been compromised, and you should not run its Makefile.PL or Build.PL. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 SHA1 8ec5714a7fd292b2a5e186530e1cbc5fc2a4107a COPYRIGHT SHA1 916f540e500fac9008b5cbca8dba51745bdf618e CREDITS SHA1 4acf64b574c9974f8b12a3af4e157c029f88247a Changes SHA1 3288c02d6ebd4f2e03d50b322d4ed41860c79c87 INSTALL SHA1 98589a8f32eeab609a251fa1d16f94278f007612 LICENSE SHA1 73faa3db24ca8a44cf8b634135447ae290b5e533 MANIFEST SHA1 e1670f1b8e703100ed59dbc2bc4a7aeefd64d2a1 META.json SHA1 32dc182e7800ec5102a9e7f1d83ee661007d2830 META.yml SHA1 8060cc4a438d376911723fdfdb9519e62d5cc15e Makefile.PL SHA1 a6c249eef1f92221313c3496ac9adcc2353c23c2 README SHA1 d74245bcb70430c80f7722d55cc5c954dbe25db5 dist.ini SHA1 74e338443c219ccf7380ed6b7468ac7d7190dc71 doap.ttl SHA1 fadf9cc3bc4f80f781ead0fe2739ad6605196fee lib/Regexp/Pattern/License.pm SHA1 3584dfd705b29601628bc6a6c3f79d2042e48acd lib/Regexp/Pattern/License/Parts.pm SHA1 bbdba43ed0e0517eae7e1c00426db0f034a7bfc4 t/01-basic.t -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAlmTQs8ACgkQLHwxRsGg ASGnYg/8Cby1C8w4LmN1ymeXr3g6uZ5lDDJUJspek5cHaG78SLf7SoLrR4F48Snd MCJtd/HbKMALMecaiL94bmlrCk2dpZ2qWnKsHUCjF0tsasAkAoUxEJeWhSurVYNC jSoDTgy5Nib+sZmf2MbP/rMz6gtZk67phhgIlbHuxtwEscMKkaAawEZUsNEiQlBw VnA27V19uHSCWFjt/ojHYXRfQe1sY1euQrYeJns05L5xHV7aR9qZU3SHoBBjq/pC kXi2YmeQ5LFiIAzEPHiSR6bhn9S5oPFGPpX1wrnsD0LFMAg0vQlkDILlea2NfaRF 8sRVcN9AnmHX02pBIfn9IxLcumorwrxT0hvhc6rlrdXh4PbNjIhEOyly6/IHpVrd 8gdEwL63lVOl7hxfTWaxJYE/Q6aal6axKgAfiXa3Fuoh/78MO5A8m1Z7dfDdls0E qWuMywdj0z1YpLz9Dfwk6hGURvd7/NN91z6E7Lv/UESQxDUxEefQFSMZMyoPO2Cu 58PH6+Za+8jjxLFnt47BOAnCIqC2OhhDo5GDG8BZjkC84cdmxrUtMOfm7mEE7EdC K1L1O2UW1hyuKpjxTS7VAkxKF1W6SlJ2I3muvGX0DB0iooZOZJrIKBazXiilUidd Qz3Z0mGfDSp3lTUuTuUlhBPODAKgFpl1HsA228eNzn9lAHI9LCo= =gc22 -----END PGP SIGNATURE----- dist.ini000644001750001750 20113144641316 17320 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31; Configuration file for Regexp::Pattern::License ; ;; class = 'Dist::Inkt::Profile::TOBYINK' ;; name = 'Regexp-Pattern-License' doap.ttl000644001750001750 4220013144641316 17371 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31@prefix cpan-uri: . @prefix dc: . @prefix doap: . @prefix doap-bugs: . @prefix doap-changeset: . @prefix doap-deps: . @prefix foaf: . @prefix rdfs: . @prefix xsd: . dc:contributor ; doap:release , , , . a doap:Version; dc:identifier "App-Licensecheck-v3.0.27"^^xsd:string; dc:issued "2016-11-23"^^xsd:date; doap-changeset:changeset [ doap-changeset:item [ a doap-changeset:Bugfix; rdfs:label "Fix detect license FSFULLR (was misdetected as bogus FSFULR)."; ], [ a doap-changeset:Change; rdfs:label "Clean m4 dnl comment marker."; ], [ a doap-changeset:Addition; rdfs:label "Add new trait patterns clause_retention clause_reproduction clause_advertising clause_non_endorsement disclaimer."; ], [ a doap-changeset:Addition; rdfs:label "Add new group pattern bsd."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern openssl to Regexp::Pattern::License."; ], [ a doap-changeset:Addition; rdfs:label "Add new trait pattern clause_advertising_always."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern cc_by_sa to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Relax license pattern cc_by_ca."; ], [ a doap-changeset:Addition; rdfs:label "Add new license patterns cc_by cc_by_nc cc_by_nc_nd cc_by_nc_sa cc_by_nd cc_cc0 cc_sp."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix version identifier to use + only in machine-readable mode."; ], [ a doap-changeset:Addition; rdfs:label "Add new trait pattern license_version."; ], [ a doap-changeset:Addition; rdfs:label "Add new trait pattern license_prefix."; ], [ a doap-changeset:Change; rdfs:label "Tidy code: Drop noop code."; ], [ a doap-changeset:Change; rdfs:label "Emulate Regexp::Common -keep syntax to capture version number."; ], [ a doap-changeset:Addition; rdfs:label "Add new trait patterns version_later version_later_paragraph version_later_postfix."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern afl to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Relax detection of license GPL."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern agpl to Regexp::Pattern::License."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix detect license MPL-2.0 (was misdetected as MPL-2.0 or AGPL)."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern mpl to Regexp::Pattern::License."; ], [ a doap-changeset:Addition; rdfs:label "Add new license patterns gfdl gfdl_niv."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern apache to Regexp::Pattern::License."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix avoid detection of GPL/LGPL fulltext (rarely if ever used as grant)."; ], [ a doap-changeset:Regression; rdfs:label "Drop too exotic licensing phrase, and corresponding test case."; ], [ a doap-changeset:Change; rdfs:label "Add license patterns gpl lgpl to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Tighten regexes: Generalize and improve LGPL matching."; ], [ a doap-changeset:Addition; rdfs:label "Add new group pattern gnu."; ], [ a doap-changeset:Change; rdfs:label "Tighten regexes: Generalize abbreviated AGPL/LGPL/GPL matching."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern artistic to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add combo pattern perl to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Improve license detections artistic perl."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern qpl to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license patterns adobe_2006 adobe_glyph apafml to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license patterns fsfap fsful fsfullr to Regexp::Pattern::License."; ], [ a doap-changeset:Addition; rdfs:label "Introduce new modules: Pattern::License Pattern::License::Parts."; ], [ a doap-changeset:Addition; rdfs:label "Add new trait patterns fsf_unlimited fsf_unlimited_retention."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern ftl to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license patterns libpng zlib zlib_acknowledgement to Regexp::Pattern::License."; ], [ a doap-changeset:Addition; rdfs:label "Add new license patterns cube eurosym."; ], [ a doap-changeset:Change; rdfs:label "Add license patterns unicode_strict unicode_tou to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern sgi_b to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern python to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern public_domain to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern ms_pl to Regexp::Pattern::License."; ], [ a doap-changeset:Addition; rdfs:label "Add new license pattern ms_rl."; ], [ a doap-changeset:Change; rdfs:label "Use Regexp::Pattern::License for shortname resolving (with internal list as fallback until phased out)."; ], [ a doap-changeset:Change; rdfs:label "Add license patterns cddl cecill cecill_1 cecill_1_1 cecill_2 cecill_2_1 cecill_b cecill_c epl to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern beerware to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern llgpl to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Drop no longer used internal license shortname list."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern wtfpl to Regexp::Pattern::License."; ], [ a doap-changeset:Change; rdfs:label "Improve detection of license GPL."; ], [ a doap-changeset:Change; rdfs:label "Add license patterns mit_new mit_new_materials mit_old mit_unspecified postgresql, and group pattern mit to Regexp::Pattern::License."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix detect licenses mit_old mit_unspecified (was misdetected as mit_new)."; ], [ a doap-changeset:Addition; rdfs:label "Add new license patterns curl dsdp mit_oldstyle mit_oldstyle_disclaimer mit_oldstyle_permission ntp ntp_disclaimer."; ], [ a doap-changeset:Change; rdfs:label "Add license patterns bsd_2_clause bsd_3_clause bsd_4_clause to Regexp::Pattern::License."; ]; ]; doap-changeset:released-by ; doap:file-release ; doap:revision "v3.0.27"^^xsd:string. a doap:Version; dc:identifier "App-Licensecheck-v3.0.28"^^xsd:string; dc:issued "2016-11-25"^^xsd:date; doap-changeset:changeset [ doap-changeset:item [ a doap-changeset:Documentation; rdfs:label "Fix typo in changelog."; ], [ a doap-changeset:Documentation; rdfs:label "Tidy changelog: Improve distinction between newly added and added-to-patternlist entries."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License: Remove stray bogus regexp."; ], [ a doap-changeset:Documentation; rdfs:label "Extend license pattern dsdp with alternate fedora name PetSC."; ], [ a doap-changeset:Change; rdfs:label "Drop unused and too broad trait pattern disclaimer."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern discl → asis_sw_name."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern discl_provide → asis_name_sw."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern provided_no_warranty → asis_expr_warranty."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern discl_disclaim → discl_name_warranties."; ], [ a doap-changeset:Change; rdfs:label "Tighten license pattern bsd-2-clause. Tidy Regexp::Pattern::License::Pattern: Rename pattern asis_sw_name → asis_sw_by_name."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix tighten detection of ISC license (was misdetecting curl)."; ], [ a doap-changeset:Change; rdfs:label "Add license pattern ISC to Regexp::Pattern::License::Pattern."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix tighten license pattern curl (was misdetecting other MIT variants)."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern promo_no_author → nopromo_neither."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Fix sort pattern list."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern retain_notice → note_invar."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern retain_notice_cond_discl → note_retain_notice_cond_discl."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern repro_notice_cond_discl → note_repro_notice_cond_discl."; ], [ a doap-changeset:Change; rdfs:label "Tidy Regexp::Pattern::License::Pattern: Rename pattern name_no_ad → nopromo_written_prior."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix tighten detection of mit_new license (was misdetecting other MIT flavors)."; ], [ a doap-changeset:Change; rdfs:label "List license mit_new alternate fedora name Modern Style with sublicense."; ], [ a doap-changeset:Addition; rdfs:label "Add new license pattern icu."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix detect dual licensing mit_new mit_old (and speed up partsing while at it)."; ], [ a doap-changeset:Addition; rdfs:label "Add new license patterns mit_enna mit_feh."; ], [ a doap-changeset:Addition; rdfs:label "Add new license pattern mit_advertising."; ]; ]; doap-changeset:released-by ; doap:file-release ; doap:revision "v3.0.28"^^xsd:string. a doap:Version; dc:identifier "App-Licensecheck-v3.0.29"^^xsd:string; dc:issued "2017-01-24"^^xsd:date; doap-changeset:changeset [ doap-changeset:item [ a doap-changeset:Change; rdfs:label "Improve license patterns ftl mit_feh mit_enna cube eurosym libpng zlib zlib_acknowledgement."; ], [ a doap-changeset:Addition; rdfs:label "Add license patterns ofl aladdin rpsl mit_cmu mit_cmu_warranty."; ], [ a doap-changeset:Change; rdfs:label "Sort before enumerating ambiguously related combo licenses."; ], [ a doap-changeset:Change; rdfs:label "Streamline license parsing: Process loops of similar patterne."; ], [ a doap-changeset:Regression; rdfs:label "Drop gpl+aladdin combo license: Too exotic."; ], [ a doap-changeset:Documentation; rdfs:label "Document Regexp::Pattern::License as a private module."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix don't choke on unspecificed BSD license."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix detect BSD licenses as bare name."; doap-bugs:fixes ; doap-changeset:thanks ; ]; ]; doap-changeset:released-by ; doap:file-release ; doap:revision "v3.0.29"^^xsd:string. a doap:Version; dc:identifier "App-Licensecheck-v3.0.30"^^xsd:string; dc:issued "2017-07-05"^^xsd:date; doap-changeset:changeset [ doap-changeset:item [ a doap-changeset:Tests; rdfs:label "Add OSI test (including only currently succeeding OSI licenses for now)."; ], [ a doap-changeset:Change; rdfs:label "Improve license pattern agpl to skip english (not only french) cecill_2_1."; ], [ a doap-changeset:Change; rdfs:label "Improve license pattern epl."; ], [ a doap-changeset:Addition; rdfs:label "Add license pattern artistic_2."; ], [ a doap-changeset:Change; rdfs:label "clean_comments(): Relax to match varying amount of horizontal whitespace (not exactly one character) followed by any non-whitespace (not only a word character)."; ], [ a doap-changeset:Change; rdfs:label "clean_comments(): Tighten to match and strip only horizontal whitespace (not newlines)."; ], [ a doap-changeset:Bugfix; rdfs:label "Fix license pattern ms_pl to detect MS Public License (not non-free MS Permissive License)."; ], [ a doap-changeset:Change; rdfs:label "Improve license pattern epl to detect some forms of \"or newer\"."; ], [ a doap-changeset:Bugfix; rdfs:label "Tighten license patterns afl agpl cdl gfdl gfdl_nivgpl lgpl llgpl mpl ms_pl ms_rl qpl sgi_b wtfpl mit to require descriptive prefix when only an abbreviation."; doap-bugs:fixes ; doap-changeset:thanks ; ]; ]; doap-changeset:released-by ; doap:file-release ; doap:revision "v3.0.30"^^xsd:string. a doap:Project; cpan-uri:x_help_wanted , ; dc:contributor ; doap-deps:runtime-requirement [ doap-deps:on "strictures 2"^^doap-deps:CpanId ], [ doap-deps:on "perl 5"^^doap-deps:CpanId ]; doap-deps:test-requirement [ doap-deps:on "Regexp::Pattern 0"^^doap-deps:CpanId ], [ doap-deps:on "Test::Exception 0"^^doap-deps:CpanId ], [ doap-deps:on "Test::More 0.98"^^doap-deps:CpanId ]; doap:bug-database , ; doap:category [ rdfs:label "Sourcecode" ], [ rdfs:label "Licensing" ]; doap:created "2016-11-23"^^xsd:date; doap:developer ; doap:download-page ; doap:homepage , ; doap:license ; doap:maintainer ; doap:name "Regexp-Pattern-License"; doap:programming-language "Perl"; doap:release ; doap:repository [ a doap:GitRepository; doap:browse ; ]; doap:shortdesc "regular expressions for legal licenses". a doap:Version; dc:identifier "Regexp-Pattern-License-v3.0.31"^^xsd:string; dc:issued "2017-08-15"^^xsd:date; doap-changeset:changeset [ doap-changeset:item [ a doap-changeset:Packaging; rdfs:label "Initial independent CPAN release (based on App::Licensecheck)."; ], [ a doap-changeset:Change; rdfs:label "Use strict and warnings (not strictures)."; ]; ]; doap-changeset:released-by ; doap:file-release ; doap:revision "v3.0.31"^^xsd:string. a foaf:Person; foaf:mbox , ; foaf:name "Jonas Smedegaard"; foaf:nick "JONASS"; foaf:page . dc:title "GNU General Public License version 3 or newer.". 01-basic.t000644001750001750 130613144641316 17632 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31/t#!perl use strict; use warnings; use Test::Exception; use Test::More 0.98; use Regexp::Pattern; dies_ok { re("License::foo") } "get unknown -> dies"; subtest "get" => sub { my $re1 = re("License::fsful"); ok $re1; ok( 'This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it.' =~ $re1 ); ok( !( 'foo' =~ $re1 ) ); }; # TODO #subtest "get dynamic" => sub { # my $re3a = re( "License::re3", variant => 'A' ); # ok $re3a; # ok( '123-456' =~ $re3a ); # ok( !( 'foo' =~ $re3a ) ); # my $re3b = re( "License::re3", variant => 'B' ); # ok $re3b; # ok( '123-45-67890' =~ $re3b ); # ok( !( '123-456' =~ $re3b ) ); #}; done_testing; License.pm000644001750001750 5247413144641316 23274 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31/lib/Regexp/Patternpackage Regexp::Pattern::License; use utf8; use strict; use warnings; use Regexp::Pattern::License::Parts; =head1 NAME Regexp::Pattern::License - Regular expressions for legal licenses =head1 VERSION Version v3.0.31 =cut our $VERSION = version->declare("v3.0.31"); =head1 DESCRIPTION L provides a hash of regular expression patterns related to legal software licenses. L is a convention for organizing reusable regex patterns. =head1 PATTERNS =head2 Single licenses Patterns each covering a single license. =over =item * adobe_2006 =item * adobe_glyph =item * afl =item * agpl =item * apache =item * apafml =item * artistic =item * artistic_2 =item * beerware =item * bsd_2_clause =item * bsd_3_clause =item * bsd_4_clause =item * cc_by =item * cc_by_nc =item * cc_by_nc_nd =item * cc_by_nc_sa =item * cc_by_nd =item * cc_by_sa =item * cc_cc0 =item * cc_sp =item * cddl =item * cecill =item * cecill_1 =item * cecill_1_1 =item * cecill_2 =item * cecill_2_1 =item * cecill_b =item * cecill_c =item * cube =item * curl =item * dsdp =item * epl =item * eurosym =item * fsfap =item * fsful =item * fsfullr =item * ftl =item * gfdl =item * gfdl_niv =item * gpl =item * isc =item * lgpl =item * llgpl =item * libpng =item * mit_advertising =item * mit_enna =item * mit_feh =item * mit_new =item * mit_new_materials =item * mit_old =item * mit_oldstyle =item * mit_oldstyle_disclaimer =item * mit_oldstyle_permission =item * mpl =item * ms_pl =item * ms_rl =item * ntp =item * ntp_disclaimer =item * openssl =item * postgresql =item * public_domain =item * python =item * qpl =item * sgi_b =item * unicode_strict =item * unicode_tou =item * wtfpl =item * zlib =item * zlib_acknowledgement =back =cut my $D = qr/[-–]/; # dash my $SD = qr/[ -–]/; # space or dash my %P; while ( my ( $key, $val ) = each %Regexp::Pattern::License::Parts::RE ) { $P{$key} = $val->{pat}; } my $the = qr/(?:[Tt]he )/; my $gnu = qr/(?:GNU )/; my $gpl = qr/General Public License/; my $fsf = qr/(?:$the?Free Software Foundation)/; my $by_fsf = qr/(?: (?:as )?published by $fsf)/; my $niv = qr/with no Invariant Sections(?:, with no Front-Cover Texts, and with no Back-Cover Texts)?/; my $fsf_ul = qr/$fsf gives unlimited permission to copy, distribute and modify it/; my $fsf_ullr = qr/$fsf_ul, with or without modifications, as long as this notice is preserved/; our %RE = ( adobe_2006 => { name => 'Adobe-2006', 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', pat => qr/(?:$the?Academic Free License(?: \(AFL\))?|${the}AFL\b)/, }, agpl => { name => 'AGPL', summary => 'GNU Affero General Public License', pat => qr/(?:$the?$gnu?Affero $gpl(?: \(AGPL\))?$by_fsf?|(?:$the$gnu?|$gnu)AGPL)/, }, aladdin => { name => 'Aladdin', summary => 'Aladdin Free Public License', pat => qr/$the?Aladdin Free Public License/, }, apache => { name => 'Apache', 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', pat => qr/$the?Artistic License/, }, artistic_2 => { name => 'Artistic-2.0', summary => 'Artistic License (v2.0)', pat => qr/is governed by this Artistic License\./, }, beerware => { name => 'Beerware', summary => 'Beer-Ware License', pat => qr/(?:you can buy me a beer in return|$the?beer-?ware(?: License)?)/, }, bsd_2_clause => { name => 'BSD-2-Clause', 'name.alt.org.debian' => 'BSD-2-clause', caption => 'BSD (2 clause)', tags => ['bsd'], pat => qr/$P{repro_copr_cond_discl}\W+$P{asis_sw_by_name}/, }, bsd_3_clause => { name => 'BSD-3-Clause', 'name.alt.org.debian' => 'BSD-3-clause', caption => 'BSD (3 clause)', tags => ['bsd'], pat => qr/$P{repro_copr_cond_discl}\W+$P{nopromo_neither}/, }, bsd_4_clause => { name => 'BSD-4-Clause', 'name.alt.org.debian' => 'BSD-4-clause', caption => 'BSD (4 clause)', tags => ['bsd'], pat => qr/$P{ad_mat_ack_this}/, }, cc_by => { name => 'CC-BY', caption => 'CC by', summary => 'Creative Commons Attribution Public License', tags => ['cc'], pat => qr/(?:$P{cc}$SD(?:$P{cc_by}|BY|$P{cc_url}by))/, }, cc_by_nc => { name => 'CC-BY-NC', caption => 'CC by-nc', summary => 'Creative Commons Attribution-NonCommercial Public License', tags => ['cc'], pat => qr/(?:$P{cc}$SD(?:$P{cc_by}$SD$P{cc_nc}|BY${SD}NC|$P{cc_url}by-nc))/, }, cc_by_nc_nd => { name => 'CC-BY-NC-ND', caption => 'CC by-nc-nd', summary => 'Creative Commons Attribution-NonCommercial-NoDerivatives Public License', tags => ['cc'], pat => qr/(?:$P{cc}$SD(?:$P{cc_by}$SD(?:$P{cc_nc}$SD$P{cc_nd}|$P{cc_nd}$SD$P{cc_nc})|BY${SD}NC${SD}ND|$P{cc_url}by-nc-nd))/, }, cc_by_nc_sa => { name => 'CC-BY-NC-SA', caption => 'CC by-nc-sa', summary => 'Creative Commons Attribution-NonCommercial-ShareAlike Public License', tags => ['cc'], pat => qr/(?:$P{cc}$SD(?:$P{cc_by}$SD$P{cc_nc}$SD$P{cc_sa}|BY${SD}NC${SD}SA|$P{cc_url}by-nc-sa))/, }, cc_by_nd => { name => 'CC-BY-ND', caption => 'CC by-nd', summary => 'Creative Commons Attribution-NoDerivatives Public License', tags => ['cc'], pat => qr/(?:$P{cc}$SD(?:$P{cc_by}$SD$P{cc_nd}|BY${SD}ND|$P{cc_url}by-nd))/, }, cc_by_sa => { name => 'CC-BY-SA', caption => 'CC by-sa', summary => 'Creative Commons Attribution-ShareAlike Public License', tags => ['cc'], pat => qr/(?:$P{cc}$SD(?:$P{cc_by}$SD$P{cc_sa}|BY${SD}SA|$P{cc_url}by-sa))/, }, cc_cc0 => { name => 'CC0', summary => 'Creative Commons CC0 Public License', tags => ['cc'], pat => qr/(?:$P{cc}$SD(?:$P{cc_cc0}(?: \(?"CC0"?\)?)?|CC0|$P{cc_url_pd}zero))/, }, cc_sp => { caption => 'CC Sampling Plus', summary => 'Creative Commons Sampling Plus Public License', tags => ['cc'], pat => qr/(?:$P{cc}$SD(?:$P{cc_sp}|$P{cc_url}sampling\+))/, }, cddl => { name => 'CDDL', summary => 'Common Development and Distribution License', pat => qr/(?:$the?(?:Common Development and Distribution License|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE)(?: \(CDDL\))?|${the}CDDL\b)/, }, cecill => { name => 'CECILL', caption => 'CeCILL', pat => qr/(?:CONTRAT DE LICENCE DE LOGICIEL LIBRE |(?:la )?licence |$the?FREE SOFTWARE LICENSING AGREEMENT )?CeCILL/, }, cecill_1 => { name => 'CECILL-1.0', caption => 'CeCILL-1.0', pat => qr/Version 1 du 21\/06\/2004/, }, cecill_1_1 => { name => 'CECILL-1.1', caption => 'CeCILL-1.1', pat => qr/Version 1\.1 of 10\/26\/2004/, }, cecill_2 => { name => 'CECILL-2.0', caption => 'CeCILL-2.0', pat => qr/Version 2\.0 (?:du|dated) 2006-09-05/, }, cecill_2_1 => { name => 'CECILL-2.1', caption => 'CeCILL-2.1', pat => qr/Version 2\.1 (?:du|dated) 2013-06-21/, }, cecill_b => { name => 'CECILL-B', caption => 'CeCILL-B', pat => qr/the two main principles guiding its drafting|CeCILL-B/, }, cecill_c => { name => 'CECILL-C', caption => 'CeCILL-C', pat => qr/CONTRAT DE LICENCE DE LOGICIEL LIBRE CeCILL-C/, }, cube => { name => 'Cube', tags => ['zlib'], pat => qr/$P{origin_sw_no_misrepresent}; $P{you_not_claim_wrote}\. $P{use_ack_nonreq}\. $P{altered_srcver_mark}\. $P{notice_no_alter_any}\. additional clause specific to Cube:? $P{src_no_relicense}/, }, curl => { tags => ['mit'], pat => qr/$P{note_copr_perm}\.\s+$P{asis_sw_warranty}/, }, dsdp => { name => 'DSDP', 'caption.alt.org.fedora' => 'DSDP a.k.a. MIT (PetSC variant)', tags => ['mit'], pat => qr/This program discloses material protectable/, }, epl => { name => 'EPL', summary => 'Eclipse Public License', pat => qr/(?:$the?Eclipse Public License(?: \(EPL\))?|${the}EPL\b)/, }, eurosym => { name => 'Eurosym', tags => ['zlib'], pat => qr/$P{origin_sw_no_misrepresent}.*?$P{altered_srcver_mark}.*?$P{change_redist_share}.*?$P{notice_no_alter}/, }, fsfap => { name => 'FSFAP', caption => 'FSF All Permissive', pat => qr/Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved/, }, fsful => { name => 'FSFUL', caption => 'FSF Unlimited', pat => qr/This configure script is free software; $fsf_ul/, }, fsfullr => { name => 'FSFULLR', caption => 'FSF Unlimited (with Retention)', pat => qr/This file is free software; $fsf_ullr/, }, ftl => { name => 'FTL', caption => 'Freetype', pat => qr/$the?(?:FreeType(?: [Pp]roject)? (?:LICENSE|[Ll]icense)(?: \(FTL\))?)/, }, gfdl => { name => 'GFDL', summary => 'GNU Free Documentation License', pat => qr/(?:$the?$gnu?Free Documentation License(?: \(GFDL\))?$by_fsf?|(?:$the$gnu?|$gnu)GFDL)/, }, gfdl_niv => { name => 'GFDL-NIV', caption => 'GFDL (no invariant sections)', summary => 'GNU Free Documentation License, with no Front-Cover or Back-Cover Texts or Invariant Sections', pat => qr/(?:$the?$gnu?Free Documentation License(?: \(GFDL\))?$by_fsf?[,;]? $niv|(?:$the$gnu?|$gnu)GFDL-NIV)/, }, gpl => { name => 'GPL', summary => 'The GNU General Public License', pat => qr/(?:$the?$gnu?$gpl(?: \(GPL\))?$by_fsf?|(?:$the$gnu?|$gnu)GPL)/, }, isc => { name => 'ISC', tags => ['mit'], pat => qr/$P{note_copr_perm}\.\s+$P{asis_sw_name_discl}/, }, icu => { name => 'ICU', tags => ['mit'], pat => qr/$P{note_copr_perm} of the Software and that $P{repro_copr_perm_appear_doc}\.\s+$P{asis_sw_warranty}(?:[^.]+\.\s+){2}$P{nopromo_except}/, }, lgpl => { name => 'LGPL', summary => 'The GNU Lesser General Public License', pat => qr/(?:$the?$gnu?(?:Library|Lesser(?: \(Library\))?) $gpl(?: \(LGPL\))?$by_fsf?|(?:$the$gnu?|$gnu)LGPL)/, }, llgpl => { name => 'LLGPL', summary => 'Lisp Lesser General Public License', pat => qr/(?:$the?Lisp Lesser $gpl(?: \(LLGPL\))?|${the}LLGPL\b)/, }, libpng => { name => 'Libpng', pat => qr/$P{origin_src_no_misrepresent}\. $P{altered_ver_mark}\. $P{copr_no_alter}/, }, mit_advertising => { name => 'MIT-advertising', caption => 'MIT (advertising)', tags => ['mit'], pat => qr/$P{note_marketing}\b[^.,]+, and $P{ack_doc_mat_pkg_use}/, }, mit_cmu => { name => 'MIT-CMU', description => <<'END', Identical to NTP, except... * omit explicit permission for charging fee * exclude suitability disclaimer * exclude terse "as is" warranty disclaimer * include elaborate warranty disclaimer * include liability disclaimer fingerprint: "without specific written permission" SPDX and fedora sample seem not generic but the unique file COPYING from project net-snmp. END tags => ['mit'], pat => qr/Permission $P{to_dist} $P{sw_doc} $P{any_purpose} and $P{nofee} $P{granted}, $P{retain_copr_appear} and that $P{repro_copr_perm_appear_doc}, and that $P{nopromo_name_written}\./, }, mit_cmu_warranty => { 'name.alt.org.debian' => 'MIT-CMU~warranty', caption => 'MIT (CMU, retain warranty disclaimer)', 'caption.alt.org.fedora' => 'MIT (MLton / Standard ML of New Jersey)', description => <<'END', Identical to MIT-CMU, except... * add requirement of "warranty disclaimer" appearing in documentation fingerprint: "warranty disclaimer appear" END tags => ['mit'], pat => qr/Permission $P{to_dist} $P{sw_doc} $P{any_purpose} and $P{nofee} $P{granted}, $P{retain_copr_appear} and that $P{repro_copr_perm_warr_appear_doc}, and that $P{nopromo_name_written_prior}\./, }, mit_enna => { name => 'MIT-enna', caption => 'MIT (enna)', tags => ['mit'], pat => qr/$P{ack_pub_use_nosrc}/, pat => qr/$P{perm_granted}, $P{free_charge}, $P{to_pers} $P{the_sw}, $P{to_deal_the_sw_rights} $P{to_mod_sublic} $P{sw}, and $P{to_perm_pers}, $P{subj_cond}:? $P{retain_copr_perm_sw_copr}\. $P{ack_pub_use_nosrc}\. This includes acknowledgments in either Copyright notices, Manuals, Publicity and Marketing documents or any documentation provided with any product containing this software\. $P{license_not_lib}\./, }, mit_feh => { name => 'MIT-feh', caption => 'MIT (feh)', tags => ['mit'], pat => qr/$P{perm_granted}, $P{free_charge}, $P{to_pers} $P{the_sw}, $P{to_deal_the_sw_rights} $P{to_mod_sublic} $P{sw}, and $P{to_perm_pers}, $P{subj_cond}:? $P{retain_copr_perm_sw_doc} and $P{ack_doc_pkg_use}\./, }, mit_new => { 'name.alt.org.spdx' => 'MIT', 'name.alt.org.debian' => 'Expat', caption => 'MIT (Expat)', 'caption.alt.org.debian' => 'MIT/X11 (BSD like)', 'caption.alt.org.fedora' => 'MIT (Modern Style with sublicense)', tags => ['mit'], pat => qr/$P{to_mod_sublic} $P{sw}\b[^.]+\s+$P{retain_copr_perm_subst}/, }, mit_new_materials => { 'name.alt.org.debian' => 'MIT~Khronos', caption => 'MIT (Khronos)', tags => ['mit'], pat => qr/$P{perm_granted}, $P{free_charge}, $P{to_pers} $P{the_material}, $P{to_deal_mat}/, }, mit_old => { 'name.alt.org.debian' => 'MIT~old', 'name.alt.org.gentoo' => 'Old-MIT', caption => 'MIT (old)', tags => ['mit'], pat => qr/$P{perm_granted}, $P{free_agree_fee}/, }, mit_oldstyle => { 'name.alt.org.debian' => 'MIT~oldstyle', caption => 'MIT (Old Style)', description => <<'END', Origin: Possibly by Jamie Zawinski in 1993 for xscreensaver. END tags => ['mit'], pat => qr/documentation\. +No representations are made/, }, mit_oldstyle_disclaimer => { 'name.alt.org.debian' => 'MIT~oldstyle~disclaimer', caption => 'MIT (Old Style, legal disclaimer)', tags => ['mit'], pat => qr/supporting documentation\.\s+$P{asis_name_sw}/, }, mit_oldstyle_permission => { 'name.alt.org.debian' => 'MIT~oldstyle~permission', tags => ['mit'], pat => qr/$P{without_written_prior}\.\s+$P{asis_name_sw}/, }, mpl => { name => 'MPL', summary => 'Mozilla Public License', pat => qr/(?:$the?Mozilla Public License(?: \(\"?(?:https?:?\/\/mozilla.org\/)?MPL\"?\))?(?: (?:as )?published by $the{0,2}Mozilla Foundation)?|${the}MPL\b)/, }, ms_pl => { name => 'MS-PL', caption => 'Ms-PL', pat => qr/(?:$the?Microsoft Public License(?: \(Ms-PL\))?|${the}Ms-PL\b)/, }, ms_rl => { name => 'MS-RL', caption => 'Ms-RL', pat => qr/(?:$the?Microsoft Reciprocal License(?: \(Ms-RL\))?|${the}Ms-RL\b)/, }, ntp => { name => 'NTP', tags => ['mit'], pat => $P{asis_expr_warranty}, }, ntp_disclaimer => { 'name.alt.org.debian' => 'NTP~disclaimer', caption => 'NTP (legal disclaimer)', tags => ['mit'], pat => qr/$P{asis_expr_warranty}\.\s+$P{discl_name_warranties}/, }, openssl => { name => 'OpenSSL', summary => 'OpenSSL License', pat => qr/$P{redist_ack_this}/, }, postgresql => { name => 'PostgreSQL', tags => ['mit'], pat => qr/$P{permission_use_fee_agree}/i, }, public_domain => { name => 'public-domain', caption => 'Public domain', pat => qr/$the?public domain/, }, ofl => { name => 'OFL', 'caption.alt.org.debian' => 'SIL', pat => qr/$the?(?:SIL )?(?:OPEN FONT LICENSE|[Oo]pen [Ff]ont [Ll]icense)(?: \(OFL\))?/, }, python => { name => 'Python', caption => 'PSF', pat => qr/$the?Python Software Foundation License|PYTHON SOFTWARE FOUNDATION LICENSE/, }, qpl => { name => 'QPL', summary => '$the?Q Public License', pat => qr/(?:$the?Q Public License(?: \(QPL\))?$by_fsf?|${the}QPL\b)/, }, rpsl => { name => 'RPSL', caption => 'RealNetworks Public Source License', pat => qr/$the?RealNetworks Public Source License/, }, sgi_b => { name => 'SGI-B', caption => 'SGI Free Software License B', pat => qr/(?:$the?SGI (?:Free Software License|FREE SOFTWARE LICENSE) B(?: \(SGI-B\))?$by_fsf?|(?:SGI )?FreeB\b|${the}SGI-B\b)/, }, 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/, }, wtfpl => { name => 'WTFPL', caption => 'do What The Fuck you want to Public License', pat => qr/(?:$the?[Dd]o What The Fuck [Yy]ou [Ww]ant [Tt]o Public License|DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE(?: \(WTFPL\))?|${the}WTFPL\b)/, }, zlib => { name => 'Zlib', caption => 'zlib/libpng', tags => ['zlib'], pat => qr/$P{origin_sw_no_misrepresent}; $P{you_not_claim_wrote}\. $P{use_ack_nonreq}\. $P{altered_srcver_mark}\. $P{notice_no_alter}/, }, zlib_acknowledgement => { name => 'NUnit', 'name.alt.org.SPDF' => 'zlib-acknowledgement', tags => ['zlib'], pat => qr/$P{origin_sw_no_misrepresent}; $P{you_not_claim_wrote}\. $P{use_ack_req}\. Portions Copyright \S+ [\d-]+ Charlie Poole or Copyright \S+ [\d-]+ James W\. Newkirk, Michael C\. Two, Alexei A\. Vorontsov or Copyright \S+ [\d-]+ Philip A\. Craig $P{altered_srcver_mark}\. $P{notice_no_alter}/, }, ); =head2 Licensing traits Patterns each covering a single trait occuring in licenses. =over =item * clause_retention =item * clause_reproduction =item * clause_advertising =item * clause_advertising_always =item * clause_non_endorsement =item * fsf_unlimited =item * fsf_unlimited_retention =item * version_later =item * version_later_paragraph =item * version_later_postfix =item * version_number =item * version_prefix =back =cut $RE{'clause_retention'} = { caption => 'retention clause', tags => ['trait'], pat => qr/$P{retain_notice_cond_discl}/, }; $RE{'clause_reproduction'} = { caption => 'reproduction clause', tags => ['trait'], pat => qr/$P{repro_copr_cond_discl}/, }; $RE{'clause_advertising'} = { caption => 'advertising clause', tags => ['trait'], pat => qr/$P{ad_mat_ack_this}/, }; $RE{'clause_advertising_always'} = { caption => 'advertising clause (always)', tags => ['trait'], pat => qr/$P{redist_ack_this}/, }; $RE{'clause_non_endorsement'} = { caption => 'non-endorsement clause', tags => ['trait'], pat => qr/$P{nopromo_neither}/, }; $RE{'fsf_unlimited'} = { tags => ['trait'], pat => qr/$fsf_ul/, }; $RE{'fsf_unlimited_retention'} = { tags => ['trait'], pat => qr/$fsf_ullr/, }; $RE{'version_later'} = { caption => 'version "or later"', tags => ['trait'], pat => qr/,? $P{ver_later_postfix}|\. $P{ver_later_para}/, }; $RE{'version_later_paragraph'} = { caption => 'version "or later" postfix (paragraphs)', tags => ['trait'], pat => qr/$P{ver_later_para}/, }; $RE{'version_later_postfix'} = { caption => 'version "or later" (postfix)', tags => ['trait'], pat => qr/$P{ver_later_postfix}/, }; $RE{'version_number'} = { caption => 'version number', tags => ['trait'], pat => qr/$P{ver_number}/, }; $RE{'version_prefix'} = { caption => 'version prefix', tags => ['trait'], pat => qr/$P{ver_prefix}/, }; =head2 License combinations Patterns each covering a single combination of multiple licenses. =over =item * perl =back =cut $RE{'perl'} = { name => 'Artistic or GPL-1+', caption => 'Perl', tags => ['combo'], pat => qr/the same terms as $the?Perl(?: ?5)?( programming| language| system){0,3} itself/, }; =head2 Multiple licenses Patterns each covering multiple licenses. =over =item * bsd =item * gnu =item * mit =back =cut $RE{'bsd'} = { name => 'BSD~unspecified', caption => 'BSD (unspecified)', tags => ['group'], pat => qr/$P{repro_copr_cond_discl}(?:(?:[\d\W]+$P{ad_mat_ack_this}.*)?[\d\W]+$P{nopromo_neither})?/, }; $RE{'gnu'} = { name => 'AGPL/GPL/LGPL', summary => 'a GNU license (AGPL or GPL or LGPL)', tags => ['group'], pat => qr/(?:$RE{agpl}{pat}|$RE{gpl}{pat}|$RE{lgpl}{pat})/, }; $RE{'mit'} = { name => 'MIT~unspecified', caption => 'MIT (unspecified)', tags => ['group'], pat => qr/${the}MIT\b/, }; =encoding UTF-8 =head1 AUTHOR Jonas Smedegaard C<< >> =head1 COPYRIGHT AND LICENSE Copyright © 2016-2017 Jonas Smedegaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . =cut 1; Parts.pm000644001750001750 2417313144641316 24360 0ustar00jonasjonas000000000000Regexp-Pattern-License-v3.0.31/lib/Regexp/Pattern/Licensepackage Regexp::Pattern::License::Parts; use utf8; use strict; use warnings; =head1 NAME Regexp::Pattern::License::Parts - Regular expressions for licensing sub-parts =head1 VERSION Version v3.0.31 =cut our $VERSION = version->declare("v3.0.31"); =head STATUS This module is considered part of Regexp-Pattern-License's internals. =head DESCRIPTION This is not considered part of Regexp-Pattern-License's public API. It is a class of internally used patterns. =cut my $D = qr/[-–]/; # dash my $SD = qr/[ -–]/; # space or dash #my $I = qr/[iI\d\W]+/; # bullet or count my $I = qr/\W*\S\W*/; # bullet or count our %RE = ( # assets (original or derived) doc_mat_dist => { pat => qr/the documentation and\/or other materials provided with the distribution/ }, sw => { pat => qr/the Software/ }, the_material => { pat => qr/this software and associated documentation files \(the "?Material"?\)/ }, cp_sw => { pat => qr/all copies of the Software/ }, cp_sw_copr => { pat => qr/all copies of the Software and its Copyright notices/ }, cp_sw_doc => { pat => qr/all copies of the Software and its documentation/ }, sw_doc => { pat => qr/this software and its documentation/ }, the_sw => { pat => qr/this software and associated documentation files \(the "?Software"?\)/ }, # rights perm => { pat => qr/Permission/ }, any_purpose => { pat => qr/for any purpose/ }, to_deal_mat => { pat => qr/to deal in the Materials without restriction/ }, granted => { pat => qr/is hereby granted/ }, to_deal_the_sw_rights => { pat => qr/to deal in the Software without restriction, including without limitation the rights/ }, to_dist => { pat => qr/to use, copy, modify,? and distribute/ }, to_mod_sublic => { pat => qr/to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell copies of/ }, to_perm_pers => { caption => 'to permit person', pat => qr/to permit persons to whom the Software is furnished to do so/ }, # agents to_pers => { pat => qr/to any person obtaining a copy of/ }, # charges free_charge => { pat => qr/free of charge/ }, free_agree_fee => { pat => qr/without written agreement and without license or royalty fees/ }, nofee => { pat => qr/without fee/ }, # conditions subj_cond => { pat => qr/subject to the following conditions/ }, ack_doc_mat_pkg_use => { pat => qr/acknowledgment shall be given in the documentation, materials and software packages that this Software was used/ }, ack_doc_pkg_use => { pat => qr/acknowledgment shall be given in the documentation and software packages that this Software was used/ }, ack_pub_use_nosrc => { pat => qr/In addition publicly documented acknowledgment must be given that this software has been used if no source code of this software is made available publicly/ }, altered_srcver_mark => { pat => qr/$I?Altered source versions must be plainly marked as such,? and must not be misrepresented as being the original software/ }, altered_ver_mark => { pat => qr/$I?Altered versions must be plainly marked as such,? and must not be misrepresented as being the original source/ }, change_redist_share => { pat => qr/If you change this software and redistribute parts or all of it in any form, you must make the source code of the altered version of this software available/ }, incl => { pat => qr/shall be included/ }, name => { pat => qr/[Tt]he names?(?: \S+){1,15}/ }, namenot => { pat => qr/[Tt]he names?(?: \S+){1,15} (?:may|must|shall) not/ }, neithername => { pat => qr/Neither the (?:names?(?: \S+){1,15}|authors?) nor the names of(?: (?:its|their|other|any))? contributors may/ }, notice_no_alter => { pat => qr/$I?This notice may not be removed or altered/ }, notice_no_alter_any => { pat => qr/$I?This notice may not be removed or altered from any source distribution/ }, copr_no_alter => { pat => qr/$I?This Copyright notice may not be removed or altered from any source or altered source distribution/ }, license_not_lib => { pat => qr/This License does not apply to any software that links to the libraries provided by this software \(statically or dynamically\), but only to the software provided/, }, redist_bin_repro => { pat => qr/Redistributions in binary form must reproduce/ }, src_no_relicense => { pat => qr/$I?Source versions may not be "?relicensed"? under a different license without my explicitly written permission/ }, used_endorse_deriv => { pat => qr/be used to endorse or promote products derived from this software/ }, used_ad => { pat => qr/be used in advertising/ }, used_ad_dist => { pat => qr/be used in (?:any )?advertising or publicity pertaining to distribution of the software/ }, without_prior_written => { pat => qr/without specific prior written permission/ }, without_written => { pat => qr/without specific written permission/ }, without_written_prior => { pat => qr/without specific, written prior permission/ }, origin_sw_no_misrepresent => { pat => qr/$I?The origin of this software must not be misrepresented/ }, origin_src_no_misrepresent => { pat => qr/$I?The origin of this source code must not be misrepresented/ }, you_not_claim_wrote => { pat => qr/you must not claim that you wrote the original software/ }, use_ack_nonreq => { pat => qr/If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required/ }, use_ack_req => { pat => qr/If you use this software in a product, an acknowledgment \(see the following\) in the product documentation is required/ }, # disclaimers asis_expr_warranty => { pat => qr/without express or implied warranty/ }, asis_name_sw => { pat => qr/(?:\S+ ){1,15}PROVIDES? THIS SOFTWARE/ }, asis_sw_by_name => { pat => qr/THIS SOFTWARE IS PROVIDED BY/ }, asis_sw_name_discl => { pat => qr/THE SOFTWARE IS PROVIDED \W*AS\W+IS\W*(?:,?|AND) (?:\S+ ){1,15}DISCLAIMS/ }, asis_sw_warranty => { pat => qr/THE SOFTWARE IS PROVIDED \W*AS\W+IS\W* WITHOUT WARRANTY/ }, # versioning ver_later_para => { pat => qr/Later versions are permitted/ }, ver_later_postfix => { pat => qr/(?:and|or)(?: ?\(?at your option\)?)?(?: any)? (?:later|newer)(?: version)?/ }, ver_number => { pat => qr/\d(?:\.\d+)*/ }, ver_prefix => { pat => qr/[Vv](?:ersion |ERSION |\.? ?)/ }, # Creative Commons cc => { pat => qr/(?:Creative Commons|CC)/ }, cc_by => { pat => qr/(?:Attribution)/ }, cc_cc0 => { pat => qr/(?:CC0|Zero|0)/ }, cc_nc => { pat => qr/(?:Non$SD?Commercial)/ }, cc_nd => { pat => qr/(?:No$SD?Deriv(?:ative)?s)/ }, cc_sa => { pat => qr/(?:Share$SD?Alike)/ }, cc_sp => { pat => qr/(?:Sampling$SD?Plus)/ }, cc_url => { pat => qr"(?:(?:https?:?)?(?://)?creativecommons.org/licenses/)" }, cc_url_pd => { pat => qr"(?:(?:https?:?)?(?://)?creativecommons.org/publicdomain/)" }, # texts ack_name => { pat => qr/the following acknowledge?ment\W+This product includes software developed by/ }, copr => { pat => qr/[Tt]he above copyright notice/ }, copr_perm => { pat => qr/(?:both t|t|T)(?:hat|he|he above) copyright notice(?:s|\(s\))? and this permission notice/ }, copr_perm_warr => { pat => qr/(?:both t|t|T)(?:hat|he|he above) copyright notice(?:s|\(s\))? and this permission notice and warranty disclaimer/ }, copr_cond_discl => { pat => qr/the above copyright notice, this list of conditions and the following disclaimer/ }, # combinations discl_name_warranties => { pat => qr/(?:\S+ ){1,15}DISCLAIMS? ALL WARRANTIES/ }, permission_use_fee_agree => { pat => qr/and without a written agreement/ }, ); $RE{perm_granted}{pat} = qr/$RE{perm}{pat} $RE{granted}{pat}/; $RE{ad_mat_ack_this}{pat} = qr/All advertising materials mentioning features or use of this software must display $RE{ack_name}{pat}/; $RE{note_copr_perm}{pat} = qr/provided that$I? $RE{copr_perm}{pat} appear in all copies/; $RE{repro_copr_perm_warr_appear_doc}{pat} = qr/$RE{copr_perm_warr}{pat} appear in supporting documentation/; $RE{note_marketing}{pat} = qr/$RE{incl}{pat} in $RE{cp_sw}{pat}, its documentation and marketing/; $RE{retain_copr_appear}{pat} = qr/provided that $RE{copr}{pat} appears? in all copies/; $RE{retain_copr_perm_subst}{pat} = qr/$RE{copr_perm}{pat} $RE{incl}{pat} in all copies or substantial portions of the Software/; $RE{retain_copr_perm_sw_copr}{pat} = qr/$RE{copr_perm}{pat} $RE{incl}{pat} in $RE{cp_sw_copr}{pat}/; $RE{retain_copr_perm_sw_doc}{pat} = qr/$RE{copr_perm}{pat} $RE{incl}{pat} in $RE{cp_sw_doc}{pat}/; $RE{retain_notice_cond_discl}{pat} = qr/Redistributions of source code must retain $RE{copr_cond_discl}{pat}/; $RE{nopromo_except}{pat} = qr/Except as contained in this notice, $RE{namenot}{pat} $RE{used_ad}{pat}/; $RE{nopromo_name_written}{pat} = qr/$RE{name}{pat} not $RE{used_ad_dist}{pat} $RE{without_written}{pat}/; $RE{nopromo_name_written_prior}{pat} = qr/$RE{name}{pat} not $RE{used_ad_dist}{pat} $RE{without_written_prior}{pat}/; $RE{repro_copr_cond_discl}{pat} = qr/$RE{redist_bin_repro}{pat} $RE{copr_cond_discl}{pat} in $RE{doc_mat_dist}{pat}/; $RE{repro_copr_perm_appear_doc}{pat} = qr/$RE{copr_perm}{pat} appear in supporting documentation/; $RE{nopromo_neither}{pat} = qr/(?:$RE{neithername}{pat}|$RE{namenot}{pat}) $RE{used_endorse_deriv}{pat} $RE{without_prior_written}{pat}/; $RE{redist_ack_this}{pat} = qr/Redistributions of any form whatsoever must retain $RE{ack_name}{pat}/; =encoding UTF-8 =head1 AUTHOR Jonas Smedegaard C<< >> =head1 COPYRIGHT AND LICENSE Copyright © 2016-2017 Jonas Smedegaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . =cut 1;