summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-20 15:12:53 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-20 15:18:50 +0100
commit0faafabef907387fb3a3f6c5c7840a59512531ef (patch)
tree2fdf97349107947b424296b28f305c66d4560bb1
parent8795fbda0f1c7a15a81571d3f4da0c11058582c1 (diff)
gnu: tre: Build from git.
* gnu/packages/regex.scm (tre): [source]: Switch to git-fetch [arguments] <phases>: Use customve 'bootstrap. [native-inputs]: Add autoconf, automake, gettext-minimal, and libtool. Change-Id: I18f67174d1c29122f721f148e68760f855038315
-rw-r--r--gnu/packages/regex.scm20
1 files changed, 16 insertions, 4 deletions
diff --git a/gnu/packages/regex.scm b/gnu/packages/regex.scm
index 848b60b273..bf1ab703c0 100644
--- a/gnu/packages/regex.scm
+++ b/gnu/packages/regex.scm
@@ -30,6 +30,8 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
#:use-module (guix utils)
+ #:use-module (gnu packages autotools)
+ #:use-module (gnu packages gettext)
#:use-module (gnu packages check)
#:use-module (gnu packages cpp))
@@ -92,16 +94,21 @@ Python. It is a C++ library.")
(name "tre")
(version "0.9.0")
(source (origin
- (method url-fetch)
- (uri (string-append "https://github.com/laurikari/tre/releases/download/v"
- version "/" name "-" version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/laurikari/tre")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "0xr4b8xr51ngsxlwy22by5i13zhnb5q722zv25nm3zpxrac5czzm"))))
+ "1zy91a0jfc5galvd7xrvkn17i3wfiwnv9ikys4qiyjgy7fmk5vz4"))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
+ (replace 'bootstrap
+ (lambda _
+ (invoke "autoreconf" "-vif")))
(add-before 'check 'install-locales
(lambda _
;; The tests require the availability of the
@@ -110,6 +117,11 @@ Python. It is a C++ library.")
(invoke "localedef" "--no-archive"
"--prefix" (getcwd) "-i" "en_US"
"-f" "ISO-8859-1" "./en_US.ISO-8859-1"))))))
+ (native-inputs
+ (list autoconf
+ automake
+ gettext-minimal ;for autopoint
+ libtool))
(synopsis "Approximate regex matching library and agrep utility")
(description "Superset of the POSIX regex API, enabling approximate
matching. Also ships a version of the agrep utility which behaves similar to