[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/49: gnu: RHash: Turn arguments into gexp.
From: |
guix-commits |
Subject: |
16/49: gnu: RHash: Turn arguments into gexp. |
Date: |
Fri, 23 Jul 2021 11:33:05 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit c5ba4725dee0b38dd836cdedea97b7968783c3a5
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jul 17 13:25:36 2021 +0200
gnu: RHash: Turn arguments into gexp.
* gnu/packages/crypto.scm (rhash)[arguments]: Turn into gexp, and use
#$OUTPUT
instead of the %OUTPUT variable.
---
gnu/packages/crypto.scm | 63 +++++++++++++++++++++++++------------------------
1 file changed, 32 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 2daef82..87ef3ec 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -81,6 +81,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
+ #:use-module (guix gexp)
#:use-module (guix build-system cargo)
#:use-module (guix build-system cmake)
#:use-module (guix build-system copy)
@@ -903,37 +904,37 @@ BLAKE.")
"15x28khy4k3sa0cfcyi13vj50d2nd7dha2p3gkq7i6z66ckq2323"))))
(build-system gnu-build-system)
(arguments
- `(#:configure-flags
- (list (string-append "--prefix=" (assoc-ref %outputs "out"))
- ,@(let ((target (%current-target-system)))
- (if target
- `((string-append "--target=" ,target)
- (string-append "--cc="
- (assoc-ref %build-inputs "cross-gcc")
- "/bin/" ,target "-gcc"))
- '())))
- #:make-flags
- ;; The binaries in /bin need some help finding librhash.so.0.
- (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
- #:test-target "test" ; ‘make check’ just checks the sources
- #:phases
- (modify-phases %standard-phases
- (replace 'configure
- ;; ./configure is not GNU autotools' and doesn't gracefully handle
- ;; unrecognized options, so we must call it manually.
- (lambda* (#:key configure-flags #:allow-other-keys)
- (apply invoke "./configure" configure-flags)))
- (add-before 'check 'patch-/bin/sh
- (lambda _
- (substitute* "Makefile"
- (("/bin/sh") (which "sh")))
- #t))
- (add-after 'install 'install-library-extras
- (lambda* (#:key make-flags #:allow-other-keys)
- (apply invoke
- "make" "-C" "librhash"
- "install-lib-headers" "install-so-link"
- make-flags))))))
+ (list #:configure-flags
+ #~(list (string-append "--prefix=" #$output)
+ #$@(let ((target (%current-target-system)))
+ (if target
+ #~((string-append "--target=" #$target)
+ (string-append "--cc="
+ (assoc-ref %build-inputs
"cross-gcc")
+ "/bin/" #$target "-gcc"))
+ #~())))
+ #:make-flags
+ ;; The binaries in /bin need some help finding librhash.so.0.
+ #~(list (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib"))
+ #:test-target "test" ; ‘make check’ just checks the sources
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'build 'configure
+ ;; ./configure is not GNU autotools' and doesn't gracefully
handle
+ ;; unrecognized options, so we must call it manually.
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ (apply invoke "./configure" configure-flags)))
+ (add-before 'check 'patch-/bin/sh
+ (lambda _
+ (substitute* "Makefile"
+ (("/bin/sh") (which "sh")))))
+ (add-after 'install 'install-library-extras
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke
+ "make" "-C" "librhash"
+ "install-lib-headers" "install-so-link"
+ make-flags))))))
(home-page "https://sourceforge.net/projects/rhash/")
(synopsis "Utility for computing hash sums")
(description "RHash is a console utility for calculation and verification
- 13/49: gnu: glibc: Remove obsolete patch., (continued)
- 13/49: gnu: glibc: Remove obsolete patch., guix-commits, 2021/07/23
- 14/49: gnu: commencement: Decouple python-boot0 from python., guix-commits, 2021/07/23
- 15/49: gnu: tzdata-for-tests: Update to 2021a., guix-commits, 2021/07/23
- 11/49: gnu: Python: Update to 3.9.6., guix-commits, 2021/07/23
- 17/49: gnu: RHash: Update to 1.4.2., guix-commits, 2021/07/23
- 20/49: gnu: coreutils-minimal: Do not build documentation., guix-commits, 2021/07/23
- 21/49: gnu: Perl: Resolve TODO., guix-commits, 2021/07/23
- 22/49: build-system/cmake: Define '%build-inputs' when cross-compiling., guix-commits, 2021/07/23
- 23/49: gnu: nghttp2: Update to 1.44.0., guix-commits, 2021/07/23
- 10/49: gnu: glib-networking: Remove unused input., guix-commits, 2021/07/23
- 16/49: gnu: RHash: Turn arguments into gexp.,
guix-commits <=
- 24/49: gnu: libuv: Update to 1.41.1., guix-commits, 2021/07/23
- 27/49: gnu: attr: Update to 2.5.1., guix-commits, 2021/07/23
- 29/49: gnu: fontconfig: Update to 2.13.94., guix-commits, 2021/07/23
- 25/49: gnu: ncurses: Update to 6.2.20210619., guix-commits, 2021/07/23
- 30/49: gnu: libspectre: Update to 0.2.9., guix-commits, 2021/07/23
- 33/49: gnu: util-linux: Update to 2.37., guix-commits, 2021/07/23
- 34/49: gnu: poppler: Update to 21.07.0., guix-commits, 2021/07/23
- 38/49: gnu: libgcrypt: Update to 1.8.8., guix-commits, 2021/07/23
- 18/49: gnu: Perl: Update to 5.34.0., guix-commits, 2021/07/23
- 19/49: gnu: Perl: Update cross-compilation code., guix-commits, 2021/07/23