[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/34: gnu: hwinfo: Make with flags.
From: |
guix-commits |
Subject: |
26/34: gnu: hwinfo: Make with flags. |
Date: |
Tue, 18 Jul 2023 21:11:59 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 4c20d7a661f457f52b7bc80f1c99c4f25e5af0d2
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 16 02:00:01 2023 +0200
gnu: hwinfo: Make with flags.
* gnu/packages/hardware.scm (hwinfo)[arguments]: Move CC, LIBDIR, and
VERSION from hacky substitutions to superior #:make-flags. Honour them
in the 'build phase.
---
gnu/packages/hardware.scm | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 68f06917c6..2566339a2a 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -362,6 +362,10 @@ operability and find drivers.")
(arguments
(list
#:tests? #f ; no test-suite available
+ #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "LIBDIR=" #$output:lib "/lib")
+ (string-append "VERSION=" #$version))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch
@@ -378,10 +382,6 @@ operability and find drivers.")
(string-append "OUTPUT_DIRECTORY = " doc "/libhd")))
;; Correct values of the version and install directories.
(substitute* "Makefile"
- (("VERSION.*\\:=.*$")
- (string-append "VERSION := " #$version "\n"))
- (("LIBDIR.*\\?=.*$")
- (string-append "LIBDIR ?= " lib "\n"))
(("/usr/include") include)
(("/(usr|var)/(lib|lib64)") lib)
(("/usr/sbin") sbin)
@@ -400,9 +400,8 @@ operability and find drivers.")
(delete 'configure)
(replace 'build
(lambda* (#:key make-flags #:allow-other-keys)
- (setenv "CC" #$(cc-for-target))
- (invoke "make" "shared")
- (invoke "make" "doc")))
+ (apply invoke "make" "shared" make-flags)
+ (apply invoke "make" "doc" make-flags)))
(add-after 'install 'install-man-pages
(lambda _
(for-each
- 02/34: gnu: xtensor: Update to 0.24.6., (continued)
- 02/34: gnu: xtensor: Update to 0.24.6., guix-commits, 2023/07/18
- 06/34: gnu: whois: Remove input labels., guix-commits, 2023/07/18
- 08/34: gnu: ntp: Update to 4.2.8p17., guix-commits, 2023/07/18
- 09/34: gnu: ntp: Remove input labels., guix-commits, 2023/07/18
- 12/34: gnu: spiped: Update to 1.6.2., guix-commits, 2023/07/18
- 10/34: gnu: ntp: Use G-expressions., guix-commits, 2023/07/18
- 13/34: gnu: spiped: Use G-expressions., guix-commits, 2023/07/18
- 15/34: gnu: traceroute: Use G-expressions., guix-commits, 2023/07/18
- 19/34: gnu: liblxi: Update to 1.20., guix-commits, 2023/07/18
- 29/34: gnu: libqb: Fix cross-compilation., guix-commits, 2023/07/18
- 26/34: gnu: hwinfo: Make with flags.,
guix-commits <=
- 30/34: gnu: libqb: Update to 2.0.7., guix-commits, 2023/07/18
- 33/34: gnu: bcachefs-tools: Update to 0.1-17.c8bec83., guix-commits, 2023/07/18
- 34/34: gnu: python-wand: Fix build., guix-commits, 2023/07/18
- 23/34: gnu: hwinfo: Update to 23.1., guix-commits, 2023/07/18
- 25/34: gnu: hwinfo: Factorise 'install-man-pages., guix-commits, 2023/07/18
- 14/34: gnu: traceroute: Update to 2.1.2., guix-commits, 2023/07/18
- 16/34: gnu: wireshark: Update to 4.0.7., guix-commits, 2023/07/18
- 17/34: gnu: gcab: Update to 1.6., guix-commits, 2023/07/18
- 18/34: gnu: gcab: Remove input labels., guix-commits, 2023/07/18
- 20/34: gnu: liblxi: Edit description., guix-commits, 2023/07/18