diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-05-15 09:49:34 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-05-15 10:28:01 +0200 |
| commit | 88b82d08ad0be573e3d9775fcfc422570394dcce (patch) | |
| tree | de0587022758971112918e34affa6e4c330fff5e /gnu | |
| parent | ae8ff7c8c06e3c52b28af850400a1082cf3bee28 (diff) | |
gnu: papagayo: Drop input labels.
* gnu/packages/animation.scm (papagayo)[inputs]: Remove labels.
[arguments]: Update phases to adjust to label removal; remove trailing #T; use
G-expressions for output references.
Change-Id: I959ff73f190e855988061a5aba094227ba5fcff8
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/animation.scm | 63 |
1 files changed, 28 insertions, 35 deletions
diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm index fe625a50581..ebafe0aea76 100644 --- a/gnu/packages/animation.scm +++ b/gnu/packages/animation.scm @@ -294,44 +294,37 @@ language.") (snippet '(begin (delete-file-recursively "libsndfile_1.0.19") - (delete-file-recursively "libsndfile_1.0.25") - #t)))) + (delete-file-recursively "libsndfile_1.0.25"))))) (build-system gnu-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'configure - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((libsndfile (assoc-ref inputs "libsndfile"))) - ;; Do not use bundled libsndfile sources - (substitute* "Papagayo.pro" - (("else \\{") - (string-append "\nINCLUDEPATH += " libsndfile - "/include" - "\nLIBS +=" libsndfile - "/lib/libsndfile.so\n" - "win32 {")))) - (invoke "qmake" - (string-append "DESTDIR=" - (assoc-ref outputs "out") - "/bin")))) - ;; Ensure that all required Qt plugins are found at runtime. - (add-after 'install 'wrap-executable - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (qt '("qt" "qtmultimedia-5"))) - (wrap-program (string-append out "/bin/Papagayo") - `("QT_PLUGIN_PATH" ":" prefix - ,(map (lambda (label) - (string-append (assoc-ref inputs label) - "/lib/qt5/plugins/")) - qt))) - #t)))))) + (list + #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs #:allow-other-keys) + (let ((libsndfile (assoc-ref inputs "libsndfile"))) + ;; Do not use bundled libsndfile sources + (substitute* "Papagayo.pro" + (("else \\{") + (string-append "\nINCLUDEPATH += " libsndfile + "/include" + "\nLIBS +=" libsndfile + "/lib/libsndfile.so\n" + "win32 {")))) + (invoke "qmake" + (string-append "DESTDIR=" #$output "/bin")))) + ;; Ensure that all required Qt plugins are found at runtime. + (add-after 'install 'wrap-executable + (lambda* (#:key inputs #:allow-other-keys) + (let ((qt '("qtbase" "qtmultimedia"))) + (wrap-program (string-append #$output "/bin/Papagayo") + `("QT_PLUGIN_PATH" ":" prefix + ,(map (lambda (label) + (string-append (assoc-ref inputs label) + "/lib/qt5/plugins/")) + qt))))))))) (inputs - `(("bash" ,bash-minimal) - ("qt" ,qtbase-5) - ("qtmultimedia-5" ,qtmultimedia-5) - ("libsndfile" ,libsndfile))) + (list bash-minimal qtbase-5 qtmultimedia-5 libsndfile)) (native-inputs (list qttools-5)) (home-page "https://www.lostmarble.com/papagayo/") |
