Subject: Re: [bug#30274] [PATCH 21/21] gnu: Add licensecheck.

From: Oleg Pykhalov <[email-masked]>
Date: Mon, 29 Jan 2018 08:09:34 +0300

Oleg Pykhalov <[email-masked]> writes:

> * gnu/packages/license.scm (licensecheck): New public variable.
> ---
>  gnu/packages/license.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 53 insertions(+)
>
> diff --git a/gnu/packages/license.scm b/gnu/packages/license.scm
> index 37b5c7388..ca1183f46 100644
> --- a/gnu/packages/license.scm
> +++ b/gnu/packages/license.scm
> @@ -103,3 +103,56 @@ statements and serializes in normalized format.")
>      (synopsis "Templated software licenses")
>      (description "This package provides templated software licenses.")
>      (license (package-license perl))))
> +
> +(define-public licensecheck
> +  (package
> +    (name "licensecheck")
> +    (version "3.0.31")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "mirror://cpan/authors/id/J/JO/JONASS/App-Licensecheck-"
> +                    "v" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "12970mfcnqjil1p09s137nvqxjiqsjypivby8yhp163wl06i2s51"))))
> +    (build-system perl-build-system)
> +    (native-inputs
> +     `(("perl-software-license" ,perl-software-license)
> +       ("perl-test-requires" ,perl-test-requires)
> +       ("perl-test-roo" ,perl-test-roo)
> +       ("perl-test-script" ,perl-test-script)
> +       ("perl-universal-require" ,perl-universal-require)
> +       ("perl-number-range" ,perl-number-range)))
> +    (propagated-inputs
> +     `(("perl-getopt-long-descriptive" ,perl-getopt-long-descriptive)
> +       ("perl-moo" ,perl-moo)
> +       ("perl-namespace-clean" ,perl-namespace-clean)
> +       ("perl-path-iterator-rule" ,perl-path-iterator-rule)
> +       ("perl-path-tiny" ,perl-path-tiny)
> +       ("perl-pod-constants" ,perl-pod-constants)
> +       ("perl-regexp-pattern-license" ,perl-regexp-pattern-license)
> +       ("perl-sort-key" ,perl-sort-key)
> +       ("perl-strictures" ,perl-strictures-2)

I'll try to build perl-moo version 2 which should be build with
perl-strictures version 2 in the native-inputs, so we could install
licensecheck to a user's profile.

[...]

Oleg.