guix-commits
[Top][All Lists]
Advanced

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

146/150: gnu: meson: Match shebang instead of setuptools-specific line.


From: guix-commits
Subject: 146/150: gnu: meson: Match shebang instead of setuptools-specific line.
Date: Sun, 24 Apr 2022 05:12:51 -0400 (EDT)

lbraun pushed a commit to branch wip-python-pep517
in repository guix.

commit 84c3af5cf41d402847adb33b11897d34f5a14179
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Wed Jan 19 09:48:44 2022 +0100

    gnu: meson: Match shebang instead of setuptools-specific line.
    
    * gnu/packages/build-tools.scm (meson)[arguments]: Replace substitute*
    pattern.
---
 gnu/packages/build-tools.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm
index 437b0d3550..b343467699 100644
--- a/gnu/packages/build-tools.scm
+++ b/gnu/packages/build-tools.scm
@@ -289,12 +289,12 @@ files and generates build instructions for the Ninja 
build system.")
                              (python-version (assoc-ref inputs "python")))
                             (output (assoc-ref outputs "out")))
                         (substitute* (string-append output "/bin/meson")
-                          (("# EASY-INSTALL-ENTRY-SCRIPT")
-                           (format #f "\
+                          (("#!/(.+)" all)
+                           (format #f "~a\
 import sys
 sys.path.insert(0, '~a/lib/python~a/site-packages')
-# EASY-INSTALL-ENTRY-SCRIPT"
-                                   output python-version)))))))))
+"
+                                   all output python-version)))))))))
     (inputs (list python-wrapper ninja))
     (home-page "https://mesonbuild.com/";)
     (synopsis "Build system designed to be fast and user-friendly")



reply via email to

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