all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Add pcre2.
@ 2015-10-29 16:13 Ricardo Wurmus
  2015-10-29 20:19 ` Andreas Enge
  2015-10-29 20:37 ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2015-10-29 16:13 UTC (permalink / raw)
  To: guix-devel

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

This is needed by the latest version of Julia, which I’m currently
working on.

~~ Ricardo


[-- Attachment #2: 0001-gnu-Add-pcre2.patch --]
[-- Type: text/x-patch, Size: 2421 bytes --]

From 0f1d24e5a09c8adb2a39176b55c3407097e295ce Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Thu, 29 Oct 2015 17:12:17 +0100
Subject: [PATCH] gnu: Add pcre2.

* gnu/packages/pcre.scm (pcre2): New variable.
---
 gnu/packages/pcre.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/pcre.scm b/gnu/packages/pcre.scm
index d07e434..d7d974f 100644
--- a/gnu/packages/pcre.scm
+++ b/gnu/packages/pcre.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -57,3 +58,37 @@ own native API, as well as a set of wrapper functions that correspond to the
 POSIX regular expression API.")
    (license license:bsd-3)
    (home-page "http://www.pcre.org/")))
+
+(define-public pcre2
+  (package
+    (name "pcre2")
+    (version "10.20")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/pcre/pcre2/"
+                                  version "/pcre2-" version ".tar.bz2"))
+
+              (sha256
+               (base32
+                "0yj8mm9ll9zj3v47rvmmqmr1ybxk72rr2lym3rymdsf905qjhbik"))))
+   (build-system gnu-build-system)
+   (inputs `(("bzip2" ,bzip2)
+             ("readline" ,readline)
+             ("zlib" ,zlib)))
+   (arguments
+    `(#:configure-flags '("--enable-unicode"
+                          "--enable-pcregrep-libz"
+                          "--enable-pcregrep-libbz2"
+                          "--enable-pcretest-libreadline"
+                          "--enable-unicode-properties"
+                          "--enable-pcre2-16"
+                          "--enable-pcre2-32"
+                          "--enable-jit")))
+   (synopsis "Perl Compatible Regular Expressions")
+   (description
+    "The PCRE library is a set of functions that implement regular expression
+pattern matching using the same syntax and semantics as Perl 5.  PCRE has its
+own native API, as well as a set of wrapper functions that correspond to the
+POSIX regular expression API.")
+   (license license:bsd-3)
+   (home-page "http://www.pcre.org/")))
-- 
2.1.0


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

* Re: [PATCH] Add pcre2.
  2015-10-29 16:13 [PATCH] Add pcre2 Ricardo Wurmus
@ 2015-10-29 20:19 ` Andreas Enge
  2015-10-29 21:56   ` Ricardo Wurmus
  2015-10-29 20:37 ` Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Andreas Enge @ 2015-10-29 20:19 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

On Thu, Oct 29, 2015 at 05:13:14PM +0100, Ricardo Wurmus wrote:
> This is needed by the latest version of Julia, which I’m currently
> working on.

Should this not inherit from pcre? Several fields are the same.

Andreas

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

* Re: [PATCH] Add pcre2.
  2015-10-29 16:13 [PATCH] Add pcre2 Ricardo Wurmus
  2015-10-29 20:19 ` Andreas Enge
@ 2015-10-29 20:37 ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2015-10-29 20:37 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> From 0f1d24e5a09c8adb2a39176b55c3407097e295ce Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Thu, 29 Oct 2015 17:12:17 +0100
> Subject: [PATCH] gnu: Add pcre2.
>
> * gnu/packages/pcre.scm (pcre2): New variable.

LGTM, thanks!

Ludo'.

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

* Re: [PATCH] Add pcre2.
  2015-10-29 20:19 ` Andreas Enge
@ 2015-10-29 21:56   ` Ricardo Wurmus
  0 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2015-10-29 21:56 UTC (permalink / raw)
  To: Andreas Enge; +Cc: guix-devel


Andreas Enge <andreas@enge.fr> writes:

> On Thu, Oct 29, 2015 at 05:13:14PM +0100, Ricardo Wurmus wrote:
>> This is needed by the latest version of Julia, which I’m currently
>> working on.
>
> Should this not inherit from pcre? Several fields are the same.

Upstream considers this a separate project rather than a heavily
modified upgrade.  I started out inheriting from “pcre” but then decided
against it as only few fields are actually the same.

~~ Ricardo

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

end of thread, other threads:[~2015-10-29 21:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29 16:13 [PATCH] Add pcre2 Ricardo Wurmus
2015-10-29 20:19 ` Andreas Enge
2015-10-29 21:56   ` Ricardo Wurmus
2015-10-29 20:37 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.