From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uJnUM3SQ32QeRQEASxT56A (envelope-from ) for ; Fri, 18 Aug 2023 17:38:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6IOJMnSQ32SqPgAAG6o9tA (envelope-from ) for ; Fri, 18 Aug 2023 17:38:28 +0200 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 6A5003FD7F for ; Fri, 18 Aug 2023 17:38:28 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=lK7+jgCw; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692373108; 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=j0hSuvd/fjFIciXh6y15wXOTdPYTjm6BdXZn7uRoWxY=; b=sqn6vABuk+jWU7sH/k+Zph98eSJq1vNdW1pQkULS+QKiLxBwVG67YjoRA9KGFIMFiAZcsT 6V4Dy9dfT98omldHkdhgtud3WahqMN4o0iB74ukbX57AgbQPtAeVsRwPOpfGFFZ4EFVzC4 Eoma6LXi+AmB+ajk603aCmmuWfoXAPMdvfV8wCZhveRDVRq64hgKfZviwHkAXaOZtEVA6c IR+ehV5BIqYz7goLl2H56kvvw/Kfe6BLmNLChwFoxVh1f9DrOhzVPpeBpUlMLO6xVVMB1e lEG71U79SikU9yul1QHAjZcwo6HCYJjkJKbbRM4hMF7j5t5Q2SsN6YgYaRonlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=lK7+jgCw; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692373108; a=rsa-sha256; cv=none; b=rdH7WgrhRbHSYhS7QNN+WOP2obNz+9xU/gQ6QhklDI2Ot54moO8tn23noiAeSVeh8hQWEv JXsMvpKuST8eNtJ6jkVoch6+7ipnMryU2wXZVwQKweLE8sWfa9uLaYJcYebdd+iuhBDqvb pCduyD7vbDVQdGjzVG3ikYoQFHlMqtJRW8w+g8V9P5OdgVF/V2WOVibmZmbLdVmWoBdgPF UmUD93v9qLhMpHIZCiIElcPCyUnxmpBKsJ9sWA0gfodixlfFrk2ewEAACMH2lkJ66nhccP /MezH0xrpcJ2ZyCAHP2rIge/yl2yCEnoSKl1bziyrdgmLubYfier/5RCI1cd0g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qX1Y6-0005D1-Gw; Fri, 18 Aug 2023 11:38:08 -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 1qX1Y2-0005Az-GP for guix-patches@gnu.org; Fri, 18 Aug 2023 11:38:03 -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 1qX1Y2-0006mB-6m for guix-patches@gnu.org; Fri, 18 Aug 2023 11:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qX1Y2-0007Lk-LE for guix-patches@gnu.org; Fri, 18 Aug 2023 11:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65367] [PATCH 5/5] gnu: Add stargate. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Aug 2023 15:38:02 +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 X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169237305928204 (code B ref -1); Fri, 18 Aug 2023 15:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2023 15:37:39 +0000 Received: from localhost ([127.0.0.1]:48558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX1Xe-0007Kq-PE for submit@debbugs.gnu.org; Fri, 18 Aug 2023 11:37:39 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX1Xc-0007Kc-L8 for submit@debbugs.gnu.org; Fri, 18 Aug 2023 11:37:37 -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 1qX1XV-0004qA-3h for guix-patches@gnu.org; Fri, 18 Aug 2023 11:37:29 -0400 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qX1XS-0006gZ-Dd for guix-patches@gnu.org; Fri, 18 Aug 2023 11:37:28 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 5ABF741390; Fri, 18 Aug 2023 17:37:25 +0200 (CEST) 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 YZkClB6RwmP2; Fri, 18 Aug 2023 17:37:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1692373041; bh=G1Fo39hZveN5c1JUG63ypMzeHmZXibH4KxGDUEiRme4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lK7+jgCwGeo9dC6OR4CF0YfG4cilOYqkQ3SR6ndCqqXJTkv73Df0DfGn03OOGRI+i h10bVuPWN+W1B3Cw+vY4IHfAPartPcOcyI3qwrThfPoJM26zM4LMkANk7bdHhvQBLT nYBKMgvTa63GQ6JcyODtSvBpTUeH4zV1MDoSpLmnWnFsUbgynvo6y2VELoge7c6z92 Bn7TwirStaqSieAKU5JP0TryNxlbhqNXo1JWDSwSNOu7N/zYwe2RPKeP8oW/bWDdex asptxPedWRE1bs9+LUNX3AUgxc4BH17IsB3Dd2mBQwEcNuLINyYGZcLP7QIlaxqTGG HOpHaVA3J4z5A== Date: Fri, 18 Aug 2023 17:35:42 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=sughosha@disroot.org; helo=layka.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -6.19 X-Spam-Score: -6.19 X-Migadu-Queue-Id: 6A5003FD7F X-TUID: 0BRAGfiO7dEz * 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 8681bb1c10..3ffdf0fc30 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