[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: gnu: guile-sdl: Remove 2.0-specific bits.
From: |
Ludovic Courtès |
Subject: |
01/12: gnu: guile-sdl: Remove 2.0-specific bits. |
Date: |
Sat, 14 Oct 2017 11:09:09 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 4fa3f7967fb3ea271b52a2fd78c0bcc3feef795e
Author: Ludovic Courtès <address@hidden>
Date: Sat Oct 14 15:21:22 2017 +0200
gnu: guile-sdl: Remove 2.0-specific bits.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Add #:modules.
In 'fix-env-and-patch' phase, use 'open-pipe*' to determine the
effective version; use it in makefiles.
---
gnu/packages/sdl.scm | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 0962ffe..bdf36f3 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -409,7 +409,12 @@ directory.")
'(#:configure-flags
(list (string-append "--with-sdl-prefix="
(assoc-ref %build-inputs "sdl-union")))
+ #:modules ((ice-9 popen)
+ (guix build utils)
+ (guix build gnu-build-system))
+
#:parallel-build? #f ; parallel build fails
+
#:phases
(modify-phases %standard-phases
(add-before 'configure 'fix-env-and-patch
@@ -418,9 +423,16 @@ directory.")
;; SDL_image needs to dlopen libjpeg in the test suite.
(setenv "LD_LIBRARY_PATH"
(string-append (assoc-ref inputs "libjpeg") "/lib"))
- ;; Change the site directory /site/2.0 like Guile expects.
+
+ ;; Change the site directory /site/X.Y like Guile expects.
(substitute* "build-aux/guile-baux/re-prefixed-site-dirs"
- (("\"/site\"") "\"/site/2.0\""))
+ (("\"/site\"")
+ (let ((effective
+ (read
+ (open-pipe* OPEN_READ
+ "guile" "-c"
+ "(write (effective-version))"))))
+ (string-append "\"/site/" effective "\""))))
;; Skip tests that rely on sound support, which is unavailable in
;; the build environment.
- branch master updated (31c70cc -> b359368), Ludovic Courtès, 2017/10/14
- 01/12: gnu: guile-sdl: Remove 2.0-specific bits.,
Ludovic Courtès <=
- 06/12: gnu: Add emacs-julia-mode., Ludovic Courtès, 2017/10/14
- 04/12: gnu: games: Add openrct2., Ludovic Courtès, 2017/10/14
- 07/12: gnu: emacs-ess: Update to 16.10., Ludovic Courtès, 2017/10/14
- 09/12: gnu: Add python-cbor., Ludovic Courtès, 2017/10/14
- 05/12: gnu: Add emacs-easy-kill., Ludovic Courtès, 2017/10/14
- 02/12: gnu: guile-sly: Remove 2.0-specific bits., Ludovic Courtès, 2017/10/14
- 08/12: gnu: neomutt: Update to 20171013., Ludovic Courtès, 2017/10/14
- 12/12: gnu: Add python-pyqrcode., Ludovic Courtès, 2017/10/14
- 03/12: gnu: guile-sdl, guile-sly: Switch to Guile 2.2., Ludovic Courtès, 2017/10/14
- 10/12: gnu: Add python-py-ubjson., Ludovic Courtès, 2017/10/14