[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/17: gnu: pcre: Install static libraries to separate output.
From: |
Marius Bakke |
Subject: |
04/17: gnu: pcre: Install static libraries to separate output. |
Date: |
Sun, 22 Jul 2018 12:00:10 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 50849734e986a5824bcca20fe64b2886f8f1a42b
Author: Marius Bakke <address@hidden>
Date: Mon Jul 16 21:14:59 2018 +0200
gnu: pcre: Install static libraries to separate output.
* gnu/packages/pcre.scm (pcre)[outputs]: Add "static".
[arguments]: Add 'move-static-libs' phase.
---
gnu/packages/pcre.scm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/pcre.scm b/gnu/packages/pcre.scm
index 5719b7b..21752e9 100644
--- a/gnu/packages/pcre.scm
+++ b/gnu/packages/pcre.scm
@@ -50,7 +50,8 @@
(build-system gnu-build-system)
(outputs '("out" ;library & headers
"bin" ;depends on Readline (adds 20MiB to the closure)
- "doc")) ;1.8 MiB of HTML
+ "doc" ;1.8 MiB of HTML
+ "static")) ;1.8 MiB static libraries
(inputs `(("bzip2" ,bzip2)
("readline" ,readline)
("zlib" ,zlib)))
@@ -63,7 +64,19 @@
"--enable-unicode-properties"
"--enable-pcre16"
"--enable-pcre32"
- "--enable-jit")))
+ "--enable-jit")
+ #:phases (modify-phases %standard-phases
+ (add-after 'install 'move-static-libs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((source (string-append (assoc-ref outputs "out")
"/lib"))
+ (static (string-append (assoc-ref outputs "static")
"/lib")))
+ (mkdir-p static)
+ (for-each (lambda (lib)
+ (link lib (string-append static "/"
+ (basename lib)))
+ (delete-file lib))
+ (find-files source "\\.a$"))
+ #t))))))
(synopsis "Perl Compatible Regular Expressions")
(description
"The PCRE library is a set of functions that implement regular expression
- branch core-updates updated (49b92a2 -> 3e95125), Marius Bakke, 2018/07/22
- 02/17: gnu: bzip2: Add static output., Marius Bakke, 2018/07/22
- 01/17: gnu: bzip2: Simplify phase., Marius Bakke, 2018/07/22
- 04/17: gnu: pcre: Install static libraries to separate output.,
Marius Bakke <=
- 06/17: gnu: libgc: Update to 7.6.6., Marius Bakke, 2018/07/22
- 10/17: gnu: libuv: Update to 1.22.0., Marius Bakke, 2018/07/22
- 03/17: gnu: binutils: Update to 2.31.1., Marius Bakke, 2018/07/22
- 14/17: gnu: pango: Update to 1.42.2., Marius Bakke, 2018/07/22
- 05/17: gnu: fftw: Update to 3.3.8., Marius Bakke, 2018/07/22
- 08/17: gnu: readline: Update to 7.0.5., Marius Bakke, 2018/07/22
- 15/17: gnu: util-linux: Update to 2.32.1., Marius Bakke, 2018/07/22
- 09/17: gnu: texinfo: Fix FTBFS with Perl 5.28., Marius Bakke, 2018/07/22
- 13/17: gnu: harfbuzz: Update to 1.8.4., Marius Bakke, 2018/07/22
- 07/17: gnu: perl: Update to 5.28.0., Marius Bakke, 2018/07/22