[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/43: gnu: libunistring: Do install static library.
From: |
Marius Bakke |
Subject: |
01/43: gnu: libunistring: Do install static library. |
Date: |
Tue, 21 Aug 2018 11:25:53 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit c0b3867c21d60c35dca6ecd44f00dc81afa87476
Author: Marius Bakke <address@hidden>
Date: Mon Aug 20 15:07:34 2018 +0200
gnu: libunistring: Do install static library.
...but do so to a separate output. This reverts commit
1f2d64e4a86fbd77cfd7c773a9621a001516e1ce.
* gnu/packages/libunistring.scm (libunistring)[outputs]: New field.
[arguments]: Add phase for moving libunistring.a. Remove #:configure-flags.
---
gnu/packages/libunistring.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/libunistring.scm b/gnu/packages/libunistring.scm
index debf3cc..fda839b 100644
--- a/gnu/packages/libunistring.scm
+++ b/gnu/packages/libunistring.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2017 Mathieu Othacehe <address@hidden>
;;; Copyright © 2017 Eric Bavier <address@hidden>
;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2018 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -43,13 +44,23 @@
(base32
"1mq57h06622m6qc5cv347fc3qk5mj840axw3c0vd7qmnwk1v53zb"))))
(propagated-inputs (libiconv-if-needed))
+ (outputs '("out" "static"))
(build-system gnu-build-system)
(arguments
;; Work around parallel build issue whereby C files may be compiled before
;; config.h is built: see <http://hydra.gnu.org/build/59381/nixlog/2/raw>
and
;;
<http://lists.openembedded.org/pipermail/openembedded-core/2012-April/059850.html>.
'(#:parallel-build? #f
- #: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")))
+ (with-directory-excursion (string-append out "/lib")
+ (install-file "libunistring.a"
+ (string-append static "/lib"))
+ (delete-file "libunistring.a")
+ #t)))))))
(synopsis "C library for manipulating Unicode strings")
(description
"GNU libunistring is a library providing functions to manipulate
- 13/43: gnu: python-more-itertools: Update to 4.3.0., (continued)
- 13/43: gnu: python-more-itertools: Update to 4.3.0., Marius Bakke, 2018/08/21
- 12/43: gnu: python-scandir: Update to 1.9.0., Marius Bakke, 2018/08/21
- 07/43: gnu: expat: Update to 2.2.6., Marius Bakke, 2018/08/21
- 11/43: gnu: python-pytest: Update to 3.7.2., Marius Bakke, 2018/08/21
- 10/43: gnu: python-pluggy: Update to 0.7.1., Marius Bakke, 2018/08/21
- 09/43: gnu: graphite2: Update to 1.3.12., Marius Bakke, 2018/08/21
- 08/43: gnu: libuv: Update to 1.23.0., Marius Bakke, 2018/08/21
- 05/43: gnu: glib: Update to 2.56.2., Marius Bakke, 2018/08/21
- 03/43: gnu: harfbuzz: Update to 1.8.8., Marius Bakke, 2018/08/21
- 06/43: gnu: cmake: Update to 3.12.1., Marius Bakke, 2018/08/21
- 01/43: gnu: libunistring: Do install static library.,
Marius Bakke <=
- 02/43: gnu: bootstrap-tarballs: Adjust to static outputs of zlib and libunistring., Marius Bakke, 2018/08/21
- 04/43: gnu: dbus: Update to 1.12.10., Marius Bakke, 2018/08/21