all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: 30274@debbugs.gnu.org
Subject: [bug#30274] [PATCH 21/21] gnu: Add licensecheck.
Date: Sun, 28 Jan 2018 21:48:28 +0300	[thread overview]
Message-ID: <20180128184828.32395-21-go.wigust@gmail.com> (raw)
In-Reply-To: <20180128184828.32395-1-go.wigust@gmail.com>

* 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)
+       ("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

  parent reply	other threads:[~2018-01-28 18:50 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-28 18:44 [bug#30274] [PATCH 00/21] gnu: Add licensecheck (license checker for source files) Oleg Pykhalov
2018-01-28 18:48 ` [bug#30274] [PATCH 01/21] gnu: Add perl-test-filename Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 02/21] gnu: Add perl-path-iterator-rule Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 03/21] gnu: Add perl-pod-constants Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 04/21] gnu: Add perl-regexp-pattern Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 05/21] gnu: Add perl-regexp-pattern-license Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 06/21] gnu: Add perl-number-range Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 07/21] gnu: Add perl-string-copyright Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 08/21] gnu: Add perl-string-escape Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 09/21] gnu: Add perl-test-failwarnings Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 10/21] gnu: Add perl-data-section Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 11/21] gnu: Add perl-software-license Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 12/21] gnu: Add perl-extutils-depends Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 13/21] gnu: Add perl-b-hooks-op-check Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 14/21] gnu: Add perl-bareword-filehandles Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 15/21] gnu: Add perl-indirect Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 16/21] gnu: Add perl-lexical-sealrequirehints Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 17/21] gnu: Add perl-multidimensional Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 18/21] gnu: Add perl-test-roo Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 19/21] gnu: Add perl-universal-require Oleg Pykhalov
2018-01-28 18:48   ` [bug#30274] [PATCH 20/21] gnu: Add perl-strictures-2 Oleg Pykhalov
2018-01-28 18:48   ` Oleg Pykhalov [this message]
2018-01-29  5:09     ` [bug#30274] [PATCH 21/21] gnu: Add licensecheck Oleg Pykhalov
2018-01-29 17:20     ` [bug#30274] [PATCH 00/24] gnu: Add licensecheck (license checker for source files) Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 01/24] gnu: Add perl-test-filename Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 02/24] gnu: Add perl-path-iterator-rule Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 03/24] gnu: Add perl-pod-constants Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 04/24] gnu: Add perl-regexp-pattern Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 05/24] gnu: Add perl-regexp-pattern-license Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 06/24] gnu: Add perl-number-range Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 07/24] gnu: Add perl-string-copyright Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 08/24] gnu: Add perl-string-escape Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 09/24] gnu: Add perl-test-failwarnings Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 10/24] gnu: Add perl-data-section Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 11/24] gnu: Add perl-software-license Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 12/24] gnu: Add perl-extutils-depends Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 13/24] gnu: Add perl-b-hooks-op-check Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 14/24] gnu: Add perl-bareword-filehandles Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 15/24] gnu: Add perl-indirect Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 16/24] gnu: Add perl-lexical-sealrequirehints Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 17/24] gnu: Add perl-multidimensional Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 18/24] gnu: Add perl-test-roo Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 19/24] gnu: Add perl-universal-require Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 20/24] gnu: Add perl-strictures-2 Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 21/24] gnu: Add perl-role-tiny-2 Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 22/24] gnu: Add perl-sub-quote Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 23/24] gnu: Add perl-moo-2 Oleg Pykhalov
2018-01-29 17:20       ` [bug#30274] [PATCH 24/24] gnu: Add licensecheck Oleg Pykhalov
2018-01-28 19:22 ` [bug#30274] [PATCH 00/21] gnu: Add licensecheck (license checker for source files) Oleg Pykhalov
2018-02-22 14:18   ` Marius Bakke
2018-02-22 20:14     ` Oleg Pykhalov
2018-02-23 10:49       ` Marius Bakke
2018-02-24 17:23         ` bug#30274: " Oleg Pykhalov
2018-02-24 18:38           ` [bug#30274] " Marius Bakke
2018-02-28  2:12             ` bug#30641: Make 'guix refresh' to ignore "v" prefix in CPAN updater Oleg Pykhalov
2018-03-01 13:58               ` Ludovic Courtès
2018-02-28  2:14             ` [bug#30274] [PATCH 00/21] gnu: Add licensecheck (license checker for source files) Oleg Pykhalov
2018-02-22 14:14 ` Marius Bakke
2018-02-22 20:08   ` Oleg Pykhalov
2018-02-23 10:51     ` Marius Bakke
2018-02-24 17:20       ` Oleg Pykhalov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180128184828.32395-21-go.wigust@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=30274@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.