From patchwork Sun Feb 26 20:50:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 47406 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8655716BF0; Sun, 26 Feb 2023 21:05:34 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5185716884 for ; Sun, 26 Feb 2023 21:05:33 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWOCd-0007tG-UY; Sun, 26 Feb 2023 16:05:03 -0500 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 1pWOCd-0007t8-5U for guix-patches@gnu.org; Sun, 26 Feb 2023 16:05:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWOCc-0000OX-So for guix-patches@gnu.org; Sun, 26 Feb 2023 16:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWOCc-0004HB-Nu for guix-patches@gnu.org; Sun, 26 Feb 2023 16:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61826] [PATCH] gnu: Add tenacity. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Feb 2023 21:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61826 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61826@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167744548616390 (code B ref -1); Sun, 26 Feb 2023 21:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2023 21:04:46 +0000 Received: from localhost ([127.0.0.1]:45148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWOCL-0004GC-HJ for submit@debbugs.gnu.org; Sun, 26 Feb 2023 16:04:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:49326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWOCI-0004Fx-MA for submit@debbugs.gnu.org; Sun, 26 Feb 2023 16:04:43 -0500 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 1pWOCI-0007rt-Ga for guix-patches@gnu.org; Sun, 26 Feb 2023 16:04:42 -0500 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWOCG-0000Lr-Dd for guix-patches@gnu.org; Sun, 26 Feb 2023 16:04:42 -0500 Received: by mail-ed1-x542.google.com with SMTP id d30so18137076eda.4 for ; Sun, 26 Feb 2023 13:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:to:subject:date:from:from:to:cc:subject :date:message-id:reply-to; bh=FLzwOGOFkJ+4dx8PasQgKx+cQnR6Ce7moFAVGCfScnw=; b=XRXw2DhKRbJYVSMgn+iUC7GK9xCG/QF192qCbxqdwqrRc/8jfhVULQlSccXvcJHHbZ kxroiITWkiki1ga9qg47OHLcPpg/eRLJxZ9NgtWBdQ5pVfAuUU9kxPBcFtyPVERmP4oz hl2+flESQqUOzT4o4dxdmowdTh6vPnEPZLntM50WprEIymU8o3eYNfols3c6Jx+EFq+4 lAozqZYrwtmRN+MgCMS+/Bo1cHRzjZjdJKstXMK4FP15avZWPkHRE/9Z33Ac1+qt5CAF RBulDvTPcWQGGwWVSdGDlnPP+58lxG7lQvrBkTCguzBBhgh6FZEDa03B/q/jOet4Vv3S Yilw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:to:subject:date:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FLzwOGOFkJ+4dx8PasQgKx+cQnR6Ce7moFAVGCfScnw=; b=4DizCO/vS7/0iJ2F2ETWAZCwiNOiJ5K3XCLC2ZiyjLTIl22aNZbnWtZ2wMaW8BTxsy YTNP3jm92VezrRChOXvzgYhlcQ+K6S1155scD20R8zYbHo14kRgJOfcrD4Q92OuDGZMM ZBUSGbrgdMjklpegW0xz9dmmYPSrjghnZcH4HVJVyM/WrfHXDGNxJ/IesRv6PGZJ7pru cuI0z488YIjRc2XNtY4jak2Atj5IlBY96HiEOKHz+Zf5KlYmcp7pQLOHOEu1NBIDbg/7 b5KiZLlEcRMbzTgq7KIYiutMTcyHZ42jEi5JgTKpA4rGyJnt/7HaxcBY2GxLbgRtxOtD iJkA== X-Gm-Message-State: AO0yUKVAS2TGINn1llcY+TksCD/hhsNEXS/4PrTOwJ+VBPLxzmKC9aUi EMGvknHtDOrnVG1j5IF9TugD2uUHlb/RgA== X-Google-Smtp-Source: AK7set+oggVFos1ccGVahuC8Evh53xhfjOzaxx7lMwowvSlDxnEZ0ebB7VdeZCfVHMLWR61Wcw5ohA== X-Received: by 2002:aa7:d5c9:0:b0:4ad:6db4:b922 with SMTP id d9-20020aa7d5c9000000b004ad6db4b922mr23700433eds.14.1677445478839; Sun, 26 Feb 2023 13:04:38 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id r22-20020a50aad6000000b004af6a7e9131sm2322247edc.64.2023.02.26.13.04.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 13:04:38 -0800 (PST) From: Liliana Marie Prikler Date: Sun, 26 Feb 2023 21:50:11 +0100 Message-ID: <361f3d02e27b26f09d1017fa9e174a363d4d70a6.camel@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::542; envelope-from=liliana.prikler@gmail.com; helo=mail-ed1-x542.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/audio.scm (tenacity): New variable. --- gnu/packages/audio.scm | 111 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index ffb972175e..6f3fa2a580 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -990,6 +990,117 @@ (define-public audacity tools.") (license license:gpl2+))) +(define-public tenacity + (package + (name "tenacity") + (version "1.3-beta2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/tenacityteam/tenacity") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pd2vxzqzq7ikz7l2a1h9qwq08276xicvphrpn47gvmwaslah1gn")))) + (build-system cmake-build-system) + (arguments + (list + #:imported-modules `((guix build glib-or-gtk-build-system) + ,@%cmake-build-system-modules) + #:modules + '((guix build utils) + (guix build cmake-build-system) + ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'use-upstream-headers + (lambda* (#:key inputs #:allow-other-keys) + (substitute* '("libraries/lib-files/FileNames.cpp") + (("\"/usr/include/linux/magic.h\"") "")))) + (add-after 'unpack + 'i-spy-with-my-little-eye-something-in-the-wrong-folder + (lambda _ + (symlink (string-append (getcwd) "/images") + "src/images"))) + (add-after 'unpack 'fix-cmake-rpath + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "CMakeLists.txt" + (("\\$ORIGIN/\\.\\./\\$\\{_PKGLIB\\}") + (string-append (assoc-ref outputs "out") "/lib/tenacity")) + (("CMAKE_BUILD_WITH_INSTALL_RPATH [A-Z]*") + "CMAKE_BUILD_WITH_INSTALL_RPATH TRUE") + (("CMAKE_INSTALL_RPATH_USE_LINK_PATH [A-Z]*") + "CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE")) + (substitute* "src/CMakeLists.txt" + ;; Despite the name, this script breaks rpath. Don't run it. + (("install.*linux/fix_rpath\\.cmake.*") + "") + (("-Wl,--disable-new-dtags") "-Wl,--enable-new-dtags")))) + (replace 'configure + (lambda args + (define %configure (assoc-ref %standard-phases 'configure)) + (with-exception-handler + (lambda (error) + (unless (invoke-error? error) + (raise error)) + ;; Have you tried turning it off and on again? + (apply invoke (invoke-error-program error) + (invoke-error-arguments error))) + (lambda () + (apply %configure args)) + #:unwind? #t))) + (add-after 'wrap-program 'glib-or-gtk-wrap + (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))) + ;; Test suite? Which test suite? + #:tests? #f)) + (inputs + (list wxwidgets + gtk+ + alsa-lib + jack-1 + expat + lame + flac + ffmpeg + libid3tag + libjpeg-turbo + ;;("libsbsms" ,libsbsms) ;bundled version is modified + libsndfile + mpg123 + soundtouch + soxr ;replaces libsamplerate + sqlite + twolame + vamp + libvorbis + lv2 + lilv ;for lv2 + suil ;for lv2 + portaudio + portmidi + wavpack)) + (native-inputs + (list gettext-minimal ;for msgfmt + libtool + pkg-config + python + which)) + (native-search-paths + (list (search-path-specification + (variable "TENACITY_MODULES_PATH") + (files '("lib/tenacity/modules"))) + (search-path-specification + (variable "TENACITY_PATH") + (files '("share/tenacity"))))) + (home-page "https://tenacityaudio.org/") + (synopsis "Software for recording and editing sounds") + (description + "Tenacity is a multi-track audio editor designed for recording, playing +and editing digital audio. It features digital effects and spectrum analysis +tools.") + (license license:gpl2+))) + (define-public audiofile (package (name "audiofile")