summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntero Mejr <antero@mailbox.org>2023-04-18 01:39:31 +0000
committerChristopher Baines <mail@cbaines.net>2023-04-25 10:25:55 +0100
commita50f0dc5ca14201d092afb4fb7b5c0b7ad9dbab0 (patch)
treef737fcac7b244741d20e0a1d35ca05c5eb0aa7f9
parent54771a5b6a4ca8cad4e66e90756c82ac7f9e3c9b (diff)
downloadguix-a50f0dc5ca14201d092afb4fb7b5c0b7ad9dbab0.tar.gz
gnu: schismtracker: Update to 20221201.
* gnu/packages/music.scm (schismtracker): Update to 20221201.
[source]: Convert snippet to gexp.
[arguments]: Convert to gexp, add configure flags for FLAC and Wayland
support.
[inputs]: Remove libx11, libxext, and sdl; add flac and sdl2.

Signed-off-by: Christopher Baines <mail@cbaines.net>
-rw-r--r--gnu/packages/music.scm25
1 files changed, 13 insertions, 12 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index dc6f7fbbca..5d74200ca0 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -4141,7 +4141,7 @@ modes available for improved Amiga ProTracker 2/3 compatibility.")
 (define-public schismtracker
   (package
     (name "schismtracker")
-    (version "20190805")
+    (version "20221201")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -4150,26 +4150,27 @@ modes available for improved Amiga ProTracker 2/3 compatibility.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0qqps20vvn3rgpg8174bjrrm38gqcci2z5z4c1r1vhbccclahgsd"))
+                "11yy5zrdfvnwzwdwmc3s3lx1ymwiyp1si5mmv4h9qxipd9j96ijp"))
               (modules '((guix build utils)))
               (snippet
                ;; Remove use of __DATE__ and __TIME__ for reproducibility.
-               `(begin
-                  (substitute* "schism/version.c"
-                    (("Schism Tracker built %s %s.*$")
-                     (string-append "Schism Tracker version " ,version "\") ;")))
-              #t))))
+               #~(substitute* "schism/version.c"
+                   (("Schism Tracker built %s %s.*$")
+                    (string-append
+                     "Schism Tracker version " #$version "\") ;"))))))
     (build-system gnu-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'configure 'link-libm
-           (lambda _ (setenv "LIBS" "-lm") #t)))))
+     (list #:configure-flags #~(list "--with-flac=yes" "--with-x11=no")
+           #:phases #~(modify-phases %standard-phases
+                        (add-before 'configure 'link-libm
+                          (lambda _
+                            (setenv "LIBS" "-lm"))))))
     (native-inputs
      (list autoconf automake python))
     (inputs
      (list alsa-lib ; for asound dependency
-           libx11 libxext sdl))
+           flac
+           sdl2))
     (home-page "https://schismtracker.org")
     (synopsis "Oldschool sample-based music composition tool")
     (description