Archived
1
0
Fork 0

gnu: frescobaldi: Make it display icons with qtsvg-5.

* gnu/packages/music.scm (frescobaldi)
[origin]<uri>: Updated to avoid automatic redirect.
[arguments]<phases>: Add 'wrap-executable to export QT_PLUGIN_PATH.
[inputs]: Add qtsvg-5, bash-minimal.

Change-Id: I55b3c56d41bd60e4ba4c938109ff41631e211ad2
Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Marco Rimoldi 2024-02-21 20:30:35 +01:00 committed by Christopher Baines
parent 82bb2ed9c9
commit 00bf07eccc
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -3105,7 +3105,7 @@ using a system-independent interface.")
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
"https://github.com/wbsoft/frescobaldi/releases/download/v" "https://github.com/frescobaldi/frescobaldi/releases/download/v"
version "/frescobaldi-" version ".tar.gz")) version "/frescobaldi-" version ".tar.gz"))
(sha256 (sha256
(base32 "1n60gfnf6x0l1bac088g9adzx0lskbl9knd4y1ynr3y0zcs0kfcz")))) (base32 "1n60gfnf6x0l1bac088g9adzx0lskbl9knd4y1ynr3y0zcs0kfcz"))))
@ -3113,16 +3113,22 @@ using a system-independent interface.")
(arguments (arguments
(list (list
#:tests? #f ;no tests included #:tests? #f ;no tests included
#:phases #:phases #~(modify-phases %standard-phases
#~(modify-phases %standard-phases
(add-before 'build 'generate-translations (add-before 'build 'generate-translations
(lambda _ (lambda _
(invoke "make" "-C" "i18n"))) (invoke "make" "-C" "i18n")))
(add-before 'build 'generate-metadata (add-before 'build 'generate-metadata
(lambda _ (lambda _
(invoke "make" "-C" "linux")))))) (invoke "make" "-C" "linux")))
(inputs (add-after 'install 'wrap-executable
(list lilypond (lambda _
;; Ensure that icons are found at runtime.
(wrap-program (string-append #$output
"/bin/frescobaldi")
`("QT_PLUGIN_PATH" prefix
,(list (getenv "QT_PLUGIN_PATH")))))))))
(inputs (list bash-minimal
lilypond
poppler poppler
portmidi-2 portmidi-2
python-ly python-ly
@ -3130,7 +3136,8 @@ using a system-independent interface.")
python-pyportmidi python-pyportmidi
python-pyqt python-pyqt
python-sip python-sip
qpageview)) qpageview
qtsvg-5))
(home-page "https://www.frescobaldi.org/") (home-page "https://www.frescobaldi.org/")
(synopsis "LilyPond sheet music text editor") (synopsis "LilyPond sheet music text editor")
(description (description