gnu: samba: Update to 4.3.6 [fixes CVE-2015-7560, CVE-2016-0771].
[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 44 (build-system gnu-build-system)
6042f40b
LC
45 (outputs '("out"
46 "doc")) ;1.8 MiB of HTML
10d1822b
AE
47 (inputs `(("bzip2" ,bzip2)
48 ("readline" ,readline)
49 ("zlib" ,zlib)))
50 (arguments
51 `(#:configure-flags '("--enable-utf"
52 "--enable-pcregrep-libz"
53 "--enable-pcregrep-libbz2"
90dcf9c8 54 "--enable-pcretest-libreadline"
16f71908
MW
55 "--enable-unicode-properties"
56 "--enable-pcre16"
57 "--enable-pcre32"
90dcf9c8 58 "--enable-jit")))
35b9e423 59 (synopsis "Perl Compatible Regular Expressions")
10d1822b
AE
60 (description
61 "The PCRE library is a set of functions that implement regular expression
35b9e423 62pattern matching using the same syntax and semantics as Perl 5. PCRE has its
10d1822b
AE
63own native API, as well as a set of wrapper functions that correspond to the
64POSIX regular expression API.")
65 (license license:bsd-3)
66 (home-page "http://www.pcre.org/")))
7ea3099b
RW
67
68(define-public pcre2
69 (package
70 (name "pcre2")
71 (version "10.20")
72 (source (origin
73 (method url-fetch)
74 (uri (string-append "mirror://sourceforge/pcre/pcre2/"
75 version "/pcre2-" version ".tar.bz2"))
76
77 (sha256
78 (base32
79 "0yj8mm9ll9zj3v47rvmmqmr1ybxk72rr2lym3rymdsf905qjhbik"))))
80 (build-system gnu-build-system)
81 (inputs `(("bzip2" ,bzip2)
82 ("readline" ,readline)
83 ("zlib" ,zlib)))
84 (arguments
85 `(#:configure-flags '("--enable-unicode"
86 "--enable-pcregrep-libz"
87 "--enable-pcregrep-libbz2"
88 "--enable-pcretest-libreadline"
89 "--enable-unicode-properties"
90 "--enable-pcre2-16"
91 "--enable-pcre2-32"
92 "--enable-jit")))
93 (synopsis "Perl Compatible Regular Expressions")
94 (description
95 "The PCRE library is a set of functions that implement regular expression
96pattern matching using the same syntax and semantics as Perl 5. PCRE has its
97own native API, as well as a set of wrapper functions that correspond to the
98POSIX regular expression API.")
99 (license license:bsd-3)
100 (home-page "http://www.pcre.org/")))