gnu: emacs: Use https for elpa.gnu.org.
[jackhill/guix/guix.git] / gnu / packages / regex.scm
CommitLineData
dc253bf0
MB
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages regex)
20 #:use-module ((guix licenses) #:prefix license:)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu))
24
25(define-public re2
26 (package
27 (name "re2")
28 (version "2016-08-01")
29 (source (origin
30 (method url-fetch)
31 (uri
32 (string-append
33 "https://github.com/google/re2/archive/"
34 version ".tar.gz"))
35 (file-name (string-append name "-" version ".tar.gz"))
36 (sha256
37 (base32
38 "06pfm3xi5irrrij85m0c46rsn9jyg1rc2r431wi2knhjvbw9f0bx"))))
39 (build-system gnu-build-system)
40 (arguments
41 `(#:test-target "test"
42 ;; There is no configure step, but the Makefile respects a prefix.
43 #:make-flags (list (string-append "prefix=" %output))
44 #:phases
45 (modify-phases %standard-phases
46 (delete 'configure)
47 (add-after 'install 'delete-static-library
48 (lambda* (#:key outputs #:allow-other-keys)
49 ;; No make target for shared-only; delete the static version.
50 (delete-file (string-append (assoc-ref outputs "out")
51 "/lib/libre2.a")))))))
52 (home-page "https://github.com/google/re2")
53 (synopsis "Fast, safe, thread-friendly regular expression engine")
54 (description "RE2 is a fast, safe, thread-friendly alternative to
55backtracking regular expression engines like those used in PCRE, Perl and
56Python. It is a C++ library.")
57 (license license:bsd-3)))