| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> |
| 3 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
| 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) |
| 21 | #:use-module ((guix licenses) #:prefix license:) |
| 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") |
| 31 | (version "8.37") |
| 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 |
| 38 | "17bqykp604p7376wj3q2nmjdhrb6v1ny8q08zdwi7qvc02l9wrsi")))) |
| 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" |
| 47 | "--enable-pcretest-libreadline" |
| 48 | "--enable-jit"))) |
| 49 | (synopsis "Perl Compatible Regular Expressions") |
| 50 | (description |
| 51 | "The PCRE library is a set of functions that implement regular expression |
| 52 | pattern matching using the same syntax and semantics as Perl 5. PCRE has its |
| 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/"))) |