unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sughosha via Guix-patches via <guix-patches@gnu.org>
To: 74724@debbugs.gnu.org
Cc: Sughosha <sughosha@disroot.org>
Subject: [bug#74724] [PATCH 1/2] gnu: stargate: Fix finding portmidi.
Date: Sat,  7 Dec 2024 17:51:37 +0530	[thread overview]
Message-ID: <0703ebdd3123bb76d05252b4aaf694b16817b892.1733561303.git.sughosha@disroot.org> (raw)
In-Reply-To: <cover.1733561303.git.sughosha@disroot.org>

* gnu/packages/music.scm (stargate)[inputs]: Replace portmidi with
portmidi-2.
[arguments]<#:phases>: Replace patch-portaudio-path with
patch-portaudio-and-portmidi-paths.

Change-Id: Icd5dbe154d2f8cdb9a18006b03ce74ea73d328d4
---
 gnu/packages/music.scm | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index cd9cdbdacd..c7f5063107 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -5282,13 +5282,16 @@ (define-public stargate
                    (string-append "CXX=" #$(cxx-for-target)))
            #:phases
            #~(modify-phases %standard-phases
-               (add-after 'unpack 'patch-portaudio-path
+               (add-after 'unpack 'patch-portaudio-and-portmidi-paths
                  (lambda* (#:key inputs #:allow-other-keys)
                    (substitute* "src/sgui/widgets/hardware_dialog.py"
                      (("\\\"libportaudio")
                       (string-append "\"" (assoc-ref inputs "portaudio")
-                                     "/lib/libportaudio")))))
-               (add-after 'patch-portaudio-path 'change-directory
+                                     "/lib/libportaudio"))
+                     (("'libportmidi")
+                      (string-append "'" (assoc-ref inputs "portmidi")
+                                     "/lib/libportmidi")))))
+               (add-after 'patch-portaudio-and-portmidi-paths 'change-directory
                  (lambda _
                    (chdir "src")))
                (delete 'configure) ;no configure script
@@ -5335,7 +5338,7 @@ (define-public stargate
            jq
            libsndfile
            portaudio
-           portmidi
+           portmidi-2
            python
            python-jinja2
            python-mido
-- 
2.46.0





  reply	other threads:[~2024-12-07 12:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-07 12:06 [bug#74724] [PATCH 0/2] gnu: stargate: Fix inputs and paths Sughosha via Guix-patches via
2024-12-07 12:21 ` Sughosha via Guix-patches via [this message]
2024-12-07 12:21 ` [bug#74724] [PATCH 2/2] gnu: stargate: Add python-distro to inputs Sughosha via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0703ebdd3123bb76d05252b4aaf694b16817b892.1733561303.git.sughosha@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=74724@debbugs.gnu.org \
    --cc=sughosha@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).