From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egD9A-0003Qv-5O for guix-patches@gnu.org; Mon, 29 Jan 2018 12:23:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egD98-00011u-FR for guix-patches@gnu.org; Mon, 29 Jan 2018 12:23:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:40269) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egD98-00011n-AZ for guix-patches@gnu.org; Mon, 29 Jan 2018 12:23:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1egD98-00005x-4p for guix-patches@gnu.org; Mon, 29 Jan 2018 12:23:06 -0500 Subject: [bug#30274] [PATCH 24/24] gnu: Add licensecheck. Resent-Message-ID: From: Oleg Pykhalov Date: Mon, 29 Jan 2018 20:20:36 +0300 Message-Id: <20180129172036.21133-25-go.wigust@gmail.com> In-Reply-To: <20180129172036.21133-1-go.wigust@gmail.com> References: <20180128184828.32395-21-go.wigust@gmail.com> <20180129172036.21133-1-go.wigust@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30274@debbugs.gnu.org * gnu/packages/license.scm (licensecheck): New public variable. --- gnu/packages/license.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/license.scm b/gnu/packages/license.scm index 774654f48..42db64496 100644 --- a/gnu/packages/license.scm +++ b/gnu/packages/license.scm @@ -103,3 +103,57 @@ 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 "v3.0.31") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/J/JO/JONASS/App-Licensecheck-" + 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) + ("perl-sub-quote" ,perl-sub-quote))) + (propagated-inputs + `(("perl-getopt-long-descriptive" ,perl-getopt-long-descriptive) + ("perl-moo" ,perl-moo-2) + ("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) + ("perl-string-copyright" ,perl-string-copyright) + ("perl-string-escape" ,perl-string-escape) + ("perl-try-tiny" ,perl-try-tiny) + ("perl-module-runtime" ,perl-module-runtime))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (perllib (string-append out "/lib/perl5/site_perl/" + ,(package-version perl)))) + (wrap-program (string-append out "/bin/licensecheck") + `("PERL5LIB" ":" + prefix (,(string-append perllib ":" (getenv "PERL5LIB"))))) + #t)))))) + (home-page "http://search.cpan.org/dist/App-Licensecheck/") + (synopsis "License checker for source files") + (description "Licensecheck attempts to determine the license that applies +to each file passed to it, by searching the start of the file for text +belonging to various licenses.") + (license (package-license perl)))) -- 2.15.1