mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: iniparser: Use 'modify-phases'.
* gnu/packages/samba.scm (iniparser)[arguments]: Use 'modify-phases' syntax.
This commit is contained in:
parent
def8f501e6
commit
2af56bfa1e
1 changed files with 37 additions and 40 deletions
|
@ -50,20 +50,19 @@ (define-public iniparser
|
|||
"1flj7srvh2hp9ls96qz922bklyhw7f27mmn23b16839zpdjddfz0"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
'(#:phases (alist-replace
|
||||
'configure
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(substitute* '("Makefile" "test/Makefile")
|
||||
(("/usr/lib")
|
||||
(string-append (assoc-ref outputs "out") "/lib"))
|
||||
(("\\?= gcc") "= gcc")))
|
||||
(alist-replace
|
||||
'build
|
||||
(("\\?= gcc") "= gcc"))))
|
||||
(replace 'build
|
||||
(lambda _
|
||||
(and (zero? (system* "make" "libiniparser.so"))
|
||||
(symlink "libiniparser.so.0" "libiniparser.so")))
|
||||
(alist-replace
|
||||
'install
|
||||
(symlink "libiniparser.so.0" "libiniparser.so"))))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(lib (string-append out "/lib"))
|
||||
|
@ -87,9 +86,7 @@ (define (copy dir)
|
|||
(for-each (copy html)
|
||||
(find-files "html" ".*"))
|
||||
(for-each (copy doc)
|
||||
'("AUTHORS" "INSTALL" "LICENSE"
|
||||
"README.md"))))
|
||||
%standard-phases)))))
|
||||
'("AUTHORS" "INSTALL" "LICENSE" "README.md"))))))))
|
||||
(home-page "http://ndevilla.free.fr/iniparser")
|
||||
(synopsis "Standalone ini file parsing library")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue