1 |
commit: 6591ec4e2f87271dd3823f910b00138f245ec489 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 24 20:04:52 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 24 20:04:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6591ec4e |
7 |
|
8 |
media-libs/codec2: Drop unused deps from cmake |
9 |
|
10 |
Closes: https://bugs.gentoo.org/653926 |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
media-libs/codec2/codec2-0.8.1.ebuild | 7 +- |
15 |
.../codec2/files/codec2-0.8.1-unused-deps.patch | 79 ++++++++++++++++++++++ |
16 |
2 files changed, 82 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/media-libs/codec2/codec2-0.8.1.ebuild b/media-libs/codec2/codec2-0.8.1.ebuild |
19 |
index f220838eef3..78da953304a 100644 |
20 |
--- a/media-libs/codec2/codec2-0.8.1.ebuild |
21 |
+++ b/media-libs/codec2/codec2-0.8.1.ebuild |
22 |
@@ -1,7 +1,7 @@ |
23 |
-# Copyright 1999-2018 Gentoo Authors |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=6 |
28 |
+EAPI=7 |
29 |
|
30 |
inherit cmake-multilib |
31 |
|
32 |
@@ -14,8 +14,7 @@ SLOT="0" |
33 |
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
34 |
IUSE="examples" |
35 |
|
36 |
-DEPEND="" |
37 |
-RDEPEND="${DEPEND}" |
38 |
+PATCHES=( "${FILESDIR}/${P}-unused-deps.patch" ) |
39 |
|
40 |
multilib_src_configure() { |
41 |
local mycmakeargs=( -DUNITTEST=OFF ) |
42 |
|
43 |
diff --git a/media-libs/codec2/files/codec2-0.8.1-unused-deps.patch b/media-libs/codec2/files/codec2-0.8.1-unused-deps.patch |
44 |
new file mode 100644 |
45 |
index 00000000000..174e5173aa6 |
46 |
--- /dev/null |
47 |
+++ b/media-libs/codec2/files/codec2-0.8.1-unused-deps.patch |
48 |
@@ -0,0 +1,79 @@ |
49 |
+From 3f786481d49e25a089586df4656cab563c90ae41 Mon Sep 17 00:00:00 2001 |
50 |
+From: David <david@×××××××.com> |
51 |
+Date: Thu, 25 Apr 2019 06:47:06 +0930 |
52 |
+Subject: [PATCH] removed unneeded dependancy on libspeex and libsamplerate, |
53 |
+ these were just used for random misc programs |
54 |
+ |
55 |
+--- |
56 |
+ CMakeLists.txt | 30 ------------------------------ |
57 |
+ unittest/CMakeLists.txt | 9 --------- |
58 |
+ 2 files changed, 8 insertions(+), 48 deletions(-) |
59 |
+ |
60 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
61 |
+index 669b8be1..6c8eae19 100644 |
62 |
+--- a/CMakeLists.txt |
63 |
++++ b/CMakeLists.txt |
64 |
+@@ -195,36 +195,6 @@ if(UNITTEST) |
65 |
+ find_package(Threads REQUIRED) |
66 |
+ message(STATUS "Threads library flags: ${CMAKE_THREAD_LIBS_INIT}") |
67 |
+ |
68 |
+- # |
69 |
+- # Find speex library |
70 |
+- # |
71 |
+- message(STATUS "Looking for Speex DSP library.") |
72 |
+- find_path(SPEEXDSP_INCLUDE_DIR speex/speex_preprocess.h) |
73 |
+- find_library(SPEEXDSP_LIBRARY speexdsp) |
74 |
+- message(STATUS " Speex DSP headers: ${SPEEXDSP_INCLUDE_DIR}") |
75 |
+- message(STATUS " Speex DSP library: ${SPEEXDSP_LIBRARY}") |
76 |
+- if(NOT SPEEXDSP_INCLUDE_DIR AND NOT SPEEXDSP_LIBRARY) |
77 |
+- message(FATAL_ERROR "Speex DSP library not found!") |
78 |
+- endif() |
79 |
+- |
80 |
+- # |
81 |
+- # Samplerate Library |
82 |
+- # |
83 |
+- message(STATUS "Looking for samplerate...") |
84 |
+- find_library(LIBSAMPLERATE samplerate) |
85 |
+- find_path(LIBSAMPLERATE_INCLUDE_DIR samplerate.h) |
86 |
+- message(STATUS " samplerate headers: ${LIBSAMPLERATE_INCLUDE_DIR}") |
87 |
+- message(STATUS " samplerate library: ${LIBSAMPLERATE}") |
88 |
+- if(LIBSAMPLERATE AND LIBSAMPLERATE_INCLUDE_DIR) |
89 |
+- list(APPEND FREEDV_LINK_LIBS ${CMAKE_REQUIRED_LIBRARIES}) |
90 |
+- include_directories(${LIBSAMPLERATE_INCLUDE_DIR}) |
91 |
+- else(LIBSTAMPLERATE AND LIBSAMPLERATE_INCLUDE_DIR) |
92 |
+- message(FATAL_ERROR "samplerate library not found. |
93 |
+-On Linux systems try installing: |
94 |
+- samplerate-devel (RPM based systems) |
95 |
+- libsamplerate-dev (DEB based systems)") |
96 |
+- endif(LIBSAMPLERATE AND LIBSAMPLERATE_INCLUDE_DIR) |
97 |
+- |
98 |
+ add_subdirectory(unittest) |
99 |
+ add_subdirectory(misc) |
100 |
+ endif(UNITTEST) |
101 |
+diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt |
102 |
+index 35a944fe..9b2e0e95 100644 |
103 |
+--- a/unittest/CMakeLists.txt |
104 |
++++ b/unittest/CMakeLists.txt |
105 |
+@@ -73,12 +73,6 @@ |
106 |
+ add_executable(tfifo tfifo.c ../src/fifo.c) |
107 |
+ target_link_libraries(tfifo codec2 ${CMAKE_THREAD_LIBS_INIT}) |
108 |
+ |
109 |
+-add_executable(speexnoisesup speexnoisesup.c) |
110 |
+-target_link_libraries(speexnoisesup ${SPEEXDSP_LIBRARY}) |
111 |
+-set_target_properties(speexnoisesup |
112 |
+- PROPERTIES INCLUDE_DIRECTORIES ${SPEEXDSP_INCLUDE_DIR} |
113 |
+-) |
114 |
+- |
115 |
+ add_executable(fdmdv_mem fdmdv_mem.c) |
116 |
+ |
117 |
+ add_executable(raw2h raw2h.c) |
118 |
+@@ -91,9 +85,6 @@ |
119 |
+ add_executable(tnewamp1 tnewamp1.c ../src/quantise.c ../src/newamp1.c ../src/mbest.c ../src/kiss_fft.c ../src/sine.c ../src/nlp.c ../src/dump.c ../src/octave.c ${CODEBOOKS}) |
120 |
+ target_link_libraries(tnewamp1 codec2) |
121 |
+ |
122 |
+-add_executable(tsrc tsrc.c) |
123 |
+-target_link_libraries(tsrc samplerate) |
124 |
+- |
125 |
+ add_executable(tlininterp tlininterp.c) |
126 |
+ add_executable(tdec tdec.c) |
127 |
+ |