Acme-Licence

 view release on metacpan or  search on metacpan

lib/Acme/Licence.pm  view on Meta::CPAN


If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

  8. If the distribution and/or use of the Program is restricted in

lib/Acme/Licence.pm  view on Meta::CPAN

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.

		     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
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

lib/Acme/Licence.pm  view on Meta::CPAN

8.	Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embedded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial di...



9.	The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 



10.	THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 
},
	null => 'this program is in the public domain'
);

sub import {
	my $class = shift;
	my %params = @_;
	my $self = {};

	if(ref($params{mylicence})) {
		my %mylicence = %{$params{mylicence}};
		if($mylicence{text} && $mylicence{name}) {

lib/Acme/Licence.pm  view on Meta::CPAN

This module makes that easy.  It has three pre-defined licences, and enables
you to write your own.  It also ensures that the licence is always easily
accessible to your users from the command-line of your program, by passing
the C<--licence> parameter.

=head1 CONFIGURATION

To configure the module to use your licence, you pass parameters when you
C<use> the module.  Either pass a parameter C<licence>, to use one of the
pre-defined licences (the GPL (C<gpl>), the
Artistic licence (C<artistic>), or put the code in the public domain
(C<null>)),
or pass the C<mylicence> parameter, with a reference to an anonymous hash
which defines the name of your licence and the text of your licence.  The
keys for those in the anonymous hash are, predictably, C<name> and C<text>.

=head1 AUTHOR

David Cantrell (david@cantrell.org.uk)

=cut



( run in 0.301 second using v1.01-cache-2.11-cpan-64827b87656 )