[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: gnu: protobuf: Add ‘static’ output.
From: |
Tobias Geerinckx-Rice |
Subject: |
05/09: gnu: protobuf: Add ‘static’ output. |
Date: |
Mon, 20 Nov 2017 20:50:57 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit ffe7eee59cd7e00e76096c5021a770aeb35093b9
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Thu Nov 16 20:45:21 2017 +0100
gnu: protobuf: Add ‘static’ output.
* gnu/packages/protobuf.scm (protobuf)[outputs]: New field.
[arguments]: Add new ‘move-static-libraries’ phase.
---
gnu/packages/protobuf.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index 2e681ca..02d58b1 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -46,6 +46,24 @@
"0y6cr4l7bwa6zvjv5flzr4cx28shk5h8dz99xw90v8qih954pcrb"))))
(build-system gnu-build-system)
(inputs `(("zlib" ,zlib)))
+ (outputs (list "out"
+ "static")) ; ~12 MiB of .a files
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'move-static-libraries
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Move static libraries to the "static" output.
+ (let* ((out (assoc-ref outputs "out"))
+ (lib (string-append out "/lib"))
+ (static (assoc-ref outputs "static"))
+ (slib (string-append static "/lib")))
+ (mkdir-p slib)
+ (for-each (lambda (file)
+ (install-file file slib)
+ (delete-file file))
+ (find-files lib "\\.a$"))
+ #t))))))
(home-page "https://github.com/google/protobuf")
(synopsis "Data encoding for remote procedure calls (RPCs)")
(description
- branch master updated (ebde40a -> 0056f4c), Tobias Geerinckx-Rice, 2017/11/20
- 01/09: gnu: eid-mw: Update to 4.3.4., Tobias Geerinckx-Rice, 2017/11/20
- 09/09: gnu: knot: Update licence information., Tobias Geerinckx-Rice, 2017/11/20
- 04/09: gnu: perl-devel-stacktrace: Update to 2.03., Tobias Geerinckx-Rice, 2017/11/20
- 02/09: gnu: nss: Mark up description., Tobias Geerinckx-Rice, 2017/11/20
- 05/09: gnu: protobuf: Add ‘static’ output.,
Tobias Geerinckx-Rice <=
- 08/09: gnu: knot: Support dnstap query logging., Tobias Geerinckx-Rice, 2017/11/20
- 06/09: gnu: Add fstrm., Tobias Geerinckx-Rice, 2017/11/20
- 03/09: gnu: btrfs-progs: Update to 4.14., Tobias Geerinckx-Rice, 2017/11/20
- 07/09: gnu: Use ‘license:’ prefix in (gnu packages protobuf)., Tobias Geerinckx-Rice, 2017/11/20