Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/codec2/files/, media-libs/codec2/
Date: Sat, 29 Jan 2022 08:28:28
Message-Id: 1643444895.c17eb810ab2f0772291ed41a843a283d2f9dffd4.fordfrog@gentoo
1 commit: c17eb810ab2f0772291ed41a843a283d2f9dffd4
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 08:28:15 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 08:28:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c17eb810
7
8 media-libs/codec2: removed obsolete 1.0.0 & 1.0.1-r1
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-libs/codec2/Manifest | 2 -
14 media-libs/codec2/codec2-1.0.0.ebuild | 26 ------------
15 media-libs/codec2/codec2-1.0.1-r1.ebuild | 31 --------------
16 .../files/codec2-1.0.1-fix-freedv-callback.patch | 48 ----------------------
17 .../files/codec2-1.0.1-static-rx_filter_coh.patch | 13 ------
18 5 files changed, 120 deletions(-)
19
20 diff --git a/media-libs/codec2/Manifest b/media-libs/codec2/Manifest
21 index 77d2eefe3728..6318858cee0d 100644
22 --- a/media-libs/codec2/Manifest
23 +++ b/media-libs/codec2/Manifest
24 @@ -1,3 +1 @@
25 -DIST codec2-1.0.0.tar.gz 15019266 BLAKE2B fa33a8c30a7472e5f5ab0aac070431579913248d9d27cbc82542b6d7071f7a9fee6bafe374300bf6e09d636b9ddaf85795aabf12cbfd3923efd0cac82f06b38c SHA512 bba8ccf915600b093252c85059c5472804e843f5a4e331cc6e01f31b4131d84362d8385d0a1d8703be36064ca498e58181c2b7fdedb76d0be58bf6f13ec929b3
26 -DIST codec2-1.0.1.tar.gz 15062219 BLAKE2B 81f2784d7aa7180fcc4345fd27e7dd0beda0eba3bbee43d8379a48dc854fe1c9e50038c90c9ae41daacb5aef0f337841fa64ce061e2831523a71d5d52d1b8211 SHA512 e32b6ebb5480b4a6ae15e835abc0da4fac7fb46a2b14bcc2a3c52df2da6c8d3f5acbcf83d8039f1ee402b4d2e1e7445841e3c9c415bfb70af3a251e74ab3f3b6
27 DIST codec2-1.0.3.tar.gz 15000670 BLAKE2B 784f3f522ff6de0f5d6622ca379e5b61081c999b1310e0f45891758c818005d12418907bc9627c1a177cb961f54d20e330e646426b4eb885a548af70014ab521 SHA512 1b59a0520d55b0f92b72a51dde0f58a0cd845056195734d23bf59bf44e7b5c7431bdc3cebe7c60aef7dadf3ec02f9edd62f041b4b283c05a4b50a0380f3ed67c
28
29 diff --git a/media-libs/codec2/codec2-1.0.0.ebuild b/media-libs/codec2/codec2-1.0.0.ebuild
30 deleted file mode 100644
31 index f9d617bb6115..000000000000
32 --- a/media-libs/codec2/codec2-1.0.0.ebuild
33 +++ /dev/null
34 @@ -1,26 +0,0 @@
35 -# Copyright 1999-2021 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -CMAKE_ECLASS=cmake
41 -inherit cmake-multilib
42 -
43 -DESCRIPTION="Low bit rate speech codec"
44 -HOMEPAGE="https://freedv.org/ https://www.rowetel.com/?page_id=452 https://github.com/drowe67/codec2"
45 -SRC_URI="https://github.com/drowe67/codec2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 -
47 -LICENSE="LGPL-2.1"
48 -SLOT="0/1.0"
49 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
50 -IUSE="examples test"
51 -# Not yet passing, but infrastructure added to run
52 -RESTRICT="test"
53 -
54 -multilib_src_configure() {
55 - local mycmakeargs=(
56 - -DUNITTEST=$(usex test)
57 - -DINSTALL_EXAMPLES=$(usex examples)
58 - )
59 - cmake_src_configure
60 -}
61
62 diff --git a/media-libs/codec2/codec2-1.0.1-r1.ebuild b/media-libs/codec2/codec2-1.0.1-r1.ebuild
63 deleted file mode 100644
64 index 07461c984992..000000000000
65 --- a/media-libs/codec2/codec2-1.0.1-r1.ebuild
66 +++ /dev/null
67 @@ -1,31 +0,0 @@
68 -# Copyright 1999-2021 Gentoo Authors
69 -# Distributed under the terms of the GNU General Public License v2
70 -
71 -EAPI=8
72 -
73 -CMAKE_ECLASS=cmake
74 -inherit cmake-multilib
75 -
76 -DESCRIPTION="Low bit rate speech codec"
77 -HOMEPAGE="https://freedv.org/ https://www.rowetel.com/?page_id=452 https://github.com/drowe67/codec2"
78 -SRC_URI="https://github.com/drowe67/codec2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
79 -
80 -LICENSE="LGPL-2.1"
81 -SLOT="0/1.0"
82 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
83 -IUSE="examples test"
84 -# Not yet passing, but infrastructure added to run
85 -RESTRICT="test"
86 -
87 -PATCHES=(
88 - "${FILESDIR}/codec2-1.0.1-static-rx_filter_coh.patch"
89 - "${FILESDIR}/${P}-fix-freedv-callback.patch" # Bug 816453
90 -)
91 -
92 -multilib_src_configure() {
93 - local mycmakeargs=(
94 - -DUNITTEST=$(usex test)
95 - -DINSTALL_EXAMPLES=$(usex examples)
96 - )
97 - cmake_src_configure
98 -}
99
100 diff --git a/media-libs/codec2/files/codec2-1.0.1-fix-freedv-callback.patch b/media-libs/codec2/files/codec2-1.0.1-fix-freedv-callback.patch
101 deleted file mode 100644
102 index 595e71a139dc..000000000000
103 --- a/media-libs/codec2/files/codec2-1.0.1-fix-freedv-callback.patch
104 +++ /dev/null
105 @@ -1,48 +0,0 @@
106 -From 7a554bad2f28a4cf19cddf43c619fe5921ddaea3 Mon Sep 17 00:00:00 2001
107 -From: drowe67 <david@×××××××.com>
108 -Date: Sat, 2 Oct 2021 15:48:09 +0930
109 -Subject: [PATCH] moved freedv_callback_rx_sym typedef and function into
110 - freedv_api_internal.h
111 -
112 -Project-Bug-URL: https://github.com/drowe67/codec2/pull/235
113 -Gentoo-Bug-URL: https://bugs.gentoo.org/816453
114 ----
115 - src/freedv_api.h | 2 --
116 - src/freedv_api_internal.h | 4 ++++
117 - 2 files changed, 4 insertions(+), 2 deletions(-)
118 -
119 -diff --git a/src/freedv_api.h b/src/freedv_api.h
120 -index 23c5fef8..9393bd80 100644
121 ---- a/src/freedv_api.h
122 -+++ b/src/freedv_api.h
123 -@@ -145,7 +145,6 @@ struct freedv_advanced {
124 -
125 - // Called when text message char is decoded
126 - typedef void (*freedv_callback_rx)(void *, char);
127 --typedef void (*freedv_callback_rx_sym)(void *, _Complex float, float);
128 - // Called when new text message char is needed
129 - typedef char (*freedv_callback_tx)(void *);
130 - typedef void (*freedv_calback_error_pattern)
131 -@@ -212,7 +211,6 @@ int freedv_check_crc16_unpacked(unsigned char *unpacked_bits, int nbits);
132 - // Set parameters ------------------------------------------------------------
133 -
134 - void freedv_set_callback_txt (struct freedv *freedv, freedv_callback_rx rx, freedv_callback_tx tx, void *callback_state);
135 --void freedv_set_callback_txt_sym (struct freedv *freedv, freedv_callback_rx_sym rx, void *callback_state);
136 - void freedv_set_callback_protocol (struct freedv *freedv, freedv_callback_protorx rx, freedv_callback_prototx tx, void *callback_state);
137 - void freedv_set_callback_data (struct freedv *freedv, freedv_callback_datarx datarx, freedv_callback_datatx datatx, void *callback_state);
138 - void freedv_set_test_frames (struct freedv *freedv, int test_frames);
139 -diff --git a/src/freedv_api_internal.h b/src/freedv_api_internal.h
140 -index 0197e184..e7a9526c 100644
141 ---- a/src/freedv_api_internal.h
142 -+++ b/src/freedv_api_internal.h
143 -@@ -230,6 +230,10 @@ int freedv_rx_fsk_ldpc_data(struct freedv *f, COMP demod_in[]);
144 -
145 - int freedv_bits_to_speech(struct freedv *f, short speech_out[], short demod_in[], int rx_status);
146 -
147 -+// for the reliable text protocol we need to pass symbols back rather than text
148 -+typedef void (*freedv_callback_rx_sym)(void *, _Complex float, float);
149 -+void freedv_set_callback_txt_sym (struct freedv *freedv, freedv_callback_rx_sym rx, void *callback_state);
150 -+
151 - #ifdef __cplusplus
152 - }
153 - #endif
154
155 diff --git a/media-libs/codec2/files/codec2-1.0.1-static-rx_filter_coh.patch b/media-libs/codec2/files/codec2-1.0.1-static-rx_filter_coh.patch
156 deleted file mode 100644
157 index 9290ea9b2cfa..000000000000
158 --- a/media-libs/codec2/files/codec2-1.0.1-static-rx_filter_coh.patch
159 +++ /dev/null
160 @@ -1,13 +0,0 @@
161 -diff --git a/src/cohpsk.c b/src/cohpsk.c
162 -index f4f8dcdc..0b0ead9c 100644
163 ---- a/src/cohpsk.c
164 -+++ b/src/cohpsk.c
165 -@@ -809,7 +809,7 @@ typedef float float4 __attribute__ ((vector_size (16)));
166 -
167 - \*---------------------------------------------------------------------------*/
168 -
169 --inline void rx_filter_coh(COMP rx_filt[COHPSK_NC+1][P+1], int Nc, COMP rx_baseband[COHPSK_NC+1][COHPSK_M+COHPSK_M/P], COMP rx_filter_memory[COHPSK_NC+1][+COHPSK_NFILTER], int nin)
170 -+static inline void rx_filter_coh(COMP rx_filt[COHPSK_NC+1][P+1], int Nc, COMP rx_baseband[COHPSK_NC+1][COHPSK_M+COHPSK_M/P], COMP rx_filter_memory[COHPSK_NC+1][+COHPSK_NFILTER], int nin)
171 - {
172 - int c,i,j,k,l;
173 - int n=COHPSK_M/P;