gnu: frescobaldi: Update to 4.0.4, build with Qt6.

* gnu/packages/music.scm (frescobaldi): Update to 4.0.4.
[source]: Switch to git-fetch.
[buld-system]: Switch to pyproject-build-system.
[arguments]: Drop all.
[inputs]: Remove python-poppler-qt5, python-pyportmidi, python-pyqt,
python-sip, and qtsvg-5; add python-pyqt-6, python-pyqt6-sip, and
python-pyqtwebengine-6.
[native-inputs]: Add python-hatchling.

Change-Id: Ia5a4243b2561a0c523e420742216a4a006fbd78d
This commit is contained in:
Sharlatan Hellseher 2025-10-01 15:46:15 +01:00
parent 8cae62c191
commit e432bd3d2c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3250,44 +3250,31 @@ MIDI files, based on libsmf.")
(define-public frescobaldi (define-public frescobaldi
(package (package
(name "frescobaldi") (name "frescobaldi")
(version "3.3.0") (version "4.0.4")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (string-append (uri (git-reference
"https://github.com/frescobaldi/frescobaldi/releases/download/v" (url "https://github.com/frescobaldi/frescobaldi")
version "/frescobaldi-" version ".tar.gz")) (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 "1n60gfnf6x0l1bac088g9adzx0lskbl9knd4y1ynr3y0zcs0kfcz")))) (base32 "03ygnq7x37hnw68nkw0175m0b4ngkhgigf85pjw0sx0dbkwh4i17"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:tests? #f ;no tests included #:tests? #f)) ;no tests included
#:phases #~(modify-phases %standard-phases (native-inputs
(add-before 'build 'generate-translations (list python-hatchling))
(lambda _
(invoke "make" "-C" "i18n")))
(add-before 'build 'generate-metadata
(lambda _
(invoke "make" "-C" "linux")))
(add-after 'install 'wrap-executable
(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 (inputs (list bash-minimal
lilypond lilypond
poppler poppler
portmidi-2 portmidi-2
python-ly python-ly
python-poppler-qt5 python-pyqt-6
python-pyportmidi python-pyqt6-sip
python-pyqt python-pyqtwebengine-6
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