[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/12: gnu: zlib: Move static library to separate output.
From: |
Marius Bakke |
Subject: |
10/12: gnu: zlib: Move static library to separate output. |
Date: |
Wed, 1 Aug 2018 09:12:21 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit b90289dadc8ee15848ce911a2bdcd3ae8302d58c
Author: Marius Bakke <address@hidden>
Date: Mon Jul 30 17:09:07 2018 +0200
gnu: zlib: Move static library to separate output.
* gnu/packages/compression.scm (zlib)[outputs]: New field.
[arguments]: Add phase 'move-static-library'.
---
gnu/packages/compression.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index fdfa5ce..c206fd8 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -85,6 +85,7 @@
(base32
"18dighcs333gsvajvvgqp8l4cx7h1x7yx9gd5xacnk80spyykrf3"))))
(build-system gnu-build-system)
+ (outputs '("out" "static"))
(arguments
`(#:phases
(modify-phases %standard-phases
@@ -99,7 +100,15 @@
`((setenv "CHOST" ,(%current-target-system)))
'())
(invoke "./configure"
- (string-append "--prefix=" out))))))))
+ (string-append "--prefix=" out)))))
+ (add-after 'install 'move-static-library
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (static (assoc-ref outputs "static")))
+ (with-directory-excursion (string-append out "/lib")
+ (install-file "libz.a" (string-append static "/lib"))
+ (delete-file "libz.a")
+ #t)))))))
(home-page "https://zlib.net/")
(synopsis "Compression library")
(description
- branch core-updates updated (a4b7a1c -> 07ca716), Marius Bakke, 2018/08/01
- 05/12: gnu: libidn2: Don't build static library., Marius Bakke, 2018/08/01
- 07/12: gnu: libidn: Don't build static libraries., Marius Bakke, 2018/08/01
- 03/12: gnu: nettle: Move static libraries to separate output., Marius Bakke, 2018/08/01
- 06/12: gnu: libunistring: Don't install static library., Marius Bakke, 2018/08/01
- 08/12: gnu: shishi: Don't build static library., Marius Bakke, 2018/08/01
- 12/12: gnu: poppler: Update to 0.67.0., Marius Bakke, 2018/08/01
- 09/12: gnu: curl: Don't build static library., Marius Bakke, 2018/08/01
- 11/12: gnu: pango: Update to 1.42.3., Marius Bakke, 2018/08/01
- 10/12: gnu: zlib: Move static library to separate output.,
Marius Bakke <=
- 01/12: gnu: python-fonttools: Update license., Marius Bakke, 2018/08/01
- 02/12: gnu: python-pytest: Update to 3.6.4., Marius Bakke, 2018/08/01
- 04/12: gnu: libtasn1: Don't build static library., Marius Bakke, 2018/08/01