[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/10: gnu: Add ocaml-pcre.
From: |
julien lepiller |
Subject: |
05/10: gnu: Add ocaml-pcre. |
Date: |
Tue, 31 Jan 2017 20:36:12 +0000 (UTC) |
roptat pushed a commit to branch master
in repository guix.
commit f8a12de1cbd80c4e041c69e325621bd7837a478b
Author: Julien Lepiller <address@hidden>
Date: Fri Dec 30 12:46:48 2016 +0100
gnu: Add ocaml-pcre.
* gnu/packages/ocaml.scm (ocaml-pcre): New variable.
---
gnu/packages/ocaml.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index a904a86..ca5c8e3 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -40,6 +40,7 @@
#:use-module (gnu packages m4)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages ncurses)
+ #:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -1825,3 +1826,38 @@ many additional enhancements, including:
every compliant installation of OCaml and organize these libraries into a
hierarchy of modules.")
(license license:lgpl2.1+)))
+
+(define-public ocaml-pcre
+ (package
+ (name "ocaml-pcre")
+ (version "7.2.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"https://github.com/mmottl/pcre-ocaml/archive"
+ "/v" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0rj6dw79px4sj2kq0iss2nzq3rnsn9wivvc0f44wa1mppr6njfb3"))))
+ (build-system ocaml-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'link-lib
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
+ (lib (string-append out "/lib/ocaml/site-lib/pcre")))
+ (mkdir-p stubs)
+ (symlink (string-append lib "/dllpcre_stubs.so")
+ (string-append stubs "/dllpcre_stubs.so"))))))))
+ (native-inputs
+ `(("batteries" ,ocaml-batteries)
+ ("pcre:bin" ,pcre "bin")))
+ (propagated-inputs `(("pcre" ,pcre)))
+ (home-page "https://mmottl.github.io/pcre-ocaml")
+ (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
+ (description "Pcre-ocaml offers library functions for string pattern
+matching and substitution, similar to the functionality offered by the Perl
+language.")
+ (license license:lgpl2.1+))); with the OCaml link exception
- branch master updated (59ae241 -> f5c8cf3), julien lepiller, 2017/01/31
- 05/10: gnu: Add ocaml-pcre.,
julien lepiller <=
- 06/10: gnu: Add ocaml-expect., julien lepiller, 2017/01/31
- 07/10: gnu: Add ocaml-fileutils., julien lepiller, 2017/01/31
- 09/10: gnu: Add ocaml-js-build-tools., julien lepiller, 2017/01/31
- 03/10: gnu: Add omake., julien lepiller, 2017/01/31
- 01/10: gnu: Add ocaml-base64., julien lepiller, 2017/01/31
- 08/10: gnu: Add ocaml-oasis., julien lepiller, 2017/01/31
- 10/10: gnu: Add ocaml-bin-prot., julien lepiller, 2017/01/31
- 02/10: gnu: Add ocamlify., julien lepiller, 2017/01/31
- 04/10: gnu: Add ocaml-batteries., julien lepiller, 2017/01/31