aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2018-01-28 21:12:30 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2018-02-24 20:01:31 +0300
commitf09cb93e3a2310f7726cb98fa5679c1a8483c39f (patch)
treeac832818499ef0eae90d1d2870c63cd7790ff0a8
parent5a227e7c5c2054af036d95895c92dd56ec88338d (diff)
downloadpatches-f09cb93e3a2310f7726cb98fa5679c1a8483c39f.tar
patches-f09cb93e3a2310f7726cb98fa5679c1a8483c39f.tar.gz
gnu: Add licensecheck.
* gnu/packages/license.scm (licensecheck): New public variable.
-rw-r--r--gnu/packages/license.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/license.scm b/gnu/packages/license.scm
index 3933b31d85..2ef2108df2 100644
--- a/gnu/packages/license.scm
+++ b/gnu/packages/license.scm
@@ -103,3 +103,58 @@ 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.33")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/J/JO/JONASS/App-Licensecheck-"
+ "v" version ".tar.gz"))
+ (sha256
+ (base32
+ "0wydxb2jks1k3bxkcp7p0pazh5v3awbbcf6haplvwzkkayszhgs4"))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-regexp-pattern" ,perl-regexp-pattern)
+ ("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))))