mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: iniparser: Use INSTALL-FILE.
* gnu/packages/samba.scm (iniparser)[arguments]: Simplify ‘install’ phase by replacing COPY-FILE with INSTALL-FILE.
This commit is contained in:
parent
cf52c9255d
commit
fa5e661859
1 changed files with 7 additions and 12 deletions
|
@ -124,23 +124,18 @@ (define-public iniparser
|
|||
(inc (string-append out "/include"))
|
||||
(doc (string-append out "/share/doc/" ,name))
|
||||
(html (string-append doc "/html")))
|
||||
(define (copy dir)
|
||||
(define (install dir)
|
||||
(lambda (file)
|
||||
(copy-file file
|
||||
(string-append dir "/"
|
||||
(basename file)))))
|
||||
(mkdir-p lib)
|
||||
(for-each (copy lib)
|
||||
(find-files "." "^lib.*\\.(so\\.|a)"))
|
||||
(install-file file dir)))
|
||||
(for-each (install lib)
|
||||
(find-files "." "^lib.*\\.so"))
|
||||
(with-directory-excursion lib
|
||||
(symlink "libiniparser.so.0" "libiniparser.so"))
|
||||
(mkdir-p inc)
|
||||
(for-each (copy inc)
|
||||
(for-each (install inc)
|
||||
(find-files "src" "\\.h$"))
|
||||
(mkdir-p html)
|
||||
(for-each (copy html)
|
||||
(for-each (install html)
|
||||
(find-files "html" ".*"))
|
||||
(for-each (copy doc)
|
||||
(for-each (install doc)
|
||||
'("AUTHORS" "INSTALL" "LICENSE" "README.md"))))))))
|
||||
(home-page "http://ndevilla.free.fr/iniparser")
|
||||
(synopsis "Standalone ini file parsing library")
|
||||
|
|
Loading…
Reference in a new issue