Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mixxx/files/
Date: Tue, 03 Jan 2017 23:07:17
Message-Id: 1483484711.67d074551394266ce44c1330fbce01b8113c79ba.monsieurp@gentoo
1 commit: 67d074551394266ce44c1330fbce01b8113c79ba
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Jan 1 15:41:03 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 23:05:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67d07455
7
8 media-sound/mixxx: remove unused patch.
9
10 Closes: https://github.com/gentoo/gentoo/pull/3297
11
12 .../mixxx/files/mixxx-2.0.0-system-libs.patch | 158 ---------------------
13 1 file changed, 158 deletions(-)
14
15 diff --git a/media-sound/mixxx/files/mixxx-2.0.0-system-libs.patch b/media-sound/mixxx/files/mixxx-2.0.0-system-libs.patch
16 deleted file mode 100644
17 index f0c86c8..00000000
18 --- a/media-sound/mixxx/files/mixxx-2.0.0-system-libs.patch
19 +++ /dev/null
20 @@ -1,158 +0,0 @@
21 -diff -Naur mixxx-2.0.0/build/depends.py mixxx-2.0.0_patch/build/depends.py
22 ---- mixxx-2.0.0/build/depends.py 2015-12-29 08:10:41.000000000 -0800
23 -+++ mixxx-2.0.0_patch/build/depends.py 2016-01-11 20:23:40.641866196 -0800
24 -@@ -369,25 +369,10 @@
25 -
26 - class FidLib(Dependence):
27 -
28 -- def sources(self, build):
29 -- symbol = None
30 -- if build.platform_is_windows:
31 -- if build.toolchain_is_msvs:
32 -- symbol = 'T_MSVC'
33 -- elif build.crosscompile:
34 -- # Not sure why, but fidlib won't build with mingw32msvc and
35 -- # T_MINGW
36 -- symbol = 'T_LINUX'
37 -- elif build.toolchain_is_gnu:
38 -- symbol = 'T_MINGW'
39 -- else:
40 -- symbol = 'T_LINUX'
41 --
42 -- return [build.env.StaticObject('#lib/fidlib-0.9.10/fidlib.c',
43 -- CPPDEFINES=symbol)]
44 --
45 - def configure(self, build, conf):
46 -- build.env.Append(CPPPATH='#lib/fidlib-0.9.10/')
47 -+ if not conf.CheckLib('fidlib'):
48 -+ raise Exception('Did not find fidlib library, exiting!')
49 -+ build.env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/fidlib'])
50 -
51 -
52 - class ReplayGain(Dependence):
53 -@@ -400,42 +385,17 @@
54 -
55 -
56 - class SoundTouch(Dependence):
57 -- SOUNDTOUCH_PATH = 'soundtouch-1.8.0'
58 -
59 - def sources(self, build):
60 -- return ['engine/enginebufferscalest.cpp',
61 -- '#lib/%s/AAFilter.cpp' % self.SOUNDTOUCH_PATH,
62 -- '#lib/%s/BPMDetect.cpp' % self.SOUNDTOUCH_PATH,
63 -- '#lib/%s/FIFOSampleBuffer.cpp' % self.SOUNDTOUCH_PATH,
64 -- '#lib/%s/FIRFilter.cpp' % self.SOUNDTOUCH_PATH,
65 -- '#lib/%s/InterpolateCubic.cpp' % self.SOUNDTOUCH_PATH,
66 -- '#lib/%s/InterpolateLinear.cpp' % self.SOUNDTOUCH_PATH,
67 -- '#lib/%s/InterpolateShannon.cpp' % self.SOUNDTOUCH_PATH,
68 -- '#lib/%s/PeakFinder.cpp' % self.SOUNDTOUCH_PATH,
69 -- '#lib/%s/RateTransposer.cpp' % self.SOUNDTOUCH_PATH,
70 -- '#lib/%s/SoundTouch.cpp' % self.SOUNDTOUCH_PATH,
71 -- '#lib/%s/TDStretch.cpp' % self.SOUNDTOUCH_PATH,
72 -- # SoundTouch CPU optimizations are only for x86
73 -- # architectures. SoundTouch automatically ignores these files
74 -- # when it is not being built for an architecture that supports
75 -- # them.
76 -- '#lib/%s/cpu_detect_x86.cpp' % self.SOUNDTOUCH_PATH,
77 -- '#lib/%s/mmx_optimized.cpp' % self.SOUNDTOUCH_PATH,
78 -- '#lib/%s/sse_optimized.cpp' % self.SOUNDTOUCH_PATH]
79 -+ return ['engine/enginebufferscalest.cpp']
80 -
81 - def configure(self, build, conf, env=None):
82 - if env is None:
83 - env = build.env
84 -- env.Append(CPPPATH=['#lib/%s' % self.SOUNDTOUCH_PATH])
85 --
86 -- # Prevents circular import.
87 -- from features import Optimize
88 --
89 -- # If we do not want optimizations then disable them.
90 -- optimize = (build.flags['optimize'] if 'optimize' in build.flags
91 -- else Optimize.get_optimization_level(build))
92 -- if optimize == Optimize.LEVEL_OFF:
93 -- env.Append(CPPDEFINES='SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS')
94 -+ if not conf.CheckLib(['SoundTouch','libSoundTouch']):
95 -+ raise Exception('Did not find SoundTouch library, exiting!')
96 -+ build.env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/soundtouch'])
97 -+ build.env.Append(LIBS='SoundTouch')
98 -
99 -
100 - class RubberBand(Dependence):
101 -diff -Naur mixxx-2.0.0/build/features.py mixxx-2.0.0_patch/build/features.py
102 ---- mixxx-2.0.0/build/features.py 2015-12-29 08:10:41.000000000 -0800
103 -+++ mixxx-2.0.0_patch/build/features.py 2016-01-11 20:27:05.342990424 -0800
104 -@@ -62,10 +62,6 @@
105 - def configure(self, build, conf):
106 - if not self.enabled(build):
107 - return
108 -- # TODO(XXX) allow external hidapi install, but for now we just use our
109 -- # internal one.
110 -- build.env.Append(
111 -- CPPPATH=[os.path.join(self.HIDAPI_INTERNAL_PATH, 'hidapi')])
112 -
113 - if build.platform_is_linux:
114 - build.env.ParseConfig(
115 -@@ -90,23 +86,17 @@
116 -
117 - build.env.Append(CPPDEFINES='__HID__')
118 -
119 -+ if not conf.CheckLib('hidapi-libusb'):
120 -+ raise Exception('Did not find HID API library, exiting!')
121 -+ build.env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/hidapi'])
122 -+ build.env.Append(LIBS='hidapi-libusb')
123 -+
124 -+
125 - def sources(self, build):
126 - sources = ['controllers/hid/hidcontroller.cpp',
127 - 'controllers/hid/hidenumerator.cpp',
128 - 'controllers/hid/hidcontrollerpresetfilehandler.cpp']
129 -
130 -- if build.platform_is_windows:
131 -- # Requires setupapi.lib which is included by the above check for
132 -- # setupapi.
133 -- sources.append(
134 -- os.path.join(self.HIDAPI_INTERNAL_PATH, "windows/hid.c"))
135 -- elif build.platform_is_linux:
136 -- # hidapi compiles the libusb implementation by default on Linux
137 -- sources.append(
138 -- os.path.join(self.HIDAPI_INTERNAL_PATH, 'libusb/hid.c'))
139 -- elif build.platform_is_osx:
140 -- sources.append(
141 -- os.path.join(self.HIDAPI_INTERNAL_PATH, 'mac/hid.c'))
142 - return sources
143 -
144 -
145 -@@ -745,24 +735,15 @@
146 - test_env.Append(CCFLAGS='-pthread')
147 - test_env.Append(LINKFLAGS='-pthread')
148 -
149 -- test_env.Append(CPPPATH="#lib/gtest-1.7.0/include")
150 -- gtest_dir = test_env.Dir("#lib/gtest-1.7.0")
151 -- # gtest_dir.addRepository(build.env.Dir('#lib/gtest-1.5.0'))
152 -- # build.env['EXE_OUTPUT'] = '#/lib/gtest-1.3.0/bin' # example,
153 -- # optional
154 -- test_env['LIB_OUTPUT'] = '#/lib/gtest-1.7.0/lib'
155 --
156 -- env = test_env
157 -- SCons.Export('env')
158 -- env.SConscript(env.File('SConscript', gtest_dir))
159 --
160 -- # build and configure gmock
161 -- test_env.Append(CPPPATH="#lib/gmock-1.7.0/include")
162 -- gmock_dir = test_env.Dir("#lib/gmock-1.7.0")
163 -- # gmock_dir.addRepository(build.env.Dir('#lib/gmock-1.5.0'))
164 -- test_env['LIB_OUTPUT'] = '#/lib/gmock-1.7.0/lib'
165 --
166 -- env.SConscript(env.File('SConscript', gmock_dir))
167 -+ if not conf.CheckLib('gtest'):
168 -+ raise Exception('Did not find gtest library, exiting!')
169 -+ test_env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/gtest'])
170 -+ test_env.Append(LIBS='gtest')
171 -+
172 -+ if not conf.CheckLib('gmock'):
173 -+ raise Exception('Did not find gmock library, exiting!')
174 -+ test_env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/gmock'])
175 -+ test_env.Append(LIBS='gmock')
176 -
177 - return []
178 -