[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/11: gnu: pcre2: Install static libraries.
From: |
guix-commits |
Subject: |
05/11: gnu: pcre2: Install static libraries. |
Date: |
Sun, 24 Sep 2023 05:56:26 -0400 (EDT) |
lilyp pushed a commit to branch gnome-team
in repository guix.
commit e3dcaa19ce9bfa6b1e95162c60895d328b7afa2c
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Sat Sep 16 14:25:58 2023 +0200
gnu: pcre2: Install static libraries.
* gnu/packages/pcre.scm (pcre2)[#:configure-flags]: Remove
"--disable-static".
[#:phases]: Copy ‘move-static-libs’ from pcre.
[outputs]: Add “static”.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
---
gnu/packages/pcre.scm | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/pcre.scm b/gnu/packages/pcre.scm
index ee48ad0e2b..c7471169d9 100644
--- a/gnu/packages/pcre.scm
+++ b/gnu/packages/pcre.scm
@@ -102,6 +102,7 @@ POSIX regular expression API.")
(base32
"0s4x2l6g0sb9piwkr3sxqwdswz2g6bk1hhwngv0kv4w38wybir0l"))))
(build-system gnu-build-system)
+ (outputs '("out" "static"))
(inputs (list bzip2 readline zlib))
(arguments
(list #:configure-flags
@@ -114,14 +115,23 @@ POSIX regular expression API.")
;; riscv64-linux is an unsupported architecture.
#$@(if (target-riscv64?)
#~()
- #~("--enable-jit"))
- "--disable-static")
+ #~("--enable-jit")))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda _
(substitute* "RunGrepTest"
- (("/bin/echo") (which "echo"))))))))
+ (("/bin/echo") (which "echo")))))
+ (add-after 'install 'move-static-libs
+ (lambda _
+ (let ((source (string-append #$output "/lib"))
+ (static (string-append #$output:static "/lib")))
+ (mkdir-p static)
+ (for-each (lambda (lib)
+ (link lib (string-append static "/"
+ (basename lib)))
+ (delete-file lib))
+ (find-files source "\\.a$"))))))))
(synopsis "Perl Compatible Regular Expressions")
(description
"The PCRE library is a set of functions that implement regular expression
- branch gnome-team updated (e9ff5d51e3 -> afa9da8425), guix-commits, 2023/09/24
- 04/11: gnu: libshumate: Update to 1.0.5., guix-commits, 2023/09/24
- 05/11: gnu: pcre2: Install static libraries.,
guix-commits <=
- 06/11: gnu: qemu: Use pcre2., guix-commits, 2023/09/24
- 02/11: gnu: gnome-photos: Update to 43.1., guix-commits, 2023/09/24
- 03/11: gnu: totem: Update to 43.0., guix-commits, 2023/09/24
- 07/11: gnu: tracker: Update to 3.6.0., guix-commits, 2023/09/24
- 10/11: gnu: editorconfig-core-c: Update to 0.12.6., guix-commits, 2023/09/24
- 08/11: gnu: NetworkManager: Update to 1.44.0., guix-commits, 2023/09/24
- 09/11: gnu: gnome-text-editor: Add missing input., guix-commits, 2023/09/24
- 01/11: gnu: vala: Update to 0.56.13., guix-commits, 2023/09/24
- 11/11: gnu: gnome-text-editor: Update to 44.0., guix-commits, 2023/09/24