gnu: guile-sdl2: Install compiled files to the expected place.

* gnu/packages/sdl.scm (guile-sdl2)[arguments]: Add build phase
"patch-makefile".
This commit is contained in:
Ricardo Wurmus 2018-06-20 10:56:23 +02:00
parent 229e4d59f5
commit e5b77ccfe8
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -6,6 +6,7 @@
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@ -503,7 +504,16 @@ (define-public guile-sdl2
(string-append "--with-libsdl2-ttf-prefix="
(assoc-ref %build-inputs "sdl2-ttf"))
(string-append "--with-libsdl2-mixer-prefix="
(assoc-ref %build-inputs "sdl2-mixer")))))
(assoc-ref %build-inputs "sdl2-mixer")))
#:phases
(modify-phases %standard-phases
(add-after 'configure 'patch-makefile
(lambda _
;; Install compiled Guile files in the expected place.
(substitute* '("Makefile")
(("^godir = .*$")
"godir = $(moddir)\n"))
#t)))))
(native-inputs
`(("guile" ,guile-2.2)
("pkg-config" ,pkg-config)))