gnu: maxima: Patch hardcoded paths.
* gnu/packages/maths.scm: (maxima): Patch hardcoded paths. [arguments]: Add the phase 'patch-paths' to replace references to sed, dirname, and head with direct references to the store. [inputs]: Add sed.
This commit is contained in:
parent
48dbb1bf2b
commit
fc9c47bd7c
|
@ -2705,6 +2705,7 @@ to BMP, JPEG or PNG image formats.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("gcl" ,gcl)
|
`(("gcl" ,gcl)
|
||||||
("gnuplot" ,gnuplot) ;for plots
|
("gnuplot" ,gnuplot) ;for plots
|
||||||
|
("sed" ,sed)
|
||||||
("tk" ,tk))) ;Tcl/Tk is used by 'xmaxima'
|
("tk" ,tk))) ;Tcl/Tk is used by 'xmaxima'
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("texinfo" ,texinfo)
|
`(("texinfo" ,texinfo)
|
||||||
|
@ -2727,6 +2728,17 @@ to BMP, JPEG or PNG image formats.")
|
||||||
#:make-flags (list "TMPDIR=/tmp")
|
#:make-flags (list "TMPDIR=/tmp")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-paths
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let* ((sed (string-append (assoc-ref inputs "sed") "/bin/sed"))
|
||||||
|
(coreutils (assoc-ref inputs "coreutils"))
|
||||||
|
(dirname (string-append coreutils "/bin/dirname"))
|
||||||
|
(head (string-append coreutils "/bin/head")))
|
||||||
|
(substitute* "src/maxima.in"
|
||||||
|
(("sed ") (string-append sed " "))
|
||||||
|
(("dirname") dirname)
|
||||||
|
(("head") head))
|
||||||
|
#t)))
|
||||||
(add-before 'check 'pre-check
|
(add-before 'check 'pre-check
|
||||||
(lambda _
|
(lambda _
|
||||||
(chmod "src/maxima" #o555)
|
(chmod "src/maxima" #o555)
|
||||||
|
|
Loading…
Reference in New Issue