[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/19: gnu: Add perl-ev.
From: |
Marius Bakke |
Subject: |
04/19: gnu: Add perl-ev. |
Date: |
Thu, 2 Mar 2017 12:39:52 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit ad8f8e759575b77b5f589654246b786356b9bb0a
Author: Marius Bakke <address@hidden>
Date: Fri Dec 9 18:13:58 2016 +0100
gnu: Add perl-ev.
* gnu/packages/libevent.scm (perl-ev): New variable.
---
gnu/packages/libevent.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/libevent.scm b/gnu/packages/libevent.scm
index e552a4e..8aca5da 100644
--- a/gnu/packages/libevent.scm
+++ b/gnu/packages/libevent.scm
@@ -26,9 +26,11 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system perl)
#:use-module (gnu packages base)
#:use-module (gnu packages python)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config))
(define-public libevent
@@ -149,3 +151,44 @@ resolution, asynchronous file system operations, and
threading primitives.")
;; A few files fall under other non-copyleft licenses; see 'LICENSE' for
;; details.
(license x11)))
+
+(define-public perl-ev
+ (package
+ (name "perl-ev")
+ (version "4.22")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://cpan/authors/id/M/ML/MLEHMANN/EV-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "14d9115q8f2ca2q3vbcalm55zqsbx8xjq5aj098laj9f9rrzirra"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Drop bundled libev.
+ (delete-file-recursively "libev")
+ #t))))
+ (build-system perl-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'unpack-libev
+ ;; This package requires the libev *sources* in order
+ ;; to build. Unpack system libev here...
+ (lambda* (#:key inputs #:allow-other-keys)
+ (mkdir "./libev")
+ (zero? (system* "tar" "-xf" (assoc-ref inputs "libev-source")
+ "-C" "./libev" "--strip-components=1")))))))
+ (native-inputs
+ `(("libev-source" ,(package-source libev))
+ ("perl-canary-stability" ,perl-canary-stability)))
+ (propagated-inputs
+ `(("perl-common-sense" ,perl-common-sense)))
+ (home-page "http://search.cpan.org/dist/EV")
+ (synopsis "Perl interface to libev")
+ (description
+ "This module provides an interface to @code{libev}, a high performance
+full-featured event loop. It can be used through the @code{AnyEvent} module
+and still be faster than other event loops currently supported in Perl.")
+ (license (package-license perl))))
- branch master updated (479c427 -> 3e7cb70), Marius Bakke, 2017/03/02
- 03/19: gnu: Add perl-canary-stability., Marius Bakke, 2017/03/02
- 01/19: gnu: leveldb: Update to 1.20., Marius Bakke, 2017/03/02
- 05/19: gnu: Add perl-devel-checkcompiler., Marius Bakke, 2017/03/02
- 04/19: gnu: Add perl-ev.,
Marius Bakke <=
- 07/19: gnu: Add perl-module-build-xsutil., Marius Bakke, 2017/03/02
- 02/19: gnu: Add perl-async-interrupt., Marius Bakke, 2017/03/02
- 06/19: gnu: Add perl-cwd-guard., Marius Bakke, 2017/03/02
- 08/19: gnu: Add perl-mouse., Marius Bakke, 2017/03/02
- 14/19: gnu: Add perl-xs-object-magic., Marius Bakke, 2017/03/02
- 18/19: gnu: Add perl-anyevent., Marius Bakke, 2017/03/02
- 09/19: gnu: Add perl-xml-tokeparser., Marius Bakke, 2017/03/02
- 10/19: gnu: Add perl-xml-descent., Marius Bakke, 2017/03/02
- 15/19: gnu: Add perl-any-moose., Marius Bakke, 2017/03/02
- 16/19: gnu: Add perl-mousex-nativetraits., Marius Bakke, 2017/03/02