gnu: bind-utils: Update to 9.10.3-P3 [fixes CVE-2015-8704].
[jackhill/guix/guix.git] / gnu / packages / pcre.scm
CommitLineData
10d1822b
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
fd19fa55 3;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
7ea3099b 4;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
10d1822b
AE
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages pcre)
b5b73a82 22 #:use-module ((guix licenses) #:prefix license:)
10d1822b
AE
23 #:use-module (gnu packages compression)
24 #:use-module (gnu packages readline)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu))
28
29(define-public pcre
30 (package
31 (name "pcre")
dae36ca5 32 (version "8.38")
10d1822b
AE
33 (source (origin
34 (method url-fetch)
dae36ca5
MW
35 (uri (list
36 (string-append "ftp://ftp.csx.cam.ac.uk"
37 "/pub/software/programming/pcre/"
38 "pcre-" version ".tar.bz2")
39 (string-append "mirror://sourceforge/pcre/pcre/"
40 version "/pcre-" version ".tar.bz2")))
10d1822b
AE
41 (sha256
42 (base32
dae36ca5 43 "1pvra19ljkr5ky35y2iywjnsckrs9ch2anrf5b0dc91hw8v2vq5r"))))
10d1822b
AE
44 (build-system gnu-build-system)
45 (inputs `(("bzip2" ,bzip2)
46 ("readline" ,readline)
47 ("zlib" ,zlib)))
48 (arguments
49 `(#:configure-flags '("--enable-utf"
50 "--enable-pcregrep-libz"
51 "--enable-pcregrep-libbz2"
90dcf9c8 52 "--enable-pcretest-libreadline"
16f71908
MW
53 "--enable-unicode-properties"
54 "--enable-pcre16"
55 "--enable-pcre32"
90dcf9c8 56 "--enable-jit")))
35b9e423 57 (synopsis "Perl Compatible Regular Expressions")
10d1822b
AE
58 (description
59 "The PCRE library is a set of functions that implement regular expression
35b9e423 60pattern matching using the same syntax and semantics as Perl 5. PCRE has its
10d1822b
AE
61own native API, as well as a set of wrapper functions that correspond to the
62POSIX regular expression API.")
63 (license license:bsd-3)
64 (home-page "http://www.pcre.org/")))
7ea3099b
RW
65
66(define-public pcre2
67 (package
68 (name "pcre2")
69 (version "10.20")
70 (source (origin
71 (method url-fetch)
72 (uri (string-append "mirror://sourceforge/pcre/pcre2/"
73 version "/pcre2-" version ".tar.bz2"))
74
75 (sha256
76 (base32
77 "0yj8mm9ll9zj3v47rvmmqmr1ybxk72rr2lym3rymdsf905qjhbik"))))
78 (build-system gnu-build-system)
79 (inputs `(("bzip2" ,bzip2)
80 ("readline" ,readline)
81 ("zlib" ,zlib)))
82 (arguments
83 `(#:configure-flags '("--enable-unicode"
84 "--enable-pcregrep-libz"
85 "--enable-pcregrep-libbz2"
86 "--enable-pcretest-libreadline"
87 "--enable-unicode-properties"
88 "--enable-pcre2-16"
89 "--enable-pcre2-32"
90 "--enable-jit")))
91 (synopsis "Perl Compatible Regular Expressions")
92 (description
93 "The PCRE library is a set of functions that implement regular expression
94pattern matching using the same syntax and semantics as Perl 5. PCRE has its
95own native API, as well as a set of wrapper functions that correspond to the
96POSIX regular expression API.")
97 (license license:bsd-3)
98 (home-page "http://www.pcre.org/")))