me
/
guix
Archived
1
0
Fork 0

gnu: pcre: Use G-expression.

* gnu/packages/pcre.scm (pcre)[arguments]: Use gexp.
master
Marius Bakke 2022-06-30 16:05:54 +02:00
parent 14cd7675a3
commit 438b63fcb3
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 47 additions and 46 deletions

View File

@ -55,8 +55,9 @@
"static")) ;1.8 MiB static libraries
(inputs (list bzip2 readline zlib))
(arguments
`(#:disallowed-references ("doc")
#:configure-flags '("--enable-utf"
(list
#:disallowed-references '("doc")
#:configure-flags #~'("--enable-utf"
"--enable-pcregrep-libz"
"--enable-pcregrep-libbz2"
"--enable-pcretest-libreadline"
@ -65,15 +66,15 @@
"--enable-pcre32"
;; pcretest fails on powerpc32.
;; riscv64-linux is an unsupported architecture.
,@(if (or (target-ppc32?)
(target-riscv64?))
'()
`("--enable-jit")))
#:phases (modify-phases %standard-phases
#$@(if (or (target-ppc32?) (target-riscv64?))
#~()
#~("--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")))
(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 "/"