Archived
1
0
Fork 0

gnu: libarchive: Use G-expressions.

* gnu/packages/backup.scm (libarchive)[arguments]: Convert to gexps.
This commit is contained in:
Marius Bakke 2022-06-26 11:25:28 +02:00
parent 2ff1a14bda
commit 1d221b7fea
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -13,7 +13,7 @@
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2019 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2019, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
@ -260,16 +260,16 @@ backups (called chunks) to allow easy burning to CD/DVD.")
zlib
`(,zstd "lib")))
(arguments
`(#:configure-flags '("--disable-static")
(list
#:configure-flags #~'("--disable-static")
#:phases
(modify-phases %standard-phases
#~(modify-phases %standard-phases
(add-before 'build 'patch-pwd
(lambda _
(substitute* "Makefile"
(("/bin/pwd") (which "pwd")))
#t))
(("/bin/pwd") (which "pwd")))))
(replace 'check
(lambda* (#:key (tests? #t) #:allow-other-keys)
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
;; XXX: The test_owner_parse, test_read_disk, and
;; test_write_disk_lookup tests expect user 'root' to
@ -290,7 +290,7 @@ backups (called chunks) to allow easy burning to CD/DVD.")
(format #t "Test suite not run.~%"))))
(add-after 'install 'add--L-in-libarchive-pc
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(let* ((out #$output)
(lib (string-append out "/lib"))
(nettle (assoc-ref inputs "nettle"))
(libxml2 (assoc-ref inputs "libxml2"))
@ -312,8 +312,7 @@ backups (called chunks) to allow easy burning to CD/DVD.")
(("-lzstd")
(string-append "-L" zstd "/lib -lzstd"))
(("-lbz2")
(string-append "-L" bzip2 "/lib -lbz2")))
#t))))))
(string-append "-L" bzip2 "/lib -lbz2")))))))))
(home-page "https://libarchive.org/")
(synopsis "Multi-format archive and compression library")
(description