diff options
author | Marius Bakke <marius@gnu.org> | 2021-06-05 15:35:42 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2021-06-13 01:00:47 +0200 |
commit | a6c292a6f123acc86429722619ccb51ca54f844f (patch) | |
tree | cafa380132b6952f947084975e7995515ecd8840 /gnu/packages/xml.scm | |
parent | 557084a0c9f2e1b91f7e7da68d3f9540c044bffb (diff) | |
download | guix-a6c292a6f123acc86429722619ccb51ca54f844f.tar guix-a6c292a6f123acc86429722619ccb51ca54f844f.tar.gz |
gnu: expat: Install the static library.
* gnu/packages/xml.scm (expat)[outputs]: New field.
[arguments]: Remove #:configure-flags. Add #:phases.
* gnu/packages/commencement.scm (expat-sans-tests)[outputs]: New field.
[arguments]: Add #:phases.
Diffstat (limited to 'gnu/packages/xml.scm')
-rw-r--r-- | gnu/packages/xml.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 78daa6c10c..a57a44f727 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -135,7 +135,19 @@ the entire document.") "0spvyb9d3hijs4ys3x64cfmilsynl8kv6clfahv8d4lvp86js0yg"))))) (build-system gnu-build-system) (arguments - '(#:configure-flags '("--disable-static"))) + '(#:phases (modify-phases %standard-phases + (add-after 'install 'move-static-library + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (static (assoc-ref outputs "static"))) + (mkdir-p (string-append static "/lib")) + (link (string-append out "/lib/libexpat.a") + (string-append static "/lib/libexpat.a")) + (delete-file (string-append out "/lib/libexpat.a")) + (substitute* (string-append out "/lib/libexpat.la") + (("old_library=.*") + "old_library=''")))))))) + (outputs '("out" "static")) (home-page "https://libexpat.github.io/") (synopsis "Stream-oriented XML parser library written in C") (description |