mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: libxml2: Move static library to separate output.
* gnu/packages/xml.scm (libxml2)[outputs, arguments]: New fields.
This commit is contained in:
parent
fbd2b8da5d
commit
5f8642ea6a
1 changed files with 14 additions and 0 deletions
|
@ -129,6 +129,20 @@ (define-public libxml2
|
|||
(base32
|
||||
"0ci7is75bwqqw2p32vxvrk6ds51ik7qgx73m920rakv5jlayax0b"))))
|
||||
(build-system gnu-build-system)
|
||||
(outputs '("out" "static"))
|
||||
(arguments
|
||||
`(#:phases (modify-phases %standard-phases
|
||||
(add-after 'install 'move-static-libs
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((src (string-append (assoc-ref outputs "out") "/lib"))
|
||||
(dst (string-append (assoc-ref outputs "static")
|
||||
"/lib")))
|
||||
(mkdir-p dst)
|
||||
(for-each (lambda (ar)
|
||||
(rename-file ar (string-append dst "/"
|
||||
(basename ar))))
|
||||
(find-files src "\\.a$"))
|
||||
#t))))))
|
||||
(home-page "http://www.xmlsoft.org/")
|
||||
(synopsis "C parser for XML")
|
||||
(propagated-inputs `(("zlib" ,zlib))) ; libxml2.la says '-lz'.
|
||||
|
|
Loading…
Reference in a new issue