diff options
| author | Sughosha <sughosha@disroot.org> | 2026-07-15 20:12:46 +0530 |
|---|---|---|
| committer | Gabriel Wicki <gabriel@erlikon.ch> | 2026-07-20 11:21:08 +0200 |
| commit | 24979fef66fff8eacc106410a3fd337e067b7eb5 (patch) | |
| tree | 79b5e063fac2daf5c88b2cc7b5234d359e232326 | |
| parent | 1df0928e02e44ede617a1bc729325d2c8007a4ca (diff) | |
gnu: Add tuning-library.
* gnu/packages/audio.scm (tuning-library): New variable.
* gnu/packages/patches/tuning-library-1.1.0-add-missing-cstring-include.patch:
New file.
* gnu/local.mk (dist_patch_DATA): Register it.
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/audio.scm | 59 | ||||
| -rw-r--r-- | gnu/packages/patches/tuning-library-1.1.0-add-missing-cstring-include.patch | 23 |
3 files changed, 83 insertions, 0 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 32b738196e0..5608cb26fe0 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -2575,6 +2575,7 @@ dist_patch_DATA = \ | |||
| 2575 | %D%/packages/patches/trytond-add-guix_trytond_path.patch \ | 2575 | %D%/packages/patches/trytond-add-guix_trytond_path.patch \ |
| 2576 | %D%/packages/patches/ttf2eot-cstddef.patch \ | 2576 | %D%/packages/patches/ttf2eot-cstddef.patch \ |
| 2577 | %D%/packages/patches/tuir-python-3.12-support.patch \ | 2577 | %D%/packages/patches/tuir-python-3.12-support.patch \ |
| 2578 | %D%/packages/patches/tuning-library-1.1.0-add-missing-cstring-include.patch \ | ||
| 2578 | %D%/packages/patches/tuxpaint-stamps-path.patch \ | 2579 | %D%/packages/patches/tuxpaint-stamps-path.patch \ |
| 2579 | %D%/packages/patches/tvm_fix_cpptest_build.patch \ | 2580 | %D%/packages/patches/tvm_fix_cpptest_build.patch \ |
| 2580 | %D%/packages/patches/twinkle-bcg729.patch \ | 2581 | %D%/packages/patches/twinkle-bcg729.patch \ |
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 3a6b99cd8aa..783a2db339e 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm | |||
| @@ -5056,6 +5056,65 @@ contents of one source file moved into a header file (and set as inline) to | |||
| 5056 | make the library header-only, and with the test folder removed.") | 5056 | make the library header-only, and with the test folder removed.") |
| 5057 | (license license:wtfpl2)))) | 5057 | (license license:wtfpl2)))) |
| 5058 | 5058 | ||
| 5059 | (define-public tuning-library | ||
| 5060 | (package | ||
| 5061 | (name "tuning-library") | ||
| 5062 | (version "1.1.0") | ||
| 5063 | (source | ||
| 5064 | (origin | ||
| 5065 | (method git-fetch) | ||
| 5066 | (uri (git-reference | ||
| 5067 | (url "https://github.com/surge-synthesizer/tuning-library") | ||
| 5068 | (commit (string-append "release_" version)))) | ||
| 5069 | (file-name (git-file-name name version)) | ||
| 5070 | (patches | ||
| 5071 | (search-patches | ||
| 5072 | "tuning-library-1.1.0-add-missing-cstring-include.patch")) | ||
| 5073 | (sha256 | ||
| 5074 | (base32 "0f7915xn61sqbdla1zamjd2nkbvdzlm162dmqap2j40yhra73q65")) | ||
| 5075 | (modules '((guix build utils))) | ||
| 5076 | ;; Unbundle catch2. | ||
| 5077 | (snippet | ||
| 5078 | '(begin | ||
| 5079 | (delete-file-recursively "libs") | ||
| 5080 | (substitute* "tests/alltests.cpp" | ||
| 5081 | (("#include \"catch2.hpp\"") "#include <catch2/catch.hpp>")))))) | ||
| 5082 | (build-system cmake-build-system) | ||
| 5083 | (arguments | ||
| 5084 | (list | ||
| 5085 | #:modules | ||
| 5086 | '((guix build cmake-build-system) | ||
| 5087 | (guix build utils) | ||
| 5088 | (srfi srfi-26)) ;for cute | ||
| 5089 | #:phases | ||
| 5090 | #~(modify-phases %standard-phases | ||
| 5091 | (replace 'check | ||
| 5092 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 5093 | (when tests? | ||
| 5094 | (with-directory-excursion "../source" | ||
| 5095 | (invoke "../build/tuning-library-tests" "-a") | ||
| 5096 | (invoke "../build/tuning-library-symbolcheck"))))) | ||
| 5097 | (replace 'install | ||
| 5098 | (lambda _ | ||
| 5099 | (for-each (cute install-file <> | ||
| 5100 | (string-append #$output "/bin")) | ||
| 5101 | '("showmapping" "parsecheck")) | ||
| 5102 | (with-directory-excursion "../source" | ||
| 5103 | (with-directory-excursion "include" | ||
| 5104 | (for-each (cute install-file <> | ||
| 5105 | (string-append #$output "/include")) | ||
| 5106 | '("Tunings.h" "TuningsImpl.h"))) | ||
| 5107 | (install-file "README.md" | ||
| 5108 | (string-append #$output | ||
| 5109 | "/share/doc/tuning-library")))))))) | ||
| 5110 | (native-inputs (list catch2-2)) | ||
| 5111 | (home-page "https://github.com/surge-synthesizer/tuning-library") | ||
| 5112 | (synopsis "C Library for micro-tuning and frequency finding") | ||
| 5113 | (description | ||
| 5114 | "Tuning Library is a header-only C library for micro-tuning format | ||
| 5115 | parsing and frequency finding.") | ||
| 5116 | (license license:expat))) | ||
| 5117 | |||
| 5059 | (define-public redumper | 5118 | (define-public redumper |
| 5060 | (package | 5119 | (package |
| 5061 | (name "redumper") | 5120 | (name "redumper") |
diff --git a/gnu/packages/patches/tuning-library-1.1.0-add-missing-cstring-include.patch b/gnu/packages/patches/tuning-library-1.1.0-add-missing-cstring-include.patch new file mode 100644 index 00000000000..65b0680952b --- /dev/null +++ b/gnu/packages/patches/tuning-library-1.1.0-add-missing-cstring-include.patch | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Upstream-status: <https://github.com/surge-synthesizer/tuning-library/pull/52> | ||
| 2 | |||
| 3 | From f14baadf2966552e6709f8be437180d91cb6c24b Mon Sep 17 00:00:00 2001 | ||
| 4 | From: David Runge <dave@sleepmap.de> | ||
| 5 | Date: Sun, 10 Oct 2021 01:07:09 +0200 | ||
| 6 | Subject: [PATCH] Add missing cstring include | ||
| 7 | |||
| 8 | commands/parsecheck.cpp: | ||
| 9 | Add a missing include of 'cstring' that would fail the builds using gcc | ||
| 10 | >= 11.1.0. | ||
| 11 | --- | ||
| 12 | commands/parsecheck.cpp | 1 + | ||
| 13 | 1 file changed, 1 insertion(+) | ||
| 14 | |||
| 15 | diff --git a/commands/parsecheck.cpp b/commands/parsecheck.cpp | ||
| 16 | index 50cff9b..c24cb6a 100644 | ||
| 17 | --- a/commands/parsecheck.cpp | ||
| 18 | +++ b/commands/parsecheck.cpp | ||
| 19 | @@ -1,3 +1,4 @@ | ||
| 20 | +#include <cstring> | ||
| 21 | #include <iomanip> | ||
| 22 | #include "Tunings.h" | ||
| 23 | #include "TuningsImpl.h" | ||
