[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

14/21: gnu: Add Import-Into.

From: Eric Bavier
Subject: 14/21: gnu: Add Import-Into.
Date: Fri, 13 Mar 2015 18:51:57 +0000

bavier pushed a commit to branch master
in repository guix.

commit 7c68c033f312a13c65531f26eef09252d1e19524
Author: Eric Bavier <address@hidden>
Date:   Fri Mar 13 11:34:11 2015 -0500

    gnu: Add Import-Into.
    * gnu/packages/perl.scm (perl-import-into): New variable.
 gnu/packages/perl.scm |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 78d6bc9..5cb595c 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -1491,6 +1491,31 @@ merged.")
 that may contain multiple values per key, inspired by MultiDict of WebOb.")
     (license (package-license perl))))
+(define-public perl-import-into
+  (package
+    (name "perl-import-into")
+    (version "1.002004")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
+                           "Import-Into-" version ".tar.gz"))
+       (sha256
+        (base32
+         "110hifk3cj14lxgjq2vaa2qfja21gll4lpn8vbimy0gzqadjbjyy"))))
+    (build-system perl-build-system)
+    (propagated-inputs
+     `(("perl-module-runtime" ,perl-module-runtime)))
+    (home-page "";)
+    (synopsis "Import packages into other packages")
+    (description "Writing exporters is a pain.  Some use Exporter, some use
+Sub::Exporter, some use Moose::Exporter, some use Exporter::Declare ... and
+some things are pragmas.  Exporting on someone else's behalf is harder.  The
+exporters don't provide a consistent API for this, and pragmas need to have
+their import method called directly, since they effect the current unit of
+compilation.  Import::Into provides global methods to make this painless.")
+    (license (package-license perl))))
 (define-public perl-inc-latest
     (name "perl-inc-latest")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]