mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
gnu: zlib: Use G-expression.
* gnu/packages/compression.scm (zlib)[arguments]: Convert to gexp.
This commit is contained in:
parent
5aeb96103f
commit
a81a9ceb88
1 changed files with 31 additions and 33 deletions
|
@ -13,7 +13,7 @@
|
|||
;;; Copyright © 2016–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2016 David Craven <david@craven.ch>
|
||||
;;; Copyright © 2016, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
|
||||
;;; Copyright © 2016, 2018, 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
|
||||
;;; Copyright © 2016, 2018-2022 Marius Bakke <marius@gnu.org>
|
||||
;;; Copyright © 2017 Nikita <nikita@n0.is>
|
||||
;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
|
||||
;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
|
||||
|
@ -116,29 +116,27 @@ (define-public zlib
|
|||
(build-system gnu-build-system)
|
||||
(outputs '("out" "static"))
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(lambda _
|
||||
;; Zlib's home-made `configure' fails when passed
|
||||
;; extra flags like `--enable-fast-install', so we need to
|
||||
;; invoke it with just what it understand.
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(setenv "CC" ,(cc-for-target))
|
||||
(setenv "CC" #$(cc-for-target))
|
||||
;; 'configure' doesn't understand '--host'.
|
||||
,@(if (%current-target-system)
|
||||
`((setenv "CHOST" ,(%current-target-system)))
|
||||
'())
|
||||
#$@(if (%current-target-system)
|
||||
#~((setenv "CHOST" #$(%current-target-system)))
|
||||
#~())
|
||||
(invoke "./configure"
|
||||
(string-append "--prefix=" out)))))
|
||||
(string-append "--prefix=" #$output))))
|
||||
(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)))))))
|
||||
(lambda _
|
||||
(with-directory-excursion (string-append #$output "/lib")
|
||||
(install-file "libz.a" (string-append #$output:static
|
||||
"/lib"))
|
||||
(delete-file "libz.a")))))))
|
||||
(home-page "https://zlib.net/")
|
||||
(synopsis "Compression library")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue