guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: emacs-telega-server: use make-flags instead of modifying mak


From: guix-commits
Subject: 02/03: gnu: emacs-telega-server: use make-flags instead of modifying makefile.
Date: Mon, 13 Sep 2021 16:30:01 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit 1ada5e28ba695825d6287b6ac6a69f016777eb40
Author: Z572 <873216071@qq.com>
AuthorDate: Mon Sep 6 18:44:38 2021 +0800

    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>
---
 gnu/packages/emacs-xyz.scm | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 1750f00..9bb0470 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -26675,18 +26675,17 @@ other @code{helm-type-file} sources such as 
@code{helm-locate}.")
                         "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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]