gnu: gettext: Use "modify-phases" syntax.
* gnu/packages/gettext.scm (gettext)[arguments]: Use "modify-phases" syntax.
This commit is contained in:
parent
d99861d39d
commit
e5f037624e
1 changed files with 29 additions and 30 deletions
|
@ -55,8 +55,9 @@ (define-public gnu-gettext
|
|||
(inputs
|
||||
`(("expat" ,expat)))
|
||||
(arguments
|
||||
`(#:phases (alist-cons-before
|
||||
'check 'patch-tests
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'patch-tests
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let* ((bash (which "sh")))
|
||||
;; Some of the files we're patching are
|
||||
|
@ -77,16 +78,14 @@ (define-public gnu-gettext
|
|||
|
||||
(substitute* "gettext-tools/src/project-id"
|
||||
(("/bin/pwd")
|
||||
"pwd")))))
|
||||
(alist-cons-before
|
||||
'configure 'link-expat
|
||||
"pwd"))))))
|
||||
(add-before 'configure 'link-expat
|
||||
(lambda _
|
||||
;; Gettext defaults to opening expat via dlopen on
|
||||
;; "Linux". Change to link directly.
|
||||
(substitute* "gettext-tools/configure"
|
||||
(("LIBEXPAT=\"-ldl\"") "LIBEXPAT=\"-ldl -lexpat\"")
|
||||
(("LTLIBEXPAT=\"-ldl\"") "LTLIBEXPAT=\"-ldl -lexpat\"")))
|
||||
%standard-phases))
|
||||
(("LTLIBEXPAT=\"-ldl\"") "LTLIBEXPAT=\"-ldl -lexpat\"")))))
|
||||
|
||||
;; When tests fail, we want to know the details.
|
||||
#:make-flags '("VERBOSE=yes")))
|
||||
|
|
Loading…
Reference in a new issue