The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CPANPLUS::Dist::Debora::License - Read license files

VERSION

version 0.012

SYNOPSIS

  use CPANPLUS::Dist::Debora::License;

  my $license = CPANPLUS::Dist::Debora::License->new({
      package => $package,
      holder  => $holder,
      year    => $year,
  });

  print $license->license;

DESCRIPTION

This Software::License subclass reads license texts from files and Pod documents.

SUBROUTINES/METHODS

new

  my $license = CPANPLUS::Dist::Debora::License->new({
      package => $package,
      holder  => $holder,
  });

Creates a new object. The CPANPLUS::Dist::Debora::Package object parameter and the copyright holder are mandatory.

name

Returns "Unknown license".

url

Returns the undefined value.

meta_name

Returns "restrictive".

meta2_name

Returns "restricted".

spdx_expression

Returns a short license name or "Unknown".

license

Returns the license text or the empty string.

DIAGNOSTICS

None.

CONFIGURATION AND ENVIRONMENT

None.

DEPENDENCIES

Requires the module Software::License from CPAN.

INCOMPATIBILITIES

None.

BUGS AND LIMITATIONS

None known.

AUTHOR

Andreas Vögele <voegelas@cpan.org>

LICENSE AND COPYRIGHT

Copyright (C) 2023 Andreas Vögele

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.