all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#73893] [PATCH] gnu: faust-2: Update to 2.75.7.
@ 2024-10-19 22:57 Nicolas Graves via Guix-patches via
  2024-10-23 11:15 ` bug#73893: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2024-10-19 22:57 UTC (permalink / raw)
  To: 73893; +Cc: Nicolas Graves

* gnu/packages/audio.scm (faust-2): Update to 2.75.7, update comments
and switch to gexps.
[arguments]<#:configure-flags>: Use it here...
<#:phases>: ...and here in phase 'configure.
[native-inputs]: Remove emacs-minimal and xxd. Update llvm to
llvm-18. Improve style.
---
 gnu/packages/audio.scm | 51 +++++++++++++++++++++---------------------
 1 file changed, 26 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 4fde88d454..0bff16e73b 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -2268,7 +2268,7 @@ (define-public faust-0.9.67
 (define-public faust-2
   (package
     (inherit faust)
-    (version "2.41.1")
+    (version "2.75.7")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://github.com/grame-cncm/faust/"
@@ -2276,33 +2276,34 @@ (define-public faust-2
                                   "/faust-" version ".tar.gz"))
               (sha256
                (base32
-                "0gk8ifxrbykq7ay0nvjns8fjryhp0wfhv5npgrl8xpgw9wfmw53j"))))
+                "11ww02zmj3vnva1w52hs9wkxvhwwf53agklyzm2c7gysw0jfvkw9"))))
     (build-system cmake-build-system)
     (arguments
-     `(#:tests? #f ; no tests
-       #:phases
-       (modify-phases %standard-phases
-         ;; The upstream package uses make to run cmake during the build stage.
-         ;; Here we ignore the Makefile and call cmake directly.
-         (replace 'configure
-           (lambda _
-             (chdir "build")
-             (invoke "cmake" "-C" "backends/all.cmake"
-                     (string-append "-DCMAKE_INSTALL_PREFIX="
-                      (assoc-ref %outputs "out")))))
-         ;; The sound2faust tool would be built in the Makefile's "world" target
-         (add-after 'install 'sound2faust
-           (lambda _
-             (chdir "../tools/sound2faust")
-             (setenv "PREFIX" (assoc-ref %outputs "out"))
-             (invoke "make")
-             (invoke "make" "install"))))))
+     (list
+      ;; There are tests, but they are unit/regression tests scattered in 17
+      ;; different test directories, and little information indicating whether
+      ;; they are worth running for Guix.  Ignore tests for now.
+      #:tests? #f
+      #:configure-flags
+      #~(list "-C" "backends/all.cmake"
+              (string-append "-DCMAKE_INSTALL_PREFIX=" #$output))
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; The upstream package uses make to run cmake during the build stage.
+          ;; Here we ignore the Makefile and call cmake directly.
+          (replace 'configure
+            (lambda* (#:key configure-flags #:allow-other-keys)
+              (chdir "build")
+              (apply invoke "cmake" configure-flags)))
+          ;; The sound2faust tool would be built in the Makefile's "world" target
+          (add-after 'install 'sound2faust
+            (lambda _
+              (chdir "../tools/sound2faust")
+              (setenv "PREFIX" #$output)
+              (invoke "make")
+              (invoke "make" "install"))))))
     (native-inputs
-     `(("llvm" ,llvm)
-       ("which" ,which)
-       ("xxd" ,xxd)
-       ("ctags" ,emacs-minimal)  ; for ctags
-       ("pkg-config" ,pkg-config)))
+     (list llvm-18 pkg-config which))
     (inputs
      (list libsndfile libmicrohttpd ncurses openssl zlib))))
 
-- 
2.46.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#73893: [PATCH] gnu: faust-2: Update to 2.75.7.
  2024-10-19 22:57 [bug#73893] [PATCH] gnu: faust-2: Update to 2.75.7 Nicolas Graves via Guix-patches via
@ 2024-10-23 11:15 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-10-23 11:15 UTC (permalink / raw)
  To: Nicolas Graves; +Cc: 73893-done

Nicolas Graves <ngraves@ngraves.fr> skribis:

> * gnu/packages/audio.scm (faust-2): Update to 2.75.7, update comments
> and switch to gexps.
> [arguments]<#:configure-flags>: Use it here...
> <#:phases>: ...and here in phase 'configure.
> [native-inputs]: Remove emacs-minimal and xxd. Update llvm to
> llvm-18. Improve style.

Applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-23 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-19 22:57 [bug#73893] [PATCH] gnu: faust-2: Update to 2.75.7 Nicolas Graves via Guix-patches via
2024-10-23 11:15 ` bug#73893: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.