gnu: iniparser: Use 'modify-phases'.

* gnu/packages/samba.scm (iniparser)[arguments]: Use 'modify-phases'
syntax.
This commit is contained in:
Efraim Flashner 2016-07-24 11:23:01 +03:00
parent def8f501e6
commit 2af56bfa1e
No known key found for this signature in database
GPG key ID: F4C1D3917EACEE93

View file

@ -50,20 +50,19 @@ (define-public iniparser
"1flj7srvh2hp9ls96qz922bklyhw7f27mmn23b16839zpdjddfz0")))) "1flj7srvh2hp9ls96qz922bklyhw7f27mmn23b16839zpdjddfz0"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(#:phases (alist-replace '(#:phases
'configure (modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(substitute* '("Makefile" "test/Makefile") (substitute* '("Makefile" "test/Makefile")
(("/usr/lib") (("/usr/lib")
(string-append (assoc-ref outputs "out") "/lib")) (string-append (assoc-ref outputs "out") "/lib"))
(("\\?= gcc") "= gcc"))) (("\\?= gcc") "= gcc"))))
(alist-replace (replace 'build
'build
(lambda _ (lambda _
(and (zero? (system* "make" "libiniparser.so")) (and (zero? (system* "make" "libiniparser.so"))
(symlink "libiniparser.so.0" "libiniparser.so"))) (symlink "libiniparser.so.0" "libiniparser.so"))))
(alist-replace (replace 'install
'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(lib (string-append out "/lib")) (lib (string-append out "/lib"))
@ -87,9 +86,7 @@ (define (copy dir)
(for-each (copy html) (for-each (copy html)
(find-files "html" ".*")) (find-files "html" ".*"))
(for-each (copy doc) (for-each (copy doc)
'("AUTHORS" "INSTALL" "LICENSE" '("AUTHORS" "INSTALL" "LICENSE" "README.md"))))))))
"README.md"))))
%standard-phases)))))
(home-page "http://ndevilla.free.fr/iniparser") (home-page "http://ndevilla.free.fr/iniparser")
(synopsis "Standalone ini file parsing library") (synopsis "Standalone ini file parsing library")
(description (description