gnu: pcre: Use G-expression.
* gnu/packages/pcre.scm (pcre)[arguments]: Use gexp.
This commit is contained in:
parent
14cd7675a3
commit
438b63fcb3
1 changed files with 47 additions and 46 deletions
|
@ -39,55 +39,56 @@
|
||||||
|
|
||||||
(define-public pcre
|
(define-public pcre
|
||||||
(package
|
(package
|
||||||
(name "pcre")
|
(name "pcre")
|
||||||
(version "8.45")
|
(version "8.45")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://sourceforge/pcre/pcre/"
|
(uri (string-append "mirror://sourceforge/pcre/pcre/"
|
||||||
version "/pcre-" version ".tar.bz2"))
|
version "/pcre-" version ".tar.bz2"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1f7zichy6iimmkfrqdl575sdlm795cyc75szgg1vc2xvsbf6zbjd"))))
|
"1f7zichy6iimmkfrqdl575sdlm795cyc75szgg1vc2xvsbf6zbjd"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(outputs '("out" ;library & headers
|
(outputs '("out" ;library & headers
|
||||||
"bin" ;depends on Readline (adds 20MiB to the closure)
|
"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
|
"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")
|
||||||
"--enable-pcregrep-libz"
|
#:configure-flags #~'("--enable-utf"
|
||||||
"--enable-pcregrep-libbz2"
|
"--enable-pcregrep-libz"
|
||||||
"--enable-pcretest-libreadline"
|
"--enable-pcregrep-libbz2"
|
||||||
"--enable-unicode-properties"
|
"--enable-pcretest-libreadline"
|
||||||
"--enable-pcre16"
|
"--enable-unicode-properties"
|
||||||
"--enable-pcre32"
|
"--enable-pcre16"
|
||||||
;; pcretest fails on powerpc32.
|
"--enable-pcre32"
|
||||||
;; riscv64-linux is an unsupported architecture.
|
;; pcretest fails on powerpc32.
|
||||||
,@(if (or (target-ppc32?)
|
;; riscv64-linux is an unsupported architecture.
|
||||||
(target-riscv64?))
|
#$@(if (or (target-ppc32?) (target-riscv64?))
|
||||||
'()
|
#~()
|
||||||
`("--enable-jit")))
|
#~("--enable-jit")))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'install 'move-static-libs
|
#~(modify-phases %standard-phases
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(add-after 'install 'move-static-libs
|
||||||
(let ((source (string-append (assoc-ref outputs "out") "/lib"))
|
(lambda _
|
||||||
(static (string-append (assoc-ref outputs "static") "/lib")))
|
(let ((source (string-append #$output "/lib"))
|
||||||
(mkdir-p static)
|
(static (string-append #$output:static "/lib")))
|
||||||
(for-each (lambda (lib)
|
(mkdir-p static)
|
||||||
(link lib (string-append static "/"
|
(for-each (lambda (lib)
|
||||||
(basename lib)))
|
(link lib (string-append static "/"
|
||||||
(delete-file lib))
|
(basename lib)))
|
||||||
(find-files source "\\.a$"))))))))
|
(delete-file lib))
|
||||||
(synopsis "Perl Compatible Regular Expressions")
|
(find-files source "\\.a$"))))))))
|
||||||
(description
|
(synopsis "Perl Compatible Regular Expressions")
|
||||||
"The PCRE library is a set of functions that implement regular expression
|
(description
|
||||||
|
"The PCRE library is a set of functions that implement regular expression
|
||||||
pattern matching using the same syntax and semantics as Perl 5. PCRE has its
|
pattern matching using the same syntax and semantics as Perl 5. PCRE has its
|
||||||
own native API, as well as a set of wrapper functions that correspond to the
|
own native API, as well as a set of wrapper functions that correspond to the
|
||||||
POSIX regular expression API.")
|
POSIX regular expression API.")
|
||||||
(license license:bsd-3)
|
(license license:bsd-3)
|
||||||
(home-page "https://www.pcre.org/")))
|
(home-page "https://www.pcre.org/")))
|
||||||
|
|
||||||
(define-public pcre2
|
(define-public pcre2
|
||||||
(package
|
(package
|
||||||
|
|
Reference in a new issue