[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/12: gnu: nettle: Move static libraries to separate output.
From: |
Marius Bakke |
Subject: |
03/12: gnu: nettle: Move static libraries to separate output. |
Date: |
Wed, 1 Aug 2018 09:12:20 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit b4052c96ee252bd65ede6b7f0983942cb653a36c
Author: Marius Bakke <address@hidden>
Date: Mon Jul 30 16:22:04 2018 +0200
gnu: nettle: Move static libraries to separate output.
* gnu/packages/nettle.scm (nettle-2)[outputs]: Add "static".
[arguments]: Add #:phases.
---
gnu/packages/nettle.scm | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/nettle.scm b/gnu/packages/nettle.scm
index 67a3062..1212f32 100644
--- a/gnu/packages/nettle.scm
+++ b/gnu/packages/nettle.scm
@@ -44,8 +44,22 @@
;; $libdir, which is not the case by default. Work around it.
'(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out")
- "/lib"))))
- (outputs '("out" "debug"))
+ "/lib"))
+ #:phases (modify-phases %standard-phases
+ (add-after 'install 'move-static-libraries
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (slib (string-append (assoc-ref outputs "static")
+ "/lib")))
+ (mkdir-p slib)
+ (with-directory-excursion (string-append out "/lib")
+ (for-each (lambda (ar)
+ (rename-file ar (string-append
+ slib "/"
+ (basename ar))))
+ (find-files "." "\\.a$")))
+ #t))))))
+ (outputs '("out" "debug" "static"))
(native-inputs `(("m4" ,m4)))
(propagated-inputs `(("gmp" ,gmp)))
(home-page "https://www.lysator.liu.se/~nisse/nettle/")
- 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 <=
- 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, 2018/08/01
- 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