diff mbox series

[bug#74398,4/4] gnu: vmpk: Update to 0.9.0.

Message ID d5f4d6cfc83f23bd22eb31a4fee65fd2bd604e11.1731857716.git.sughosha@disroot.org
State New
Headers show
Series gnu: vmpk: Update to 0.9.0. | expand

Commit Message

Sughosha Nov. 17, 2024, 3:35 p.m. UTC
* gnu/packages/music.scm (vmpk): Update to 0.9.0.
[build-system]: Switch to qt-build-system.
[arguments]<#:qtbase>: Use qtbase.
<#:phases>: Add wrap-drumstick.
[inputs]: Remove qtbase-5. Replace qtsvg-5 with qtsvg. Add qtwayland.
[native-inputs]: Replace qttools-5 with qttools.

Change-Id: I3aced579ece316348c900409171e63c3c2cfa192
---
 gnu/packages/music.scm | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index ed260d27ba..3742e4ea2f 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -3379,22 +3379,31 @@  (define-public drumstick
 (define-public vmpk
   (package
     (name "vmpk")
-    (version "0.8.4")
+    (version "0.9.0")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://sourceforge/vmpk/vmpk/"
                                   version "/vmpk-" version ".tar.bz2"))
               (sha256
                (base32
-                "0kh8pns9pla9c47y2nwckjpiihczg6rpg96aignsdsd7vkql69s9"))))
-    (build-system cmake-build-system)
+                "1ndwmshw3skfcxb3f606hv4y80hfisfp5bdc81a0f0qrpx6f2zn4"))))
+    (build-system qt-build-system)
     (arguments
-     `(#:tests? #f))  ; no test target
+     (list #:qtbase qtbase
+           #:tests? #f  ; no test target
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'install 'wrap-drumstick
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (wrap-program (string-append #$output "/bin/vmpk")
+                     `("DRUMSTICKRT" =
+                       (,(search-input-directory inputs
+                                            "/lib/drumstick2")))))))))
     (inputs
-     (list drumstick qtbase-5 qtsvg-5 qtx11extras))
+     (list drumstick qt5compat qtsvg qtwayland))
     (native-inputs
      (list libxslt ;for xsltproc
-           docbook-xml-4.4 docbook-xsl qttools-5 pkg-config))
+           docbook-xml-4.4 docbook-xsl qttools pkg-config))
     (home-page "https://vmpk.sourceforge.io/")
     (synopsis "Virtual MIDI piano keyboard")
     (description