[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: gnu: rosegarden: Improve package style.
From: |
guix-commits |
Subject: |
05/09: gnu: rosegarden: Improve package style. |
Date: |
Wed, 14 Dec 2022 15:16:14 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit ef7ad7d451433d4f1505d265b623a1903525f03c
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed Dec 14 18:44:04 2022 +0100
gnu: rosegarden: Improve package style.
* gnu/packages/music.scm (rosegarden)[arguments]: Use G-expressions and
SEARCH-INPUT-FILE.
[inputs]: Use BASH-MINIMAL instead of BASH.
---
gnu/packages/music.scm | 103 +++++++++++++++++++++++++------------------------
1 file changed, 52 insertions(+), 51 deletions(-)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index bf502e0e80..614eb57791 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -5019,58 +5019,59 @@ specification and header.")
(base32 "061xy3flmj7bllibkp5wzdycvghfxvyzdr9g9yrr5q3m70a7wznz"))))
(build-system cmake-build-system)
(arguments
- `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-tests
- (lambda _
- (substitute* "CMakeLists.txt"
- (("BUILD_TESTING OFF") "BUILD_TESTING ON")
- ;; Make tests work.
- ((" -fvisibility=hidden") ""))))
- (add-after 'unpack 'fix-references
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "src/gui/general/ProjectPackager.cpp"
- (("\"flac\\>")
- (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
- (("\"wavpack\\>")
- (string-append "\"" (assoc-ref inputs "wavpack")
"/bin/wavpack"))
- (("\"wvunpack\\>")
- (string-append "\"" (assoc-ref inputs "wavpack")
"/bin/wvunpack"))
- (("\"bash\\>")
- (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
- (("\"tar\\>")
- (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
- (substitute* "src/gui/general/LilyPondProcessor.cpp"
- (("\"convert-ly\\>")
- (string-append "\"" (assoc-ref inputs "lilypond")
"/bin/convert-ly"))
- (("\"lilypond\\>")
- (string-append "\"" (assoc-ref inputs "lilypond")
"/bin/lilypond")))))
- (add-after 'unpack 'make-reproducible
- (lambda _
- ;; Prevent Last-Modified from being written.
- ;; The "*.qm" files that are used in locale.qrc would have a new
- ;; mtime otherwise that is written into qrc_locale.cpp in the
- ;; end - except when we disable it.
- (substitute* "src/CMakeLists.txt"
- (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
- "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
- ;; Extraneous.
- ;;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
- ;; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS
--format-version 1)")
- )
- ;; Make hashtable traversal order predicable.
- (setenv "QT_RCC_TEST" "1"))) ; important
- (add-before 'check 'prepare-check
- (lambda _
- (setenv "QT_QPA_PLATFORM" "offscreen")
- ;; Tests create files in $HOME/.local/share/rosegarden .
- (mkdir-p "/tmp/foo")
- (setenv "HOME" "/tmp/foo")
- (setenv "XDG_RUNTIME_DIR" "/tmp/foo"))))))
+ (list
+ #:configure-flags #~(list "-DCMAKE_BUILD_TYPE=Release")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("BUILD_TESTING OFF") "BUILD_TESTING ON")
+ ;; Make tests work.
+ ((" -fvisibility=hidden") ""))))
+ (add-after 'unpack 'fix-references
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/gui/general/ProjectPackager.cpp"
+ (("\"flac\\>")
+ (string-append "\"" (search-input-file inputs "/bin/flac")))
+ (("\"wavpack\\>")
+ (string-append "\"" (search-input-file inputs
"/bin/wavpack")))
+ (("\"wvunpack\\>")
+ (string-append "\"" (search-input-file inputs
"/bin/wvunpack")))
+ (("\"bash\\>")
+ (string-append "\"" (search-input-file inputs "/bin/bash")))
+ (("\"tar\\>")
+ (string-append "\"" (search-input-file inputs "/bin/tar"))))
+ (substitute* "src/gui/general/LilyPondProcessor.cpp"
+ (("\"convert-ly\\>")
+ (string-append "\"" (search-input-file inputs
"/bin/convert-ly")))
+ (("\"lilypond\\>")
+ (string-append "\"" (search-input-file inputs
"/bin/lilypond"))))))
+ (add-after 'unpack 'make-reproducible
+ (lambda _
+ ;; Prevent Last-Modified from being written.
+ ;; The "*.qm" files that are used in locale.qrc would have a new
+ ;; mtime otherwise that is written into qrc_locale.cpp in the
+ ;; end - except when we disable it.
+ (substitute* "src/CMakeLists.txt"
+ (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
+ "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
+ ;; Extraneous.
+ ;;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
+ ;; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS
--format-version 1)")
+ )
+ ;; Make hashtable traversal order predicable.
+ (setenv "QT_RCC_TEST" "1"))) ; important
+ (add-before 'check 'prepare-check
+ (lambda _
+ (setenv "QT_QPA_PLATFORM" "offscreen")
+ ;; Tests create files in $HOME/.local/share/rosegarden .
+ (mkdir-p "/tmp/foo")
+ (setenv "HOME" "/tmp/foo")
+ (setenv "XDG_RUNTIME_DIR" "/tmp/foo"))))))
(inputs
(list alsa-lib
- bash
+ bash-minimal
dssi
flac
fftwf
@@ -5087,7 +5088,7 @@ specification and header.")
wavpack
zlib))
(native-inputs
- (list pkg-config qttools-5)) ;for qtlinguist
+ (list pkg-config qttools-5)) ;for qtlinguist
(synopsis "Music composition and editing environment based around a MIDI
sequencer")
(description "Rosegarden is a music composition and editing environment
- branch master updated (c6f81ff7a6 -> fa23fb86f7), guix-commits, 2022/12/14
- 04/09: gnu: rosegarden: Update to 22.12., guix-commits, 2022/12/14
- 02/09: gnu: flare-game: Update to 1.14., guix-commits, 2022/12/14
- 08/09: gnu: emacs-posframe: Update to 1.3.0., guix-commits, 2022/12/14
- 05/09: gnu: rosegarden: Improve package style.,
guix-commits <=
- 06/09: gnu: wireshark: Update to 4.0.2., guix-commits, 2022/12/14
- 09/09: gnu: fet: Update to 6.7.6., guix-commits, 2022/12/14
- 01/09: gnu: flare-engine: Update to 1.14., guix-commits, 2022/12/14
- 07/09: gnu: xournalpp: Update to 1.1.3., guix-commits, 2022/12/14
- 03/09: gnu: musescore: Update to 4.0., guix-commits, 2022/12/14