diff options
author | Marius Bakke <mbakke@fastmail.com> | 2018-07-14 22:39:01 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2018-07-19 00:52:21 +0200 |
commit | 45719c1dfb7bdce3c91086e5bed26643dccf8191 (patch) | |
tree | 848d20bfad019b10eb07cb996a865cd0e10ee974 /gnu | |
parent | 5212c52ce524ebfd78fae5bc68a0499148f3bf80 (diff) | |
download | patches-45719c1dfb7bdce3c91086e5bed26643dccf8191.tar patches-45719c1dfb7bdce3c91086e5bed26643dccf8191.tar.gz |
gnu: bzip2: Add static output.
* gnu/packages/compression.scm (bzip2)[arguments]: Add phase for moving static
library.
[outputs]: New field.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/compression.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 7453b07eaf..c82edcc2ad 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -293,6 +293,14 @@ file; as a result, it is often used in conjunction with \"tar\", resulting in (symlink so-file base) (loop so-file (cdr numbers)))))) #t))) + (add-after 'install-shared-lib 'move-static-lib + (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 "libbz2.a" (string-append static "/lib")) + (delete-file "libbz2.a") + #t)))) (add-after 'install-shared-lib 'patch-scripts (lambda* (#:key outputs inputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out"))) @@ -307,6 +315,7 @@ file; as a result, it is often used in conjunction with \"tar\", resulting in ,@(if (%current-target-system) '(#:tests? #f) '()))) + (outputs '("out" "static")) (synopsis "High-quality data compression program") (description "bzip2 is a freely available, patent free (see below), high-quality data |