diff mbox series

[bug#67273,gnome-team,5/5] gnu: lilv: Update to 0.24.22.

Message ID 39f000643e29f08d37d3df0b3928d64e2ef92e0c.1700387828.git.zhengjunjie@iscas.ac.cn
State New
Headers show
Series update lilv and its dependency. | expand

Commit Message

Z572 Nov. 19, 2023, 10:07 a.m. UTC
* gnu/packages/audio.scm (lilv): Update to 0.24.22.
[source]: Use git-fetch.
[build-system]: Change to meson-build-system
[arguments]: Remove it.
[propagated-inputs]: Add zix.

Change-Id: I7d50dbf941165ebf99467272d6e6c3987e933d86
---
 gnu/packages/audio.scm | 41 ++++++++++++++---------------------------
 1 file changed, 14 insertions(+), 27 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index ef952480f8..ea2aafa2b0 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -141,6 +141,7 @@  (define-module (gnu packages audio)
   #:use-module (gnu packages xiph)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
+  #:use-module (gnu packages datastructures)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
   #:use-module (guix build-system glib-or-gtk)
@@ -3041,33 +3042,19 @@  (define-public audio-to-midi
 (define-public lilv
   (package
     (name "lilv")
-    (version "0.24.12")
-    (source (origin
-             (method url-fetch)
-             (uri (string-append "https://download.drobilla.net/lilv-"
-                                 version ".tar.bz2"))
-             (sha256
-              (base32
-               "0qchfsyrsrp2pdpd59025kllycr04ddpzd03ha1iz70ci687g8r6"))))
-    (build-system waf-build-system)
-    (arguments
-     `(#:tests? #f                      ; no check target
-       #:phases
-       (modify-phases %standard-phases
-         (add-before 'configure 'set-ldflags
-          (lambda* (#:key outputs #:allow-other-keys)
-            (setenv "LDFLAGS"
-                    (string-append "-Wl,-rpath="
-                                   (assoc-ref outputs "out") "/lib"))))
-         (add-after 'unpack 'full-store-path-to-shared-library
-           (lambda* (#:key outputs #:allow-other-keys)
-             (with-directory-excursion "bindings/python"
-               (substitute* "lilv.py"
-                 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
-                                                  "/lib/liblilv-0.so")))))))))
-    ;; Required by lilv-0.pc.
-    (propagated-inputs
-     (list lv2 serd sord sratom))
+    (version "0.24.22")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.com/lv2/lilv")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1kvg56vh61p91kl8yzh6r1px8yk80gv92v38fmvk7r592kp5y8j0"))))
+    (build-system meson-build-system)
+    (propagated-inputs (list lv2 serd sord sratom zix))
     (native-inputs
      (list python pkg-config))
     (home-page "https://drobilla.net/software/lilv")