Archived
1
0
Fork 0

gnu: pcre: Use G-expression.

* gnu/packages/pcre.scm (pcre)[arguments]: Use gexp.
This commit is contained in:
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

View file

@ -55,8 +55,9 @@
"static")) ;1.8 MiB static libraries "static")) ;1.8 MiB static libraries
(inputs (list bzip2 readline zlib)) (inputs (list bzip2 readline zlib))
(arguments (arguments
`(#:disallowed-references ("doc") (list
#:configure-flags '("--enable-utf" #:disallowed-references '("doc")
#:configure-flags #~'("--enable-utf"
"--enable-pcregrep-libz" "--enable-pcregrep-libz"
"--enable-pcregrep-libbz2" "--enable-pcregrep-libbz2"
"--enable-pcretest-libreadline" "--enable-pcretest-libreadline"
@ -65,15 +66,15 @@
"--enable-pcre32" "--enable-pcre32"
;; pcretest fails on powerpc32. ;; pcretest fails on powerpc32.
;; riscv64-linux is an unsupported architecture. ;; riscv64-linux is an unsupported architecture.
,@(if (or (target-ppc32?) #$@(if (or (target-ppc32?) (target-riscv64?))
(target-riscv64?)) #~()
'() #~("--enable-jit")))
`("--enable-jit"))) #:phases
#:phases (modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'move-static-libs (add-after 'install 'move-static-libs
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(let ((source (string-append (assoc-ref outputs "out") "/lib")) (let ((source (string-append #$output "/lib"))
(static (string-append (assoc-ref outputs "static") "/lib"))) (static (string-append #$output:static "/lib")))
(mkdir-p static) (mkdir-p static)
(for-each (lambda (lib) (for-each (lambda (lib)
(link lib (string-append static "/" (link lib (string-append static "/"