diff --git a/Changes b/Changes index 24418b0..885f838 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Software-License + Add the DWTFYWWI or the "Do Whatever The Fuck You Want With + It" license. A humorous public domain-like license. + 0.016 2010-05-01 added the None and CC0_1_0 licenses for the far ends of the spectrum (thanks to Brian Phillips for None) diff --git a/lib/Software/License/DWTFYWWI.pm b/lib/Software/License/DWTFYWWI.pm new file mode 100644 index 0000000..4423ae9 --- /dev/null +++ b/lib/Software/License/DWTFYWWI.pm @@ -0,0 +1,53 @@ +use strict; +use warnings; +package Software::License::DWTFYWWI; +use base 'Software::License'; + +=head1 NAME + +Software::License::DWTFYWWI - The "Do Whatever The Fuck You Want With It" license + +=head1 DESCRIPTION + +The DWTFYWWI license is a way to effectively place your software into +the public domain, but in a humorous way. + +If you want something with more legal backing you might want to use +the L<"public domain"-like CC0 license|Software::License::CC0_1_0> +instead, or maybe L. + +=head1 AUTHOR + +The author of this package and of the DWTFYWWI license itself is +Evar ArnfjErE Bjarmason + +=cut + +sub name { q(DWTFYWWI) } +sub url { q{http://github.com/avar/DWTFYWWI/raw/master/DWTFYWWI} } + +sub meta_name { 'unrestricted' } + +1; +__DATA__ +__NOTICE__ +{{$self->holder}} grants everyone permission to do whatever the fuck +they want with the software, whatever the fuck that may be. +__LICENSE__ + DWTFYWWI LICENSE + Version 1, January 2006 + + Copyright (C) 2006 Ævar Arnfjörð Bjarmason + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the DWTFYWWI or Do +Whatever The Fuck You Want With It license is intended to guarantee +your freedom to share and change the software--to make sure the +software is free for all its users. + + DWTFYWWI LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +0. The author grants everyone permission to do whatever the fuck they +want with the software, whatever the fuck that may be. diff --git a/t/dwtfywwi.t b/t/dwtfywwi.t new file mode 100644 index 0000000..65fff6b --- /dev/null +++ b/t/dwtfywwi.t @@ -0,0 +1,10 @@ +#!perl +use strict; +use warnings; +use Test::More tests => 4; +use Software::License::DWTFYWWI; + +is(scalar(Software::License::DWTFYWWI->name), "DWTFYWWI", "DWTFYWWI is called DWTFYWWI"); +like(scalar(Software::License::DWTFYWWI->url), qr/github\.com/, "DWTFYWWI is hosted on GitHub"); +is(scalar(Software::License::DWTFYWWI->meta_name), "unrestricted", "DWTFYWWI is unrestricted"); +like(scalar(Software::License::DWTFYWWI->license), qr/whatever the fuck that may be/, "FREEDOM!");