gnu: yoshimi: Use gexp.

* gnu/packages/music.scm (yoshimi)[arguments]: Use gexp and drop trailing #t
from build phases.
This commit is contained in:
Ricardo Wurmus 2023-02-07 11:40:04 +01:00
parent 2774640996
commit dd62d94989
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3124,31 +3124,30 @@ capabilities, custom envelopes, effects, etc.")
(base32 "1axrbk1qwsiq77g5957db744481zb2v158psnk2w530wxhls2442")))) (base32 "1axrbk1qwsiq77g5957db744481zb2v158psnk2w530wxhls2442"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f ; there are no tests (list
#:configure-flags #:tests? #f ; there are no tests
(list (string-append "-DCMAKE_INSTALL_DATAROOTDIR=" #:configure-flags
(assoc-ref %outputs "out") "/share")) #~(list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
#:phases #$output "/share"))
(modify-phases %standard-phases #:phases
(add-before 'configure 'enter-dir #~(modify-phases %standard-phases
(lambda _ (chdir "src") #t)) (add-before 'configure 'enter-dir
;; Move SSE compiler optimization flags from generic target to (lambda _ (chdir "src")))
;; athlon64 and core2 targets, because otherwise the build would fail (add-after 'unpack 'fix-paths
;; on non-Intel machines. (lambda _
(add-after 'unpack 'fix-paths (substitute* (list "src/Interface/InterChange.cpp"
(lambda* (#:key outputs #:allow-other-keys) "src/Misc/Bank.cpp"
(substitute* (list "src/Interface/InterChange.cpp" "src/Misc/Config.cpp")
"src/Misc/Bank.cpp" (("/usr/share") (string-append #$output "/share")))))
"src/Misc/Config.cpp") ;; Move SSE compiler optimization flags from generic target to
(("/usr/share") (string-append (assoc-ref outputs "out") ;; athlon64 and core2 targets, because otherwise the build would fail
"/share"))))) ;; on non-Intel machines.
(add-after 'unpack 'remove-sse-flags-from-generic-target (add-after 'unpack 'remove-sse-flags-from-generic-target
(lambda _ (lambda _
(substitute* "src/CMakeLists.txt" (substitute* "src/CMakeLists.txt"
(("-msse -msse2 -mfpmath=sse") "") (("-msse -msse2 -mfpmath=sse") "")
(("-march=(athlon64|core2)" flag) (("-march=(athlon64|core2)" flag)
(string-append flag " -msse -msse2 -mfpmath=sse"))) (string-append flag " -msse -msse2 -mfpmath=sse"))))))))
#t)))))
(inputs (inputs
(list alsa-lib (list alsa-lib
boost boost