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>master
parent
8c28401c6d
commit
e3dcaa19ce
|
@ -102,6 +102,7 @@ POSIX regular expression API.")
|
||||||
(base32
|
(base32
|
||||||
"0s4x2l6g0sb9piwkr3sxqwdswz2g6bk1hhwngv0kv4w38wybir0l"))))
|
"0s4x2l6g0sb9piwkr3sxqwdswz2g6bk1hhwngv0kv4w38wybir0l"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(outputs '("out" "static"))
|
||||||
(inputs (list bzip2 readline zlib))
|
(inputs (list bzip2 readline zlib))
|
||||||
(arguments
|
(arguments
|
||||||
(list #:configure-flags
|
(list #:configure-flags
|
||||||
|
@ -114,14 +115,23 @@ POSIX regular expression API.")
|
||||||
;; riscv64-linux is an unsupported architecture.
|
;; riscv64-linux is an unsupported architecture.
|
||||||
#$@(if (target-riscv64?)
|
#$@(if (target-riscv64?)
|
||||||
#~()
|
#~()
|
||||||
#~("--enable-jit"))
|
#~("--enable-jit")))
|
||||||
"--disable-static")
|
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-paths
|
(add-after 'unpack 'patch-paths
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "RunGrepTest"
|
(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")
|
(synopsis "Perl Compatible Regular Expressions")
|
||||||
(description
|
(description
|
||||||
"The PCRE library is a set of functions that implement regular expression
|
"The PCRE library is a set of functions that implement regular expression
|
||||||
|
|
Reference in New Issue