[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/10: gnu: grub: Use modify-phases and other minor cleanups.
From: |
Ludovic Courtès |
Subject: |
05/10: gnu: grub: Use modify-phases and other minor cleanups. |
Date: |
Wed, 28 Oct 2015 11:04:44 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 04e0eac1ed80c0ecba5a21658e951959b5e3a059
Author: Mark H Weaver <address@hidden>
Date: Sat Aug 15 01:22:06 2015 -0400
gnu: grub: Use modify-phases and other minor cleanups.
* gnu/packages/grub.scm (grub)[arguments]: Use modify-phases. Return #t
from
'patch-stuff' phase. Add 'patch-stuff' phase after 'unpack' instead of
before 'patch-source-shebangs'.
[inputs]: Add comment noting that 'fuse' would be a desirable input.
---
gnu/packages/grub.scm | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/grub.scm b/gnu/packages/grub.scm
index b1da394..4a7dca8 100644
--- a/gnu/packages/grub.scm
+++ b/gnu/packages/grub.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014 Ludovic Courtès <address@hidden>
+;;; Copyright © 2015 Mark H Weaver <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -84,25 +85,28 @@
(build-system gnu-build-system)
(arguments
'(#:configure-flags '("--disable-werror")
- #:phases (alist-cons-before
- 'patch-source-shebangs 'patch-stuff
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "grub-core/Makefile.in"
- (("/bin/sh") (which "sh")))
+ #:phases (modify-phases %standard-phases
+ (add-after
+ 'unpack 'patch-stuff
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "grub-core/Makefile.in"
+ (("/bin/sh") (which "sh")))
- ;; Make the font visible.
- (copy-file (assoc-ref inputs "unifont") "unifont.bdf.gz")
- (system* "gunzip" "unifont.bdf.gz")
+ ;; Make the font visible.
+ (copy-file (assoc-ref inputs "unifont") "unifont.bdf.gz")
+ (system* "gunzip" "unifont.bdf.gz")
- ;; TODO: Re-enable this test when we have Parted.
- (substitute* "tests/partmap_test.in"
- (("set -e") "exit 77")))
- %standard-phases)))
+ ;; TODO: Re-enable this test when we have Parted.
+ (substitute* "tests/partmap_test.in"
+ (("set -e") "exit 77"))
+
+ #t)))))
(inputs
`(;; ("lvm2" ,lvm2)
("gettext" ,gnu-gettext)
("freetype" ,freetype)
;; ("libusb" ,libusb)
+ ;; ("fuse" ,fuse)
("ncurses" ,ncurses)))
(native-inputs
`(("unifont" ,unifont)
- branch master updated (b1b9e5c -> 5c7bdc9), Ludovic Courtès, 2015/10/28
- 03/10: gnu: linux-libre: On MIPS, the linux image name is vmlinuz, not bzImage., Ludovic Courtès, 2015/10/28
- 05/10: gnu: grub: Use modify-phases and other minor cleanups.,
Ludovic Courtès <=
- 02/10: gnu: linux-libre: Add case for ARCH=mips., Ludovic Courtès, 2015/10/28
- 01/10: gnu: linux-libre: Add 'supported-systems' field: Intel only for now., Ludovic Courtès, 2015/10/28
- 06/10: gnu: grub: Install documentation., Ludovic Courtès, 2015/10/28
- 04/10: doc: Add texinfo to the requirements when building from git., Ludovic Courtès, 2015/10/28
- 08/10: substitute: 'lookup-narinfos' returns exactly a list of narinfos., Ludovic Courtès, 2015/10/28
- 10/10: gnu: python-debian: Avoid @itemize in description., Ludovic Courtès, 2015/10/28
- 09/10: substitute: Honor all the specified server URLs., Ludovic Courtès, 2015/10/28
- 07/10: substitute: 'http-multiple-get' follows 'fold' style., Ludovic Courtès, 2015/10/28