Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libgroove/files/, media-libs/libgroove/, profiles/
Date: Thu, 25 Aug 2022 13:04:04
Message-Id: 1661432631.327069aff4a3186dacb7f5da192af2e8dc27f729.jsmolic@gentoo
1 commit: 327069aff4a3186dacb7f5da192af2e8dc27f729
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 25 13:03:51 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 13:03:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=327069af
7
8 media-libs/libgroove: treeclean
9
10 Closes: https://bugs.gentoo.org/834383
11 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
12
13 media-libs/libgroove/Manifest | 1 -
14 .../files/libgroove-4.3.0_GNUInstallDirs.patch | 105 ---------------------
15 .../libgroove/files/libgroove-4.3.0_cflags.patch | 43 ---------
16 .../libgroove/files/libgroove-4.3.0_ffmpeg4.patch | 47 ---------
17 .../files/libgroove-4.3.0_sdl2_include_dir.patch | 13 ---
18 media-libs/libgroove/libgroove-4.3.0-r1.ebuild | 43 ---------
19 media-libs/libgroove/metadata.xml | 21 -----
20 profiles/package.mask | 5 -
21 8 files changed, 278 deletions(-)
22
23 diff --git a/media-libs/libgroove/Manifest b/media-libs/libgroove/Manifest
24 deleted file mode 100644
25 index 07097eaad32f..000000000000
26 --- a/media-libs/libgroove/Manifest
27 +++ /dev/null
28 @@ -1 +0,0 @@
29 -DIST libgroove-4.3.0.tar.gz 48857 BLAKE2B 40659e84a00245791746c570ba667cb97ba61de2bf9c1e746aaacb02db4ef5d15a00561aed7001f9a9a7b20ad8645f74c12a836b8bd59ebbc1abbda045d558d0 SHA512 30d75a3b1b3efa9b33687bb146648b66f8f4c718551c0db2c24c0259f09cf355a7c7bbac40d60d7a97bbbd7f83401d09464c6ac2b18cdfcd6198220cefc8a705
30
31 diff --git a/media-libs/libgroove/files/libgroove-4.3.0_GNUInstallDirs.patch b/media-libs/libgroove/files/libgroove-4.3.0_GNUInstallDirs.patch
32 deleted file mode 100644
33 index a4e77b87ce74..000000000000
34 --- a/media-libs/libgroove/files/libgroove-4.3.0_GNUInstallDirs.patch
35 +++ /dev/null
36 @@ -1,105 +0,0 @@
37 -From 8b741249fc17d7cf7d72a702fcdf7f07870b0b27 Mon Sep 17 00:00:00 2001
38 -From: hasufell <hasufell@××××××××.de>
39 -Date: Thu, 20 Aug 2015 14:30:16 +0200
40 -Subject: [PATCH] CMake: make installation directories more configurable
41 -
42 -We use GNUInstallDirs now to be able to control the following variables:
43 - CMAKE_INSTALL_LIBDIR
44 - CMAKE_INSTALL_INCLUDEDIR
45 -
46 -This fixes support for distribution that have a multi-arch setup.
47 -Also see https://github.com/gentoo/gentoo/pull/22
48 ----
49 - CMakeLists.txt | 26 ++++++++++++++------------
50 - 1 file changed, 14 insertions(+), 12 deletions(-)
51 -
52 -diff --git a/CMakeLists.txt b/CMakeLists.txt
53 -index f2029eb..49e150e 100644
54 ---- a/CMakeLists.txt
55 -+++ b/CMakeLists.txt
56 -@@ -1,4 +1,6 @@
57 --cmake_minimum_required(VERSION 2.8)
58 -+cmake_minimum_required(VERSION 2.8.5)
59 -+
60 -+include(GNUInstallDirs)
61 -
62 - if(NOT CMAKE_BUILD_TYPE)
63 - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
64 -@@ -157,7 +159,7 @@ add_library(groove_static STATIC ${LIBGROOVE_SOURCES} ${LIBGROOVE_HEADERS})
65 - set_target_properties(groove_static PROPERTIES
66 - OUTPUT_NAME groove
67 - COMPILE_FLAGS "${LIB_CFLAGS} -fPIC")
68 --install(TARGETS groove_static DESTINATION lib)
69 -+install(TARGETS groove_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
70 -
71 -
72 - install(FILES
73 -@@ -165,7 +167,7 @@ install(FILES
74 - "groove/queue.h"
75 - "groove/encoder.h"
76 - DESTINATION "include/groove")
77 --install(TARGETS groove DESTINATION lib)
78 -+install(TARGETS groove DESTINATION ${CMAKE_INSTALL_LIBDIR})
79 -
80 - add_executable(metadata example/metadata.c)
81 - set_target_properties(metadata PROPERTIES
82 -@@ -207,8 +209,8 @@ else()
83 - target_link_libraries(grooveplayer LINK_PRIVATE ${SDL2_LIBRARY})
84 - include_directories(${SDL2_INCLUDE_DIR})
85 -
86 -- install(FILES "grooveplayer/player.h" DESTINATION "include/grooveplayer")
87 -- install(TARGETS grooveplayer DESTINATION lib)
88 -+ install(FILES "grooveplayer/player.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/grooveplayer")
89 -+ install(TARGETS grooveplayer DESTINATION ${CMAKE_INSTALL_LIBDIR})
90 -
91 - add_library(grooveplayer_static STATIC
92 - ${LIBGROOVE_PLAYER_SOURCES}
93 -@@ -216,7 +218,7 @@ else()
94 - set_target_properties(grooveplayer_static PROPERTIES
95 - OUTPUT_NAME grooveplayer
96 - COMPILE_FLAGS "${LIB_CFLAGS} -fPIC")
97 -- install(TARGETS grooveplayer_static DESTINATION lib)
98 -+ install(TARGETS grooveplayer_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
99 -
100 -
101 - add_executable(playlist example/playlist.c ${PROJECT_SOURCE_DIR}/grooveplayer/player.h)
102 -@@ -242,8 +244,8 @@ else()
103 - target_link_libraries(grooveloudness LINK_PRIVATE ${EBUR128_LIBRARY})
104 - include_directories(${EBUR128_INCLUDE_DIR})
105 -
106 -- install(FILES "grooveloudness/loudness.h" DESTINATION "include/grooveloudness")
107 -- install(TARGETS grooveloudness DESTINATION lib)
108 -+ install(FILES "grooveloudness/loudness.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/grooveloudness")
109 -+ install(TARGETS grooveloudness DESTINATION ${CMAKE_INSTALL_LIBDIR})
110 -
111 -
112 - add_library(grooveloudness_static STATIC
113 -@@ -252,7 +254,7 @@ else()
114 - set_target_properties(grooveloudness_static PROPERTIES
115 - OUTPUT_NAME grooveloudness
116 - COMPILE_FLAGS "${LIB_CFLAGS} -fPIC")
117 -- install(TARGETS grooveloudness_static DESTINATION lib)
118 -+ install(TARGETS grooveloudness_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
119 -
120 -
121 - add_executable(replaygain example/replaygain.c)
122 -@@ -278,8 +280,8 @@ else()
123 - target_link_libraries(groovefingerprinter LINK_PRIVATE ${CHROMAPRINT_LIBRARY})
124 - include_directories(${CHROMAPRINT_INCLUDE_DIR})
125 -
126 -- install(FILES "groovefingerprinter/fingerprinter.h" DESTINATION "include/groovefingerprinter")
127 -- install(TARGETS groovefingerprinter DESTINATION lib)
128 -+ install(FILES "groovefingerprinter/fingerprinter.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/groovefingerprinter")
129 -+ install(TARGETS groovefingerprinter DESTINATION ${CMAKE_INSTALL_LIBDIR})
130 -
131 -
132 - add_library(groovefingerprinter_static STATIC
133 -@@ -288,7 +290,7 @@ else()
134 - set_target_properties(groovefingerprinter_static PROPERTIES
135 - OUTPUT_NAME groovefingerprinter
136 - COMPILE_FLAGS "${LIB_CFLAGS} -fPIC")
137 -- install(TARGETS groovefingerprinter_static DESTINATION lib)
138 -+ install(TARGETS groovefingerprinter_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
139 -
140 -
141 - add_executable(fingerprint example/fingerprint.c)
142
143 diff --git a/media-libs/libgroove/files/libgroove-4.3.0_cflags.patch b/media-libs/libgroove/files/libgroove-4.3.0_cflags.patch
144 deleted file mode 100644
145 index c7d21cbe2de4..000000000000
146 --- a/media-libs/libgroove/files/libgroove-4.3.0_cflags.patch
147 +++ /dev/null
148 @@ -1,43 +0,0 @@
149 -From e5af72acd284db1ee2b79aeeb06714770d1ad5c3 Mon Sep 17 00:00:00 2001
150 -From: Diogo Pereira <sir.suriv@×××××.com>
151 -Date: Thu, 20 Aug 2015 15:05:25 +0100
152 -Subject: [PATCH] Remove -Werror, -pedantic and -g from CFLAGS
153 -
154 -Based on upstream commits:
155 -0b619fa build: -Werror and -pedantic in debug mode only
156 -856c260 build: remove redundant -Werror and -pedantic
157 -
158 -https://github.com/andrewrk/libgroove/compare/44aa5db96cfe45e56fa1f7d762fb032ca178a35c...856c26013e4356d4fc078da980083bc4d002771d
159 ----
160 - CMakeLists.txt | 8 ++++++--
161 - 1 file changed, 6 insertions(+), 2 deletions(-)
162 -
163 -diff --git a/CMakeLists.txt b/CMakeLists.txt
164 -index a1e8541..14aca44 100644
165 ---- a/CMakeLists.txt
166 -+++ b/CMakeLists.txt
167 -@@ -135,8 +135,11 @@ configure_file (
168 - "${PROJECT_BINARY_DIR}/config.h"
169 - )
170 -
171 --set(LIB_CFLAGS "${C99_C_FLAGS} -pedantic -Werror -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L")
172 --set(EXAMPLE_CFLAGS "${C99_C_FLAGS} -pedantic -Werror -Wall -g")
173 -+set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wno-unused-variable")
174 -+set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror -pedantic")
175 -+
176 -+set(LIB_CFLAGS "-std=c99 -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L")
177 -+set(EXAMPLE_CFLAGS "-std=c99 -Wall")
178 - set(EXAMPLE_INCLUDES "${PROJECT_SOURCE_DIR}")
179 -
180 - add_library(groove SHARED ${LIBGROOVE_SOURCES} ${LIBGROOVE_HEADERS})
181 -@@ -306,6 +309,7 @@ message("\n"
182 - "Installation Summary\n"
183 - "--------------------\n"
184 - "* Install Directory : ${CMAKE_INSTALL_PREFIX}\n"
185 -+"* Build Type : ${CMAKE_BUILD_TYPE}\n"
186 - "* Build libgroove : ${LIBGROOVE_STATUS}\n"
187 - "* Build libgrooveplayer : ${LIBGROOVE_PLAYER_STATUS}\n"
188 - "* Build libgrooveloudness : ${LIBGROOVE_LOUDNESS_STATUS}\n"
189 ---
190 -2.5.0
191 -
192
193 diff --git a/media-libs/libgroove/files/libgroove-4.3.0_ffmpeg4.patch b/media-libs/libgroove/files/libgroove-4.3.0_ffmpeg4.patch
194 deleted file mode 100644
195 index eadc4d98a913..000000000000
196 --- a/media-libs/libgroove/files/libgroove-4.3.0_ffmpeg4.patch
197 +++ /dev/null
198 @@ -1,47 +0,0 @@
199 -Description: Fix FTBFS with FFmpeg 4.0
200 -Author: James Cowgill <jcowgill@××××××.org>
201 -Bug-Debian: https://bugs.debian.org/888376
202 ----
203 -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
204 ---- a/groove/encoder.c
205 -+++ b/groove/encoder.c
206 -@@ -616,7 +616,7 @@ int groove_encoder_attach(struct GrooveE
207 -
208 - e->sink->audio_format = encoder->actual_audio_format;
209 - e->sink->buffer_size = encoder->sink_buffer_size;
210 -- e->sink->buffer_sample_count = (codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) ?
211 -+ e->sink->buffer_sample_count = (codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE) ?
212 - 0 : e->stream->codec->frame_size;
213 - e->sink->gain = encoder->gain;
214 -
215 ---- a/groove/playlist.c
216 -+++ b/groove/playlist.c
217 -@@ -186,7 +186,7 @@ static int audio_decode_frame(struct Gro
218 -
219 - if (!got_frame) {
220 - // stop sending empty packets if the decoder is finished
221 -- if (!pkt_temp->data && dec->codec->capabilities & CODEC_CAP_DELAY)
222 -+ if (!pkt_temp->data && dec->codec->capabilities & AV_CODEC_CAP_DELAY)
223 - return 0;
224 - continue;
225 - }
226 -@@ -571,7 +571,7 @@ static int decode_one_frame(struct Groov
227 - pthread_mutex_unlock(&f->seek_mutex);
228 -
229 - if (f->eof) {
230 -- if (f->audio_st->codec->codec->capabilities & CODEC_CAP_DELAY) {
231 -+ if (f->audio_st->codec->codec->capabilities & AV_CODEC_CAP_DELAY) {
232 - av_init_packet(pkt);
233 - pkt->data = NULL;
234 - pkt->size = 0;
235 ---- a/groove/file.c
236 -+++ b/groove/file.c
237 -@@ -281,7 +281,7 @@ int groove_file_save(struct GrooveFile *
238 - ocodec->rc_buffer_size = icodec->rc_buffer_size;
239 - ocodec->field_order = icodec->field_order;
240 -
241 -- uint64_t extra_size = (uint64_t)icodec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE;
242 -+ uint64_t extra_size = (uint64_t)icodec->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE;
243 - if (extra_size > INT_MAX) {
244 - cleanup_save(file);
245 - av_log(NULL, AV_LOG_ERROR, "codec extra size too big\n");
246
247 diff --git a/media-libs/libgroove/files/libgroove-4.3.0_sdl2_include_dir.patch b/media-libs/libgroove/files/libgroove-4.3.0_sdl2_include_dir.patch
248 deleted file mode 100644
249 index 7967c23c973e..000000000000
250 --- a/media-libs/libgroove/files/libgroove-4.3.0_sdl2_include_dir.patch
251 +++ /dev/null
252 @@ -1,13 +0,0 @@
253 -diff --git a/CMakeLists.txt b/CMakeLists.txt
254 -index a1e8541..80a96c2 100644
255 ---- a/CMakeLists.txt
256 -+++ b/CMakeLists.txt
257 -@@ -208,7 +208,7 @@ else()
258 - endif()
259 - add_dependencies(grooveplayer groove)
260 - target_link_libraries(grooveplayer LINK_PRIVATE ${SDL2_LIBRARY})
261 -- include_directories(${SDL2_INCLUDE_DIR})
262 -+ include_directories(${SDL2_INCLUDE_DIR} "${SDL2_INCLUDE_DIR}/SDL2")
263 -
264 - install(FILES "grooveplayer/player.h" DESTINATION "include/grooveplayer")
265 - install(TARGETS grooveplayer DESTINATION lib)
266
267 diff --git a/media-libs/libgroove/libgroove-4.3.0-r1.ebuild b/media-libs/libgroove/libgroove-4.3.0-r1.ebuild
268 deleted file mode 100644
269 index 2b45f178d15b..000000000000
270 --- a/media-libs/libgroove/libgroove-4.3.0-r1.ebuild
271 +++ /dev/null
272 @@ -1,43 +0,0 @@
273 -# Copyright 1999-2021 Gentoo Authors
274 -# Distributed under the terms of the GNU General Public License v2
275 -
276 -EAPI=7
277 -
278 -inherit cmake
279 -
280 -DESCRIPTION="Streaming audio processing library"
281 -HOMEPAGE="https://github.com/andrewrk/libgroove"
282 -SRC_URI="https://github.com/andrewrk/libgroove/archive/${PV}.tar.gz -> ${P}.tar.gz"
283 -
284 -LICENSE="MIT"
285 -SLOT="0/4"
286 -KEYWORDS="~amd64"
287 -IUSE="+chromaprint +loudness +sound"
288 -
289 -DEPEND="
290 - media-video/ffmpeg:=
291 - chromaprint? ( media-libs/chromaprint:= )
292 - loudness? ( media-libs/libebur128:=[speex(+)] )
293 - sound? ( media-libs/libsdl2[sound] )"
294 -RDEPEND="${DEPEND}"
295 -
296 -PATCHES=(
297 - "${FILESDIR}/${P}_cflags.patch"
298 - "${FILESDIR}/${P}_sdl2_include_dir.patch"
299 - "${FILESDIR}/${P}_ffmpeg4.patch"
300 - "${FILESDIR}/${P}_GNUInstallDirs.patch"
301 -)
302 -
303 -src_configure() {
304 - local mycmakeargs=(
305 - -DDISABLE_FINGERPRINTER=$(usex !chromaprint)
306 - -DDISABLE_LOUDNESS=$(usex !loudness)
307 - -DDISABLE_PLAYER=$(usex !sound)
308 - )
309 - cmake_src_configure
310 -}
311 -
312 -src_install() {
313 - cmake_src_install
314 - rm "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libs"
315 -}
316
317 diff --git a/media-libs/libgroove/metadata.xml b/media-libs/libgroove/metadata.xml
318 deleted file mode 100644
319 index 59a78738e302..000000000000
320 --- a/media-libs/libgroove/metadata.xml
321 +++ /dev/null
322 @@ -1,21 +0,0 @@
323 -<?xml version="1.0" encoding="UTF-8"?>
324 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
325 -<pkgmetadata>
326 -<!-- maintainer-needed -->
327 -<longdescription lang="en">
328 - This library provides decoding and encoding of audio on a playlist. It is intended to be used as a backend for music player applications. That said, it is also generic enough to be used as a backend for any streaming audio processing utility.
329 -</longdescription>
330 -<use>
331 - <flag name="chromaprint">Enable audio fingerprinting using <pkg>media-libs/chromaprint</pkg>.</flag>
332 - <flag name="loudness">Enable loudness detection according to the EBU R128 standard using <pkg>media-libs/libebur128</pkg>.</flag>
333 - <flag name="sound">Enable audio playing.</flag>
334 -</use>
335 -<upstream>
336 - <maintainer status="inactive">
337 - <email>superjoe30@×××××.com</email>
338 - <name>Andrew Kelley</name>
339 - </maintainer>
340 - <remote-id type="github">andrewrk/libgroove</remote-id>
341 - <bugs-to>https://github.com/andrewrk/libgroove/issues</bugs-to>
342 -</upstream>
343 -</pkgmetadata>
344
345 diff --git a/profiles/package.mask b/profiles/package.mask
346 index 2a492c5883f0..594dff63a6bc 100644
347 --- a/profiles/package.mask
348 +++ b/profiles/package.mask
349 @@ -290,11 +290,6 @@ app-misc/zygrib
350 # Bug #682346, #844592, removal on 2022-08-27.
351 app-crypt/kbfs
352
353 -# Sam James <sam@g.o> (2022-07-26)
354 -# Fails to build with ffmpeg 5, no reverse dependencies, maintainer-needed,
355 -# and no commits upstream since 2017. Bug #834383. Removal on 2022-08-26.
356 -media-libs/libgroove
357 -
358 # Marek Szuba <marecki@g.o> (2022-07-13)
359 # Upstream has switched from CMake to hand-crafted Makefiles (yes, TO them),
360 # which have seriously messed up dependency handling and trigger several