From 10d1822b8e9ab2daba6ad38b4ef38454cfe86f89 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Tue, 5 Feb 2013 23:41:38 +0100 Subject: gnu: Add PCRE (Perl Compatible Regular Expression). * gnu/packages/pcre.scm: New file. * Makefile.am (MODULES): Add it. --- Makefile.am | 1 + gnu/packages/pcre.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 gnu/packages/pcre.scm diff --git a/Makefile.am b/Makefile.am index e603005ef4..8944b56018 100644 --- a/Makefile.am +++ b/Makefile.am @@ -117,6 +117,7 @@ MODULES = \ gnu/packages/oggvorbis.scm \ gnu/packages/openldap.scm \ gnu/packages/openssl.scm \ + gnu/packages/pcre.scm \ gnu/packages/pdf.scm \ gnu/packages/perl.scm \ gnu/packages/pkg-config.scm \ diff --git a/gnu/packages/pcre.scm b/gnu/packages/pcre.scm new file mode 100644 index 0000000000..b3f89427e7 --- /dev/null +++ b/gnu/packages/pcre.scm @@ -0,0 +1,55 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2013 Andreas Enge +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages pcre) + #:use-module ((guix licenses) + #:renamer (symbol-prefix-proc 'license:)) + #:use-module (gnu packages compression) + #:use-module (gnu packages readline) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu)) + +(define-public pcre + (package + (name "pcre") + (version "8.32") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/pcre/pcre/" + version "/pcre-" version ".tar.bz2")) + (sha256 + (base32 + "0m8gvrf1q0iwll4csirvvj98xygw4cy7r14i5l53ivsqs2dzn4x9")))) + (build-system gnu-build-system) + (inputs `(("bzip2" ,bzip2) + ("readline" ,readline) + ("zlib" ,zlib))) + (arguments + `(#:configure-flags '("--enable-utf" + "--enable-pcregrep-libz" + "--enable-pcregrep-libbz2" + "--enable-pcretest-libreadline"))) + (synopsis "PCRE, 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/"))) -- cgit v1.2.3