mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 19:35:25 -05:00
gnu: emacs-telega-server: use make-flags instead of modifying makefile.
* gnu/packages/emacs-xyz.scm (emacs-telega-server)[arguments]: Add the #:make-flags argument. and remove substitute* makefile. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
9afa15f690
commit
1ada5e28ba
1 changed files with 5 additions and 6 deletions
|
@ -26675,18 +26675,17 @@ (define-public emacs-telega-server
|
|||
"emacs-telega-test-env.patch"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
`(#:make-flags
|
||||
(list (string-append "CC=" ,(cc-for-target))
|
||||
(string-append "INSTALL_PREFIX="
|
||||
(assoc-ref %outputs "out") "/bin"))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'configure 'enter-subdirectory
|
||||
(lambda _ (chdir "server") #t))
|
||||
(replace 'configure
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(substitute* "Makefile"
|
||||
(("CC=cc") ,(string-append "CC=" (cc-for-target)))
|
||||
(("^(INSTALL_PREFIX=).*$" _all prefix)
|
||||
(string-append prefix out "/bin\n")))
|
||||
|
||||
(substitute* "run_tests.py"
|
||||
(("^(TELEGA_SERVER = ).*$" _all prefix)
|
||||
(string-append prefix
|
||||
|
|
Loading…
Reference in a new issue