Dist::Z...rovider(3)
π Dist::Zilla::Role::LicenseProvider π
okay bestie, so this is a page from the User Contributed Perl Documentation β it's the manual for Dist::Zilla::Role::LicenseProvider, and we're about to vibe through the whole thing together, no skips, no cap β¨
πΈ NAME πΈ
Dist::Zilla::Role::LicenseProvider β literally just: something that provides a license for the dist. that's the whole job. that's the assignment. π
β VERSION β
version 6.040 π
π¦ DESCRIPTION π¦
so here's the tea β β any plugin that takes on this role must provide a provide_license method. bestie, you have to have it, there's no way around it. it gets called at the exact moment the dist's license is being set. main character moment fr.
and okay, careful now, because this next part matters π β if a LicenseProvider offers up a license but one has already been set, an exception will be raised. so don't be greedy, one license at a time please π
but also: if provides_license returns undef, it will be ignored. so if you've got nothing to say, that's chill, it's just skipped. (yes, it says provides_license there, we're keeping the original spelling, don't come for me π)
π§ PERL VERSION π§
this module should work on any version of perl still receiving updates from the Perl 5 Porters. what does that mean in human? it means any version of perl released in the last two to three years. so like, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38. see the vibe? π
however β and this is the important disclaimer bestie β even though it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. the version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. periodt. so don't count on it going backwards ππ
π₯ REQUIRED METHODS π₯
π "provide_license({ copyright_holder => $holder, copyright_year => $year })" π
generate license object. the returned object should be an instance of Software::License. iconic behavior only, please β¨
plugins are responsible for injecting $copyright_holder and $copyright_year arguments into the license if these arguments are defined. so like, if they're there, do your thing π«Ά
β οΈ note that$copyright_yearmay not be a single integer. the user might have configured a range like"2008 - 2012", and any$this_yeartoken in the configured year has already been replaced with the current year. so don't assume β read the whole string, bestie π
π AUTHOR π
Ricardo SIGNES π <cpan@semiotic.systems>
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2026 by Ricardo SIGNES.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay that's the whole page, you ate it up, no crumbs left πβ¨
this was perl v5.42.3, dated 2026-10-19 β catch you on the next manpage, bestie πππ¦
π¦ where this page comes from
- fedora 44: perl-Dist-Zilla 6.040-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms