mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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.
This commit is contained in:
parent
31c70cce50
commit
4fa3f7967f
1 changed files with 14 additions and 2 deletions
|
@ -409,7 +409,12 @@ (define-public guile-sdl
|
|||
'(#: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 @@ (define-public guile-sdl
|
|||
;; 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.
|
||||
|
|
Loading…
Reference in a new issue