From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cLFPNPk0QWVrRwEA9RJhRA:P1 (envelope-from ) for ; Tue, 31 Oct 2023 18:10:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cLFPNPk0QWVrRwEA9RJhRA (envelope-from ) for ; Tue, 31 Oct 2023 18:10:17 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8265A35451 for ; Tue, 31 Oct 2023 18:10:17 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=gTvfEZEJ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698772217; a=rsa-sha256; cv=none; b=cMnCAEhnYZOniregXFNfeU2TMwWPeaD56LWrpbyH+p/p2QuiFAGAo4kdYA7OhAIhMUlJBq X8P7cOmMnfRrUJqEcftNDD7lOZFjKDLs6/ls1tGJjPe9N9j/ZjxxrNI8kyT6VUmonDQxA9 hbW6uOns9GuYFqBcbyvTfjuk+C2W9MG9ZfClP4PHKTgxHeacBIfoUzak6fRR9yGdRRDGvr 8BvGhuMLePCtKnTusU2efPD89iwUWuqC+dJ72F+apj8bLXsvTosJbJKzwvln9Jw/ZVFvQA Wc7vC+DKAlrpw2feTOL14FaLq1Tuqi1rmutdzl7bdFXgQaKSW/Gsuc6snHB5hg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=gTvfEZEJ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698772217; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rj6TNDURHcwdRLOgURDQW5LYXOQYW7spNNzhrZrJNmo=; b=eXxmW4nZVX8otD2GqTGphlQyutTpIjOcMB6UX4sZbSRQQMIAtNCCHiBYaJi1VTr58PiGUs zgeWS9DEGynbtmooMY+J2PJJkqoBJwZ9qdGVqPZLDA014PuTTLRZsfPVghm3nZpqAES+P3 Ixn85LGpWix0ezLXZU/thua8iTMTaAsxTsECqx7GY1E3YuTJGiT3wcg14xcD4j1axbdpkA WwxeE1w/gp6ObsZS0xdnIX6vWTwvoiOStmAbYKGaN7S6jLeaWq5uCtLlEv5uN9B3qf6/C2 0KU8OUxK+ftxbdIcniSnz2S+M4pMKoL1MZFehIJP5+N551jd0au8p2RyuffzPA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxsF9-0008Ab-M9; Tue, 31 Oct 2023 13:09:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxsF7-0008AC-QG for guix-patches@gnu.org; Tue, 31 Oct 2023 13:09:29 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxsF7-0003CM-Dt for guix-patches@gnu.org; Tue, 31 Oct 2023 13:09:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qxsFf-0004pp-7b for guix-patches@gnu.org; Tue, 31 Oct 2023 13:10:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65367] [PATCH v3 4/4] gnu: Add stargate. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Oct 2023 17:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65367 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65367@debbugs.gnu.org Cc: Sughosha Received: via spool by 65367-submit@debbugs.gnu.org id=B65367.169877219018528 (code B ref 65367); Tue, 31 Oct 2023 17:10:03 +0000 Received: (at 65367) by debbugs.gnu.org; 31 Oct 2023 17:09:50 +0000 Received: from localhost ([127.0.0.1]:49080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxsFR-0004ok-S2 for submit@debbugs.gnu.org; Tue, 31 Oct 2023 13:09:50 -0400 Received: from layka.disroot.org ([178.21.23.139]:46044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxsFI-0004o5-J9 for 65367@debbugs.gnu.org; Tue, 31 Oct 2023 13:09:41 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 287B944EE9; Tue, 31 Oct 2023 18:09:06 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f4FfuJZdJQvd; Tue, 31 Oct 2023 18:09:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1698772145; bh=mhbxheBpnGPjHLCfsybcAACKr5NhR1zUD7qPFcvnu48=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=gTvfEZEJrhSn41Cu4a7JiOv9nfQGxkB5XuVW1oTZT9RKG8dIlTKVTl2fy9uY1aSNt M1UVbu+b3Zi2xAynviE/gprxNFnfA1taYNPPa4LXupNpf5Uc3sT0nuAklKE/gfmKFF NDrLARxTxhfONEBP8so4JMVYeXcVjj9LsV6FjNz/O1E/oZboAM76796PazVUWkcmJW /zX1tP6YV/gw7WruVulqmNRd8CfvQ9Q9TkmxTOtBcjoFtJz8iqBWQx8uvHjlZYF3DN 4U8xzICtybINOEel1sVY5bUOtvLOC2J9/sd2zcSTWDj+mHUwhB9WwbH0nV/gHeLlst I/2LI0pjdFsvg== Date: Tue, 31 Oct 2023 18:08:24 +0100 Message-ID: <63857c53cef88ee9487a0adeba1fbb9cbb91a2bc.1698771987.git.sughosha@disroot.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches From: Sughosha via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 8265A35451 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.11 X-Spam-Score: -6.11 X-TUID: PAiUlri8oNuf * gnu/packages/music.scm (stargate): New variable. --- gnu/packages/music.scm | 182 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index b181c86b45..34f46fbb2c 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -3479,6 +3479,188 @@ (define-public aj-snapshot from the command line.") (license license:gpl3+))) +(define-public stargate + (package + (name "stargate") + (version "23.08.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/stargatedaw/stargate") + (commit (string-append "release-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0flnvf9f175bk8xmhpfqjvw10jxhd5cl55viwahai3p531ld30zc")) + (modules '((guix build utils))) + ;; Devendor bundled packages. + (snippet + '(with-directory-excursion "src" + (delete-file-recursively "sg_py_vendor") + (substitute* (find-files "sglib" "\\.py$") + (("from sg_py_vendor ") "")) + (substitute* "Makefile" + ((" sg_py_vendor") "") + (("install -m 755 vendor") "# install -m 755 vendor")))))) + (build-system gnu-build-system) + (arguments + (list #:test-target "tests" + #:make-flags + #~(list "distro" + "PREFIX=/" + "SG_DIR=/lib/stargate" + (string-append "CC=" #$(cc-for-target)) + (string-append "CXX=" #$(cxx-for-target)) + (string-append "DESTDIR=" #$output)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'change-directory + (lambda _ + (chdir "src"))) + (delete 'configure) ;no configure script + (add-before 'build 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "sgui/widgets/hardware_dialog.py" + (("libportaudio\\.so") + (search-input-file inputs "/lib/libportaudio.so")) + (("libportmidi\\.so") + (search-input-file inputs "/lib/libportmidi.so"))) + (substitute* "test_parse.sh" + (("python") (which "python3"))) + (substitute* "engine/tests/test_daw.c" + (("INSTALL_PREFIX") "// INSTALL_PREFIX")) + (with-directory-excursion "files/share" + (substitute* '("applications/stargate.desktop" + "doc/stargate/copyright") + (("/usr") #$output))))) + (add-before 'check 'check-setup + (lambda _ + (setenv "HOME" "/tmp") + (setenv "LD_LIBRARY_PATH" (getenv "LIBRARY_PATH")) + ;; test_to_from_str_reorder fails. + (delete-file "test/sglib/models/daw/routing/test_midi.py") + ;; Disable testing with browser. + (substitute* "Makefile" + (("\\$\\(BROWSER\\)") "# $(BROWSER)")))) + (replace 'install + (lambda* (#:key (make-flags '()) #:allow-other-keys) + (let ((bin (string-append #$output "/bin")) + (lib (string-append #$output "/lib/stargate")) + (share (string-append #$output "/share"))) + (rename-file "files/share" "share") + (apply invoke "make" "install_self_contained" make-flags) + (mkdir-p bin) + (symlink (string-append lib "/scripts/stargate") + (string-append bin "/stargate")) + (copy-recursively "share" share)))) + (add-after 'install 'wrap-program + (lambda _ + (wrap-program (string-append #$output "/bin/stargate") + `("GUIX_PYTHONPATH" ":" prefix + (,(getenv "GUIX_PYTHONPATH"))) + `("LD_LIBRARY_PATH" ":" prefix + (,(getenv "PATH"))) + `("PATH" ":" prefix + (,(getenv "PATH"))))))))) + (native-inputs + (list pkg-config + python-gcovr + python-packaging + python-pytest + python-pytest-cov + python-pytest-runner)) + (inputs + (list alsa-lib + bash-minimal + fftw + fftwf + jq + libsndfile + portaudio + portmidi + python + python-jinja2 + python-mido + python-mutagen + python-psutil + python-pymarshal + python-pyqt + python-pyyaml + python-wavefile + python-yq + rubberband + ;; Fork of the libsbsms. + (let ((commit "90fab3440063dc9b6c1c2a8f74c2d92bd0e423f9") + (revision "0")) + (package/inherit libsbsms + (name "stargate-sbsms") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/stargatedaw/stargate-sbsms") + (commit commit))) + (sha256 + (base32 + "11srnzgpavcj6n70zjdm7488jzrprk71mg9dgr1sa6vwp575hf2m")))) + (arguments + (substitute-keyword-arguments (package-arguments libsbsms) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'fix-ar-lib-path) + (add-before 'build 'change-directory + (lambda _ + (chdir "cli"))) + (replace 'configure + (lambda _ + (setenv "DESTDIR" #$output) + (setenv "PREFIX" "/"))) + (add-after 'install 'rename-binary + (lambda _ + (with-directory-excursion + (string-append #$output "/bin") + (rename-file "sbsms" + "stargate-sbsms")))) + (delete 'check))))) + (native-inputs + (list libsndfile)) + (home-page "https://stargatedaw/stargate-sbsms"))) + ;; Fork of soundtouch with extra features and fixes. + (let ((commit "464f474c0be5d7e0970909dd30593012e4621468") + (revision "0")) + (package/inherit soundtouch + (name "stargate-soundtouch") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/stargatedaw/stargate-soundtouch") + (commit commit))) + (sha256 + (base32 + "1aw2j1f10p8n4s197b1nd3g1rjvwbrrszc9gwsbwk01c6nb3nr9v")))) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'install 'rename-binary + (lambda _ + (with-directory-excursion + (string-append #$output "/bin") + (rename-file "soundstretch" + "stargate-soundstretch"))))))) + (home-page "https://stargatedaw/stargate-soundtouch"))))) + (home-page "https://github.com/stargatedaw/stargate") + (synopsis "Digital audio workstation") + (description + "Stargate is a digital audio workstation, with built-in instrument and +effect plugins and wave editor, providing innovative features, especially for +EDM production.") + (license license:gpl3))) + (define-public qtractor (package (name "qtractor") -- 2.41.0