[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25835: [PATCH 03/19] gnu: Add perl-ev.
From: |
Marius Bakke |
Subject: |
bug#25835: [PATCH 03/19] gnu: Add perl-ev. |
Date: |
Wed, 22 Feb 2017 16:04:04 +0100 |
* 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 e552a4ee3..8aca5daf8 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))))
--
2.11.1
- bug#25835: [PATCH 01/19] gnu: Add perl-async-interrupt., (continued)
- bug#25835: [PATCH 01/19] gnu: Add perl-async-interrupt., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 05/19] gnu: Add perl-cwd-guard., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 02/19] gnu: Add perl-canary-stability., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 09/19] gnu: Add perl-xml-tokeparser., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 12/19] gnu: Add perl-extutils-depends., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 07/19] gnu: Add perl-mouse., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 04/19] gnu: Add perl-devel-checkcompiler., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 10/19] gnu: Add perl-xml-descent., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 17/19] gnu: Add perl-anyevent., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 08/19] gnu: Add perl-x11-xcb., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 03/19] gnu: Add perl-ev.,
Marius Bakke <=
- bug#25835: [PATCH 11/19] gnu: Add perl-test-number-delta., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 06/19] gnu: Add perl-module-build-xsutil., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 18/19] gnu: Add perl-anyevent-i3., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 19/19] gnu: i3: Clarify test comment., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 13/19] gnu: Add perl-extutils-pkgconfig., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 15/19] gnu: Add perl-any-moose., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 14/19] gnu: Add perl-xs-object-magic., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 16/19] gnu: Add perl-mousex-nativetraits., Marius Bakke, 2017/02/22
- bug#25835: [PATCH 00/19] gnu: Add perl-anyevent-i3., Kei Kebreau, 2017/02/25