gnu: lilypond: Hardcode path to "gs" executable.

* gnu/packages/music.scm (lilypond)[arguments]: Add build phase
  "hardcode-path-to-gs".
master
Ricardo Wurmus 2015-10-11 11:24:20 +02:00
parent 2b10eb489c
commit a8bc747ae1
1 changed files with 16 additions and 8 deletions

View File

@ -206,14 +206,22 @@ you to define complex tempo maps for entire songs or performances.")
(assoc-ref %build-inputs "font-tex-gyre")
"/share/fonts/opentype/"))
#:phases
(alist-cons-before
'configure 'prepare-configuration
(lambda _
(substitute* "configure"
(("SHELL=/bin/sh") "SHELL=sh"))
(setenv "out" "")
#t)
%standard-phases)))
(modify-phases %standard-phases
(add-after 'unpack 'hardcode-path-to-gs
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "scm/backend-library.scm"
(("\\(search-executable '\\(\"gs\"\\)\\)")
(string-append "\""
(assoc-ref inputs "ghostscript")
"/bin/gs"
"\"" )))
#t))
(add-before 'configure 'prepare-configuration
(lambda _
(substitute* "configure"
(("SHELL=/bin/sh") "SHELL=sh"))
(setenv "out" "")
#t)))))
(inputs
`(("guile" ,guile-1.8)
("font-dejavu" ,font-dejavu)