[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/24: gnu: libxml2: Move static library to separate output.
From: |
Marius Bakke |
Subject: |
03/24: gnu: libxml2: Move static library to separate output. |
Date: |
Sat, 28 Jul 2018 09:58:16 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 5f8642ea6ae675d0fb5b06e616064458433087d3
Author: Marius Bakke <address@hidden>
Date: Sat Jul 28 15:40:21 2018 +0200
gnu: libxml2: Move static library to separate output.
* gnu/packages/xml.scm (libxml2)[outputs, arguments]: New fields.
---
gnu/packages/xml.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 1bf99f2..85fd553 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -129,6 +129,20 @@ hierarchical form with variable field lengths.")
(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'.
- branch core-updates updated (1428bce -> 4696368), Marius Bakke, 2018/07/28
- 01/24: gnu: openldap: Don't build static libraries., Marius Bakke, 2018/07/28
- 02/24: gnu: icu4c: Don't keep a reference to coreutils., Marius Bakke, 2018/07/28
- 04/24: gnu: libxml2: Add explicit dependency on XZ., Marius Bakke, 2018/07/28
- 03/24: gnu: libxml2: Move static library to separate output.,
Marius Bakke <=
- 08/24: gnu: python: Build reproducibly., Marius Bakke, 2018/07/28
- 10/24: gnu: python-py: Update to 1.5.4., Marius Bakke, 2018/07/28
- 11/24: gnu: python-py: Update home page., Marius Bakke, 2018/07/28
- 17/24: gnu: python-flake8: Update to 3.5.0., Marius Bakke, 2018/07/28
- 07/24: gnu: python: Rebuild bytecode after removing tests., Marius Bakke, 2018/07/28
- 05/24: gnu: python: Remove outdated comment and phases., Marius Bakke, 2018/07/28
- 06/24: gnu: python: Update to 3.7.0., Marius Bakke, 2018/07/28
- 12/24: gnu: python-pyflakes: Update to 2.0.0., Marius Bakke, 2018/07/28
- 13/24: gnu: python-more-itertools: Update to 4.2.0., Marius Bakke, 2018/07/28
- 19/24: gnu: python-pytest-cov: Update to 2.5.1., Marius Bakke, 2018/07/28