mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
gnu: filters: Fix bogus use of DESTDIR.
* gnu/packages/toys.scm (filters)[arguments]: Set and respect the standard prefix variable.
This commit is contained in:
parent
dae2ac513d
commit
5446720292
|
@ -101,17 +101,17 @@ typing @command{sl} instead of @command{ls}.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags
|
`(#:make-flags
|
||||||
(list (string-append "CC=" ,(cc-for-target))
|
(list (string-append "CC=" ,(cc-for-target))
|
||||||
(string-append "DESTDIR=" %output))
|
(string-append "prefix=" (assoc-ref %outputs "out")))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(add-after 'unpack 'fix-install-directories
|
(add-after 'unpack 'respect-prefix
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("/usr/games")
|
(("/usr/games")
|
||||||
"/bin/")
|
"$(prefix)/bin/")
|
||||||
(("/usr/share/")
|
(("/usr")
|
||||||
"/share/"))
|
"$(prefix)"))
|
||||||
#t)))
|
#t)))
|
||||||
#:tests? #f)) ; no test suite
|
#:tests? #f)) ; no test suite
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Reference in a new issue