1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 John Darrington
3 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; This file is part of GNU Guix.
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.
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.
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/>.
20 (define-module (gnu packages tre)
21 #:use-module (gnu packages)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (guix licenses))
35 (string-append "http://laurikari.net/tre/" name "-" version
38 (base32 "0n36cgqys59r2gmb7jzbqiwsy790v8nbxk82d2n2saz0rp145ild"))))
40 (build-system gnu-build-system)
42 `(#:phases (alist-cons-before
43 'check 'install-locales
45 ;; The tests require the availability of the
46 ;; 'en_US.ISO-8859-1' locale.
47 (setenv "LOCPATH" (getcwd))
48 (zero? (system* "localedef" "--no-archive"
49 "--prefix" (getcwd) "-i" "en_US"
50 "-f" "ISO-8859-1" "./en_US.ISO-8859-1")))
52 (synopsis "Approximate regex matching library and agrep utility")
53 (description "Superset of the POSIX regex API, enabling approximate
54 matching. Also ships a version of the agrep utility which behaves similar to
55 grep but features ineaxct matching.")
56 (home-page "http://laurikari.net/tre")