unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 06/15] gnu: Add chez-irregex.
@ 2016-10-16 15:31 Federico Beffa
  2016-10-17 14:40 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Federico Beffa @ 2016-10-16 15:31 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0006-gnu-Add-chez-irregex.patch --]
[-- Type: text/x-patch, Size: 2006 bytes --]

From 4293c55d921d82c0542907024a1b51abea32b6dc Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Sun, 16 Oct 2016 16:10:31 +0200
Subject: [PATCH 06/15] gnu: Add chez-irregex.

* gnu/packages/chez.scm (chez-irregex): New variable.
---
 gnu/packages/chez.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm
index bc763df..34fd225 100644
--- a/gnu/packages/chez.scm
+++ b/gnu/packages/chez.scm
@@ -397,3 +397,36 @@ Chez Scheme.")
 Scheme 'match' package by Andrew Wright, written in fully portable
 '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)))
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 06/15] gnu: Add chez-irregex.
  2016-10-16 15:31 [PATCH 06/15] gnu: Add chez-irregex Federico Beffa
@ 2016-10-17 14:40 ` Ludovic Courtès
  2016-10-17 16:19   ` Federico Beffa
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2016-10-17 14:40 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> From 4293c55d921d82c0542907024a1b51abea32b6dc Mon Sep 17 00:00:00 2001
> From: Federico Beffa <beffa@fbengineering.ch>
> Date: Sun, 16 Oct 2016 16:10:31 +0200
> Subject: [PATCH 06/15] gnu: Add chez-irregex.
>
> * gnu/packages/chez.scm (chez-irregex): New variable.

[...]

> +       (uri (string-append
> +             "https://github.com/fedeinthemix/chez-irregex/archive"
> +             "/v" version ".tar.gz"))

Wouldn’t it work to use the upstream Irregex as done in the
‘guile-irregex’ package?

Otherwise LGTM.

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 06/15] gnu: Add chez-irregex.
  2016-10-17 14:40 ` Ludovic Courtès
@ 2016-10-17 16:19   ` Federico Beffa
  2016-10-17 20:09     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Federico Beffa @ 2016-10-17 16:19 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

On Mon, Oct 17, 2016 at 4:40 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> Federico Beffa <beffa@ieee.org> skribis:
>
>> From 4293c55d921d82c0542907024a1b51abea32b6dc Mon Sep 17 00:00:00 2001
>> From: Federico Beffa <beffa@fbengineering.ch>
>> Date: Sun, 16 Oct 2016 16:10:31 +0200
>> Subject: [PATCH 06/15] gnu: Add chez-irregex.
>>
>> * gnu/packages/chez.scm (chez-irregex): New variable.
>
> [...]
>
>> +       (uri (string-append
>> +             "https://github.com/fedeinthemix/chez-irregex/archive"
>> +             "/v" version ".tar.gz"))
>
> Wouldn’t it work to use the upstream Irregex as done in the
> ‘guile-irregex’ package?

The original source includes a module definition for Guile, but not
one for R6RS Scheme. This package wraps the original code in an R6RS
library definition and adds a file to make it easy to run the test
suite.

>
> Otherwise LGTM.
>
> Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 06/15] gnu: Add chez-irregex.
  2016-10-17 16:19   ` Federico Beffa
@ 2016-10-17 20:09     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2016-10-17 20:09 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> On Mon, Oct 17, 2016 at 4:40 PM, Ludovic Courtès <ludo@gnu.org> wrote:
>> Federico Beffa <beffa@ieee.org> skribis:
>>
>>> From 4293c55d921d82c0542907024a1b51abea32b6dc Mon Sep 17 00:00:00 2001
>>> From: Federico Beffa <beffa@fbengineering.ch>
>>> Date: Sun, 16 Oct 2016 16:10:31 +0200
>>> Subject: [PATCH 06/15] gnu: Add chez-irregex.
>>>
>>> * gnu/packages/chez.scm (chez-irregex): New variable.
>>
>> [...]
>>
>>> +       (uri (string-append
>>> +             "https://github.com/fedeinthemix/chez-irregex/archive"
>>> +             "/v" version ".tar.gz"))
>>
>> Wouldn’t it work to use the upstream Irregex as done in the
>> ‘guile-irregex’ package?
>
> The original source includes a module definition for Guile, but not
> one for R6RS Scheme. This package wraps the original code in an R6RS
> library definition and adds a file to make it easy to run the test
> suite.

OK, makes sense.  Thanks for explaining!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-17 20:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-16 15:31 [PATCH 06/15] gnu: Add chez-irregex Federico Beffa
2016-10-17 14:40 ` Ludovic Courtès
2016-10-17 16:19   ` Federico Beffa
2016-10-17 20:09     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).