summaryrefslogtreecommitdiff
path: root/gnu/packages/chez.scm
diff options
context:
space:
mode:
authorFederico Beffa <beffa@fbengineering.ch>2016-10-16 16:10:31 +0200
committerFederico Beffa <beffa@fbengineering.ch>2016-10-19 08:44:11 +0200
commit87d6c9ef8a09556a4af678fa158decf28732b631 (patch)
tree6d5a0544017ed7a03d8d66c80fdd90aca5a06401 /gnu/packages/chez.scm
parent387541907fbd948cafad300b48dc8cc15cb1a6c3 (diff)
downloadpatches-87d6c9ef8a09556a4af678fa158decf28732b631.tar
patches-87d6c9ef8a09556a4af678fa158decf28732b631.tar.gz
gnu: Add chez-irregex.
* gnu/packages/chez.scm (chez-irregex): New variable.
Diffstat (limited to 'gnu/packages/chez.scm')
-rw-r--r--gnu/packages/chez.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm
index 366923b6a0..1574431084 100644
--- a/gnu/packages/chez.scm
+++ b/gnu/packages/chez.scm
@@ -399,3 +399,36 @@ Chez Scheme.")
@code{match} package by Andrew Wright, written in fully portable
@code{syntax-rules} and thus preserving hygiene.")
(license public-domain)))
+
+(define-public chez-irregex
+ (package
+ (name "chez-irregex")
+ (version "0.9.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/fedeinthemix/chez-irregex/archive"
+ "/v" version ".tar.gz"))
+ (sha256
+ (base32 "0ywy5syaw549a58viz68dmgnv756ic705rcnlqxgjq27lnaim53b"))
+ (file-name (string-append name "-" version ".tar.gz"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("chez-matchable" ,chez-matchable))) ; for tests
+ (propagated-inputs
+ `(("chez-srfi" ,chez-srfi))) ; for irregex-utils
+ (native-inputs
+ `(("chez-scheme" ,chez-scheme)))
+ (arguments
+ `(#:make-flags ,(chez-make-flags name version)
+ #:test-target "test"
+ #:phases (modify-phases %standard-phases
+ (replace 'configure ,chez-configure))))
+ (home-page "https://github.com/fedeinthemix/chez-irregex")
+ (synopsis "Portable regular expression library for Scheme")
+ (description "This package provides a portable and efficient
+R[4567]RS implementation of regular expressions, supporting both POSIX
+syntax with various (irregular) PCRE extensions, as well as SCSH's SRE
+syntax, with various aliases for commonly used patterns.")
+ (license bsd-3)))