Commit | Line | Data |
---|---|---|
10d1822b AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
90dcf9c8 | 3 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
10d1822b AE |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | (define-module (gnu packages pcre) | |
b5b73a82 | 21 | #:use-module ((guix licenses) #:prefix license:) |
10d1822b AE |
22 | #:use-module (gnu packages compression) |
23 | #:use-module (gnu packages readline) | |
24 | #:use-module (guix packages) | |
25 | #:use-module (guix download) | |
26 | #:use-module (guix build-system gnu)) | |
27 | ||
28 | (define-public pcre | |
29 | (package | |
30 | (name "pcre") | |
90dcf9c8 | 31 | (version "8.36") |
10d1822b AE |
32 | (source (origin |
33 | (method url-fetch) | |
34 | (uri (string-append "mirror://sourceforge/pcre/pcre/" | |
35 | version "/pcre-" version ".tar.bz2")) | |
36 | (sha256 | |
37 | (base32 | |
90dcf9c8 | 38 | "1fs5p1z67m9f4xnyil3s4lhgyld78f7m4d1yawpyhh0cvrbk90zg")))) |
10d1822b AE |
39 | (build-system gnu-build-system) |
40 | (inputs `(("bzip2" ,bzip2) | |
41 | ("readline" ,readline) | |
42 | ("zlib" ,zlib))) | |
43 | (arguments | |
44 | `(#:configure-flags '("--enable-utf" | |
45 | "--enable-pcregrep-libz" | |
46 | "--enable-pcregrep-libbz2" | |
90dcf9c8 MW |
47 | "--enable-pcretest-libreadline" |
48 | "--enable-jit"))) | |
35b9e423 | 49 | (synopsis "Perl Compatible Regular Expressions") |
10d1822b AE |
50 | (description |
51 | "The PCRE library is a set of functions that implement regular expression | |
35b9e423 | 52 | pattern matching using the same syntax and semantics as Perl 5. PCRE has its |
10d1822b AE |
53 | own native API, as well as a set of wrapper functions that correspond to the |
54 | POSIX regular expression API.") | |
55 | (license license:bsd-3) | |
56 | (home-page "http://www.pcre.org/"))) |