gnu: freeimage: Use 'modify-phases' syntax.

* gnu/packages/image.scm (freeimage)[arguments]: Use 'modify-phases'
syntax.
This commit is contained in:
Efraim Flashner 2016-10-14 11:31:26 +03:00
parent 76e8566c1b
commit 4a2798e067
No known key found for this signature in database
GPG Key ID: F4C1D3917EACEE93
1 changed files with 9 additions and 9 deletions

View File

@ -585,15 +585,15 @@ supplies a generic doubly-linked list and some string functions.")
"freeimage-CVE-2016-5684.patch"))))
(build-system gnu-build-system)
(arguments
'(#:phases (alist-delete
'configure
(alist-cons-before
'build 'patch-makefile
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "Makefile.gnu"
(("/usr") (assoc-ref outputs "out"))
(("-o root -g root") "")))
%standard-phases))
'(#:phases
(modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'patch-makefile
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "Makefile.gnu"
(("/usr") (assoc-ref outputs "out"))
(("-o root -g root") ""))
#t)))
#:make-flags '("CC=gcc")
#:tests? #f)) ; no check target
(native-inputs