1 |
zerochaos 14/08/31 03:07:29 |
2 |
|
3 |
Modified: gnuradio-9999.ebuild ChangeLog |
4 |
Added: gnuradio-3.7.5.ebuild gnuradio-3.7.4.1.ebuild |
5 |
Removed: gnuradio-3.7.4-r1.ebuild |
6 |
Log: |
7 |
version bump, dep cleanup |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key DD11F94A) |
10 |
|
11 |
Revision Changes Path |
12 |
1.23 net-wireless/gnuradio/gnuradio-9999.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-9999.ebuild?rev=1.23&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-9999.ebuild?rev=1.23&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-9999.ebuild?r1=1.22&r2=1.23 |
17 |
|
18 |
Index: gnuradio-9999.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/gnuradio-9999.ebuild,v |
21 |
retrieving revision 1.22 |
22 |
retrieving revision 1.23 |
23 |
diff -u -r1.22 -r1.23 |
24 |
--- gnuradio-9999.ebuild 25 Aug 2014 15:47:57 -0000 1.22 |
25 |
+++ gnuradio-9999.ebuild 31 Aug 2014 03:07:29 -0000 1.23 |
26 |
@@ -1,6 +1,6 @@ |
27 |
# Copyright 1999-2014 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/gnuradio-9999.ebuild,v 1.22 2014/08/25 15:47:57 zerochaos Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/gnuradio-9999.ebuild,v 1.23 2014/08/31 03:07:29 zerochaos Exp $ |
31 |
|
32 |
EAPI=5 |
33 |
PYTHON_COMPAT=( python2_7 ) |
34 |
@@ -14,8 +14,10 @@ |
35 |
SLOT="0/${PV}" |
36 |
|
37 |
if [[ ${PV} == "9999" ]] ; then |
38 |
- EGIT_REPO_URI="http://gnuradio.org/git/gnuradio.git" |
39 |
- inherit git-2 |
40 |
+ #EGIT_REPO_URI="http://gnuradio.org/git/gnuradio.git" |
41 |
+ EGIT_REPO_URI="git://anonscm.debian.org/users/bottoms/gnuradio.git" |
42 |
+ EGIT_BRANCH="gr-vocoder-use-system-codecs" |
43 |
+ inherit git-r3 |
44 |
KEYWORDS="" |
45 |
else |
46 |
SRC_URI="http://gnuradio.org/releases/${PN}/${P}.tar.gz" |
47 |
@@ -26,6 +28,10 @@ |
48 |
|
49 |
REQUIRED_USE="${PYTHON_REQUIRED_USE} |
50 |
audio? ( || ( alsa oss jack portaudio ) ) |
51 |
+ alsa? ( audio ) |
52 |
+ oss? ( audio ) |
53 |
+ jack ( audio ) |
54 |
+ portaudio? ( audio ) |
55 |
analog? ( filter ) |
56 |
digital? ( filter analog ) |
57 |
pager? ( filter analog ) |
58 |
@@ -72,6 +78,8 @@ |
59 |
) |
60 |
sdl? ( >=media-libs/libsdl-1.2.0 ) |
61 |
uhd? ( >=net-wireless/uhd-3.4.3-r1:=[${PYTHON_USEDEP}] ) |
62 |
+ utils? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) |
63 |
+ vocoder? ( media-sound/gsm ) |
64 |
wavelet? ( |
65 |
>=sci-libs/gsl-1.10 |
66 |
) |
67 |
@@ -82,7 +90,8 @@ |
68 |
) |
69 |
zeromq? ( >=net-libs/zeromq-2.1.11 |
70 |
net-libs/cppzmq ) |
71 |
-" |
72 |
+ " |
73 |
+ |
74 |
DEPEND="${RDEPEND} |
75 |
dev-lang/swig |
76 |
dev-python/cheetah[${PYTHON_USEDEP}] |
77 |
@@ -153,6 +162,7 @@ |
78 |
-DSYSCONFDIR="${EPREFIX}"/etc \ |
79 |
-DPYTHON_EXECUTABLE="${PYTHON}" |
80 |
) |
81 |
+ use vocoder && mycmakeargs+=( -DGR_USE_SYSTEM_LIBGSM=TRUE ) |
82 |
cmake-utils_src_configure |
83 |
} |
84 |
|
85 |
|
86 |
|
87 |
|
88 |
1.53 net-wireless/gnuradio/ChangeLog |
89 |
|
90 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?rev=1.53&view=markup |
91 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?rev=1.53&content-type=text/plain |
92 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?r1=1.52&r2=1.53 |
93 |
|
94 |
Index: ChangeLog |
95 |
=================================================================== |
96 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v |
97 |
retrieving revision 1.52 |
98 |
retrieving revision 1.53 |
99 |
diff -u -r1.52 -r1.53 |
100 |
--- ChangeLog 25 Aug 2014 15:47:57 -0000 1.52 |
101 |
+++ ChangeLog 31 Aug 2014 03:07:29 -0000 1.53 |
102 |
@@ -1,6 +1,13 @@ |
103 |
# ChangeLog for net-wireless/gnuradio |
104 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
105 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v 1.52 2014/08/25 15:47:57 zerochaos Exp $ |
106 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v 1.53 2014/08/31 03:07:29 zerochaos Exp $ |
107 |
+ |
108 |
+*gnuradio-3.7.4.1 (31 Aug 2014) |
109 |
+*gnuradio-3.7.5 (31 Aug 2014) |
110 |
+ |
111 |
+ 31 Aug 2014; Rick Farina <zerochaos@g.o> +gnuradio-3.7.4.1.ebuild, |
112 |
+ +gnuradio-3.7.5.ebuild, -gnuradio-3.7.4-r1.ebuild, gnuradio-9999.ebuild: |
113 |
+ version bump, dep cleanup |
114 |
|
115 |
*gnuradio-3.7.4-r1 (25 Aug 2014) |
116 |
|
117 |
|
118 |
|
119 |
|
120 |
1.1 net-wireless/gnuradio/gnuradio-3.7.5.ebuild |
121 |
|
122 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.7.5.ebuild?rev=1.1&view=markup |
123 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.7.5.ebuild?rev=1.1&content-type=text/plain |
124 |
|
125 |
Index: gnuradio-3.7.5.ebuild |
126 |
=================================================================== |
127 |
# Copyright 1999-2014 Gentoo Foundation |
128 |
# Distributed under the terms of the GNU General Public License v2 |
129 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/gnuradio-3.7.5.ebuild,v 1.1 2014/08/31 03:07:29 zerochaos Exp $ |
130 |
|
131 |
EAPI=5 |
132 |
PYTHON_COMPAT=( python2_7 ) |
133 |
|
134 |
CMAKE_BUILD_TYPE="None" |
135 |
inherit cmake-utils fdo-mime python-single-r1 |
136 |
|
137 |
DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios" |
138 |
HOMEPAGE="http://gnuradio.org/" |
139 |
LICENSE="GPL-3" |
140 |
SLOT="0/${PV}" |
141 |
|
142 |
if [[ ${PV} == "9999" ]] ; then |
143 |
#EGIT_REPO_URI="http://gnuradio.org/git/gnuradio.git" |
144 |
EGIT_REPO_URI="git://anonscm.debian.org/users/bottoms/gnuradio.git" |
145 |
EGIT_BRANCH="gr-vocoder-use-system-codecs" |
146 |
inherit git-r3 |
147 |
KEYWORDS="" |
148 |
else |
149 |
SRC_URI="http://gnuradio.org/releases/${PN}/${P}.tar.gz" |
150 |
KEYWORDS="~amd64 ~arm ~x86" |
151 |
fi |
152 |
|
153 |
IUSE="+audio +alsa atsc +analog +digital channels +ctrlport doc dtv examples fcd fec +filter grc jack log noaa oss pager performance-counters portaudio +qt4 sdl test trellis uhd vocoder +utils wavelet wxwidgets zeromq" |
154 |
|
155 |
REQUIRED_USE="${PYTHON_REQUIRED_USE} |
156 |
audio? ( || ( alsa oss jack portaudio ) ) |
157 |
alsa? ( audio ) |
158 |
oss? ( audio ) |
159 |
jack ( audio ) |
160 |
portaudio? ( audio ) |
161 |
analog? ( filter ) |
162 |
digital? ( filter analog ) |
163 |
pager? ( filter analog ) |
164 |
qt4? ( filter ) |
165 |
uhd? ( filter analog ) |
166 |
fcd? ( || ( alsa oss ) ) |
167 |
wavelet? ( analog ) |
168 |
wxwidgets? ( filter analog )" |
169 |
|
170 |
# bug #348206 |
171 |
# comedi? ( >=sci-electronics/comedilib-0.8 ) |
172 |
# boost-1.52.0 is blacklisted, bug #461578, upstream #513, boost #7669 |
173 |
RDEPEND="${PYTHON_DEPS} |
174 |
>=dev-lang/orc-0.4.12 |
175 |
dev-libs/boost:0=[${PYTHON_USEDEP}] |
176 |
!<=dev-libs/boost-1.52.0-r6:0/1.52 |
177 |
dev-python/numpy[${PYTHON_USEDEP}] |
178 |
>=dev-util/cppunit-1.9.14 |
179 |
sci-libs/fftw:3.0= |
180 |
alsa? ( |
181 |
media-libs/alsa-lib[${PYTHON_USEDEP}] |
182 |
) |
183 |
ctrlport? ( dev-libs/Ice[python,${PYTHON_USEDEP}] ) |
184 |
fcd? ( virtual/libusb:1 ) |
185 |
filter? ( sci-libs/scipy ) |
186 |
grc? ( |
187 |
dev-python/cheetah[${PYTHON_USEDEP}] |
188 |
dev-python/lxml[${PYTHON_USEDEP}] |
189 |
>=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}] |
190 |
) |
191 |
jack? ( |
192 |
media-sound/jack-audio-connection-kit |
193 |
) |
194 |
log? ( dev-libs/log4cpp ) |
195 |
portaudio? ( |
196 |
>=media-libs/portaudio-19_pre |
197 |
) |
198 |
qt4? ( |
199 |
>=dev-python/PyQt4-4.4[X,opengl,${PYTHON_USEDEP}] |
200 |
>=dev-python/pyqwt-5.2:5[${PYTHON_USEDEP}] |
201 |
>=dev-qt/qtcore-4.4 |
202 |
>=dev-qt/qtgui-4.4:4 |
203 |
>=x11-libs/qwt-5.2 |
204 |
) |
205 |
sdl? ( >=media-libs/libsdl-1.2.0 ) |
206 |
uhd? ( >=net-wireless/uhd-3.4.3-r1:=[${PYTHON_USEDEP}] ) |
207 |
utils? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) |
208 |
vocoder? ( media-sound/gsm ) |
209 |
wavelet? ( |
210 |
>=sci-libs/gsl-1.10 |
211 |
) |
212 |
wxwidgets? ( |
213 |
dev-python/lxml[${PYTHON_USEDEP}] |
214 |
dev-python/numpy[${PYTHON_USEDEP}] |
215 |
dev-python/wxpython:2.8[${PYTHON_USEDEP}] |
216 |
) |
217 |
zeromq? ( >=net-libs/zeromq-2.1.11 |
218 |
net-libs/cppzmq ) |
219 |
" |
220 |
|
221 |
DEPEND="${RDEPEND} |
222 |
dev-lang/swig |
223 |
dev-python/cheetah[${PYTHON_USEDEP}] |
224 |
virtual/pkgconfig |
225 |
doc? ( |
226 |
>=app-doc/doxygen-1.5.7.1 |
227 |
dev-python/sphinx[${PYTHON_USEDEP}] |
228 |
) |
229 |
grc? ( |
230 |
x11-misc/xdg-utils |
231 |
) |
232 |
oss? ( |
233 |
virtual/os-headers |
234 |
) |
235 |
" |
236 |
|
237 |
src_prepare() { |
238 |
# Useless UI element would require qt3support, bug #365019 |
239 |
sed -i '/qPixmapFromMimeSource/d' "${S}"/gr-qtgui/lib/spectrumdisplayform.ui || die |
240 |
#epatch "${FILESDIR}"/${PN}-3.6.1-automagic-audio.patch |
241 |
#epatch "${FILESDIR}/${P}-build-type-nonfatal.patch" |
242 |
} |
243 |
|
244 |
src_configure() { |
245 |
# TODO: docs are installed to /usr/share/doc/${PN} not /usr/share/doc/${PF} |
246 |
# SYSCONFDIR/GR_PREFSDIR default to install below CMAKE_INSTALL_PREFIX |
247 |
#audio provider is still automagic |
248 |
#zeromq missing deps isn't fatal |
249 |
mycmakeargs=( |
250 |
-DENABLE_DEFAULT=OFF |
251 |
-DENABLE_GNURADIO_RUNTIME=ON |
252 |
-DENABLE_VOLK=ON |
253 |
-DENABLE_PYTHON=ON |
254 |
-DENABLE_GR_BLOCKS=ON |
255 |
-DENABLE_GR_FFT=ON |
256 |
-DENABLE_GR_AUDIO=ON |
257 |
$(cmake-utils_use_enable alsa GR_AUDIO_ALSA) \ |
258 |
$(cmake-utils_use_enable analog GR_ANALOG) \ |
259 |
$(cmake-utils_use_enable atsc GR_ATSC) \ |
260 |
$(cmake-utils_use_enable channels GR_CHANNELS) \ |
261 |
$(cmake-utils_use_enable ctrlport GR_CTRLPORT) \ |
262 |
$(cmake-utils_use_enable digital GR_DIGITAL) \ |
263 |
$(cmake-utils_use_enable doc DOXYGEN) \ |
264 |
$(cmake-utils_use_enable doc SPHINX) \ |
265 |
$(cmake-utils_use_enable dtv GR_DTV) \ |
266 |
$(cmake-utils_use_enable fcd GR_FCD) \ |
267 |
$(cmake-utils_use_enable fec GR_FEC) \ |
268 |
$(cmake-utils_use_enable filter GR_FILTER) \ |
269 |
$(cmake-utils_use_enable grc GRC) \ |
270 |
$(cmake-utils_use_enable jack GR_AUDIO_JACK) \ |
271 |
$(cmake-utils_use_enable log GR_LOG) \ |
272 |
$(cmake-utils_use_enable noaa GR_NOAA) \ |
273 |
$(cmake-utils_use_enable oss GR_AUDIO_OSS) \ |
274 |
$(cmake-utils_use_enable pager GR_PAGER) \ |
275 |
$(cmake-utils_use_enable performance-counters ENABLE_PERFORMANCE_COUNTERS) \ |
276 |
$(cmake-utils_use_enable portaudio GR_AUDIO_PORTAUDIO) \ |
277 |
$(cmake-utils_use_enable test TESTING) \ |
278 |
$(cmake-utils_use_enable trellis GR_TRELLIS) \ |
279 |
$(cmake-utils_use_enable uhd GR_UHD) \ |
280 |
$(cmake-utils_use_enable utils GR_UTILS) \ |
281 |
$(cmake-utils_use_enable vocoder GR_VOCODER) \ |
282 |
$(cmake-utils_use_enable wavelet GR_WAVELET) \ |
283 |
$(cmake-utils_use_enable wxwidgets GR_WXGUI) \ |
284 |
$(cmake-utils_use_enable qt4 GR_QTGUI) \ |
285 |
$(cmake-utils_use_enable sdl GR_VIDEO_SDL) \ |
286 |
$(cmake-utils_use_enable zeromq GR_ZEROMQ) \ |
287 |
-DENABLE_GR_CORE=ON \ |
288 |
-DSYSCONFDIR="${EPREFIX}"/etc \ |
289 |
-DPYTHON_EXECUTABLE="${PYTHON}" |
290 |
) |
291 |
use vocoder && mycmakeargs+=( -DGR_USE_SYSTEM_LIBGSM=TRUE ) |
292 |
cmake-utils_src_configure |
293 |
} |
294 |
|
295 |
src_install() { |
296 |
cmake-utils_src_install |
297 |
|
298 |
if use examples ; then |
299 |
dodir /usr/share/doc/${PF}/ |
300 |
mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die |
301 |
else |
302 |
# It seems that the examples are always installed |
303 |
rm -rf "${ED}"/usr/share/${PN}/examples || die |
304 |
fi |
305 |
|
306 |
# We install the mimetypes to the correct locations from the ebuild |
307 |
rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die |
308 |
rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die |
309 |
|
310 |
# Install icons, menu items and mime-types for GRC |
311 |
if use grc ; then |
312 |
local fd_path="${S}/grc/freedesktop" |
313 |
insinto /usr/share/mime/packages |
314 |
doins "${fd_path}/${PN}-grc.xml" |
315 |
|
316 |
domenu "${fd_path}/"*.desktop |
317 |
doicon "${fd_path}/"*.png |
318 |
fi |
319 |
|
320 |
python_fix_shebang "${ED}" |
321 |
} |
322 |
|
323 |
src_test() |
324 |
{ |
325 |
ctest -E qtgui |
326 |
} |
327 |
|
328 |
pkg_postinst() |
329 |
{ |
330 |
local GRC_ICON_SIZES="32 48 64 128 256" |
331 |
|
332 |
if use grc ; then |
333 |
fdo-mime_desktop_database_update |
334 |
fdo-mime_mime_database_update |
335 |
for size in ${GRC_ICON_SIZES} ; do |
336 |
xdg-icon-resource install --noupdate --context mimetypes --size ${size} \ |
337 |
"${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" application-gnuradio-grc \ |
338 |
|| die "icon resource installation failed" |
339 |
xdg-icon-resource install --noupdate --context apps --size ${size} \ |
340 |
"${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" gnuradio-grc \ |
341 |
|| die "icon resource installation failed" |
342 |
done |
343 |
xdg-icon-resource forceupdate |
344 |
fi |
345 |
} |
346 |
|
347 |
pkg_postrm() |
348 |
{ |
349 |
local GRC_ICON_SIZES="32 48 64 128 256" |
350 |
|
351 |
if use grc ; then |
352 |
fdo-mime_desktop_database_update |
353 |
fdo-mime_mime_database_update |
354 |
for size in ${GRC_ICON_SIZES} ; do |
355 |
xdg-icon-resource uninstall --noupdate --context mimetypes --size ${size} \ |
356 |
application-gnuradio-grc || ewarn "icon uninstall failed" |
357 |
xdg-icon-resource uninstall --noupdate --context apps --size ${size} \ |
358 |
gnuradio-grc || ewarn "icon uninstall failed" |
359 |
|
360 |
done |
361 |
xdg-icon-resource forceupdate |
362 |
fi |
363 |
} |
364 |
|
365 |
|
366 |
|
367 |
1.1 net-wireless/gnuradio/gnuradio-3.7.4.1.ebuild |
368 |
|
369 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.7.4.1.ebuild?rev=1.1&view=markup |
370 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.7.4.1.ebuild?rev=1.1&content-type=text/plain |
371 |
|
372 |
Index: gnuradio-3.7.4.1.ebuild |
373 |
=================================================================== |
374 |
# Copyright 1999-2014 Gentoo Foundation |
375 |
# Distributed under the terms of the GNU General Public License v2 |
376 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/gnuradio-3.7.4.1.ebuild,v 1.1 2014/08/31 03:07:29 zerochaos Exp $ |
377 |
|
378 |
EAPI=5 |
379 |
PYTHON_COMPAT=( python2_7 ) |
380 |
|
381 |
CMAKE_BUILD_TYPE="None" |
382 |
inherit cmake-utils fdo-mime python-single-r1 |
383 |
|
384 |
DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios" |
385 |
HOMEPAGE="http://gnuradio.org/" |
386 |
LICENSE="GPL-3" |
387 |
SLOT="0/${PV}" |
388 |
|
389 |
if [[ ${PV} == "9999" ]] ; then |
390 |
#EGIT_REPO_URI="http://gnuradio.org/git/gnuradio.git" |
391 |
EGIT_REPO_URI="git://anonscm.debian.org/users/bottoms/gnuradio.git" |
392 |
EGIT_BRANCH="gr-vocoder-use-system-codecs" |
393 |
inherit git-r3 |
394 |
KEYWORDS="" |
395 |
else |
396 |
SRC_URI="http://gnuradio.org/releases/${PN}/${P}.tar.gz" |
397 |
KEYWORDS="~amd64 ~arm ~x86" |
398 |
fi |
399 |
|
400 |
IUSE="+audio +alsa atsc +analog +digital channels +ctrlport doc dtv examples fcd fec +filter grc jack log noaa oss pager performance-counters portaudio +qt4 sdl test trellis uhd vocoder +utils wavelet wxwidgets zeromq" |
401 |
|
402 |
REQUIRED_USE="${PYTHON_REQUIRED_USE} |
403 |
audio? ( || ( alsa oss jack portaudio ) ) |
404 |
alsa? ( audio ) |
405 |
oss? ( audio ) |
406 |
jack ( audio ) |
407 |
portaudio? ( audio ) |
408 |
analog? ( filter ) |
409 |
digital? ( filter analog ) |
410 |
pager? ( filter analog ) |
411 |
qt4? ( filter ) |
412 |
uhd? ( filter analog ) |
413 |
fcd? ( || ( alsa oss ) ) |
414 |
wavelet? ( analog ) |
415 |
wxwidgets? ( filter analog )" |
416 |
|
417 |
# bug #348206 |
418 |
# comedi? ( >=sci-electronics/comedilib-0.8 ) |
419 |
# boost-1.52.0 is blacklisted, bug #461578, upstream #513, boost #7669 |
420 |
RDEPEND="${PYTHON_DEPS} |
421 |
>=dev-lang/orc-0.4.12 |
422 |
dev-libs/boost:0=[${PYTHON_USEDEP}] |
423 |
!<=dev-libs/boost-1.52.0-r6:0/1.52 |
424 |
dev-python/numpy[${PYTHON_USEDEP}] |
425 |
>=dev-util/cppunit-1.9.14 |
426 |
sci-libs/fftw:3.0= |
427 |
alsa? ( |
428 |
media-libs/alsa-lib[${PYTHON_USEDEP}] |
429 |
) |
430 |
ctrlport? ( dev-libs/Ice[python,${PYTHON_USEDEP}] ) |
431 |
fcd? ( virtual/libusb:1 ) |
432 |
filter? ( sci-libs/scipy ) |
433 |
grc? ( |
434 |
dev-python/cheetah[${PYTHON_USEDEP}] |
435 |
dev-python/lxml[${PYTHON_USEDEP}] |
436 |
>=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}] |
437 |
) |
438 |
jack? ( |
439 |
media-sound/jack-audio-connection-kit |
440 |
) |
441 |
log? ( dev-libs/log4cpp ) |
442 |
portaudio? ( |
443 |
>=media-libs/portaudio-19_pre |
444 |
) |
445 |
qt4? ( |
446 |
>=dev-python/PyQt4-4.4[X,opengl,${PYTHON_USEDEP}] |
447 |
>=dev-python/pyqwt-5.2:5[${PYTHON_USEDEP}] |
448 |
>=dev-qt/qtcore-4.4 |
449 |
>=dev-qt/qtgui-4.4:4 |
450 |
>=x11-libs/qwt-5.2 |
451 |
) |
452 |
sdl? ( >=media-libs/libsdl-1.2.0 ) |
453 |
uhd? ( >=net-wireless/uhd-3.4.3-r1:=[${PYTHON_USEDEP}] ) |
454 |
utils? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) |
455 |
vocoder? ( media-sound/gsm ) |
456 |
wavelet? ( |
457 |
>=sci-libs/gsl-1.10 |
458 |
) |
459 |
wxwidgets? ( |
460 |
dev-python/lxml[${PYTHON_USEDEP}] |
461 |
dev-python/numpy[${PYTHON_USEDEP}] |
462 |
dev-python/wxpython:2.8[${PYTHON_USEDEP}] |
463 |
) |
464 |
zeromq? ( >=net-libs/zeromq-2.1.11 |
465 |
net-libs/cppzmq ) |
466 |
" |
467 |
|
468 |
DEPEND="${RDEPEND} |
469 |
dev-lang/swig |
470 |
dev-python/cheetah[${PYTHON_USEDEP}] |
471 |
virtual/pkgconfig |
472 |
doc? ( |
473 |
>=app-doc/doxygen-1.5.7.1 |
474 |
dev-python/sphinx[${PYTHON_USEDEP}] |
475 |
) |
476 |
grc? ( |
477 |
x11-misc/xdg-utils |
478 |
) |
479 |
oss? ( |
480 |
virtual/os-headers |
481 |
) |
482 |
" |
483 |
|
484 |
src_prepare() { |
485 |
# Useless UI element would require qt3support, bug #365019 |
486 |
sed -i '/qPixmapFromMimeSource/d' "${S}"/gr-qtgui/lib/spectrumdisplayform.ui || die |
487 |
#epatch "${FILESDIR}"/${PN}-3.6.1-automagic-audio.patch |
488 |
#epatch "${FILESDIR}/${P}-build-type-nonfatal.patch" |
489 |
} |
490 |
|
491 |
src_configure() { |
492 |
# TODO: docs are installed to /usr/share/doc/${PN} not /usr/share/doc/${PF} |
493 |
# SYSCONFDIR/GR_PREFSDIR default to install below CMAKE_INSTALL_PREFIX |
494 |
#audio provider is still automagic |
495 |
#zeromq missing deps isn't fatal |
496 |
mycmakeargs=( |
497 |
-DENABLE_DEFAULT=OFF |
498 |
-DENABLE_GNURADIO_RUNTIME=ON |
499 |
-DENABLE_VOLK=ON |
500 |
-DENABLE_PYTHON=ON |
501 |
-DENABLE_GR_BLOCKS=ON |
502 |
-DENABLE_GR_FFT=ON |
503 |
-DENABLE_GR_AUDIO=ON |
504 |
$(cmake-utils_use_enable alsa GR_AUDIO_ALSA) \ |
505 |
$(cmake-utils_use_enable analog GR_ANALOG) \ |
506 |
$(cmake-utils_use_enable atsc GR_ATSC) \ |
507 |
$(cmake-utils_use_enable channels GR_CHANNELS) \ |
508 |
$(cmake-utils_use_enable ctrlport GR_CTRLPORT) \ |
509 |
$(cmake-utils_use_enable digital GR_DIGITAL) \ |
510 |
$(cmake-utils_use_enable doc DOXYGEN) \ |
511 |
$(cmake-utils_use_enable doc SPHINX) \ |
512 |
$(cmake-utils_use_enable dtv GR_DTV) \ |
513 |
$(cmake-utils_use_enable fcd GR_FCD) \ |
514 |
$(cmake-utils_use_enable fec GR_FEC) \ |
515 |
$(cmake-utils_use_enable filter GR_FILTER) \ |
516 |
$(cmake-utils_use_enable grc GRC) \ |
517 |
$(cmake-utils_use_enable jack GR_AUDIO_JACK) \ |
518 |
$(cmake-utils_use_enable log GR_LOG) \ |
519 |
$(cmake-utils_use_enable noaa GR_NOAA) \ |
520 |
$(cmake-utils_use_enable oss GR_AUDIO_OSS) \ |
521 |
$(cmake-utils_use_enable pager GR_PAGER) \ |
522 |
$(cmake-utils_use_enable performance-counters ENABLE_PERFORMANCE_COUNTERS) \ |
523 |
$(cmake-utils_use_enable portaudio GR_AUDIO_PORTAUDIO) \ |
524 |
$(cmake-utils_use_enable test TESTING) \ |
525 |
$(cmake-utils_use_enable trellis GR_TRELLIS) \ |
526 |
$(cmake-utils_use_enable uhd GR_UHD) \ |
527 |
$(cmake-utils_use_enable utils GR_UTILS) \ |
528 |
$(cmake-utils_use_enable vocoder GR_VOCODER) \ |
529 |
$(cmake-utils_use_enable wavelet GR_WAVELET) \ |
530 |
$(cmake-utils_use_enable wxwidgets GR_WXGUI) \ |
531 |
$(cmake-utils_use_enable qt4 GR_QTGUI) \ |
532 |
$(cmake-utils_use_enable sdl GR_VIDEO_SDL) \ |
533 |
$(cmake-utils_use_enable zeromq GR_ZEROMQ) \ |
534 |
-DENABLE_GR_CORE=ON \ |
535 |
-DSYSCONFDIR="${EPREFIX}"/etc \ |
536 |
-DPYTHON_EXECUTABLE="${PYTHON}" |
537 |
) |
538 |
use vocoder && mycmakeargs+=( -DGR_USE_SYSTEM_LIBGSM=TRUE ) |
539 |
cmake-utils_src_configure |
540 |
} |
541 |
|
542 |
src_install() { |
543 |
cmake-utils_src_install |
544 |
|
545 |
if use examples ; then |
546 |
dodir /usr/share/doc/${PF}/ |
547 |
mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die |
548 |
else |
549 |
# It seems that the examples are always installed |
550 |
rm -rf "${ED}"/usr/share/${PN}/examples || die |
551 |
fi |
552 |
|
553 |
# We install the mimetypes to the correct locations from the ebuild |
554 |
rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die |
555 |
rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die |
556 |
|
557 |
# Install icons, menu items and mime-types for GRC |
558 |
if use grc ; then |
559 |
local fd_path="${S}/grc/freedesktop" |
560 |
insinto /usr/share/mime/packages |
561 |
doins "${fd_path}/${PN}-grc.xml" |
562 |
|
563 |
domenu "${fd_path}/"*.desktop |
564 |
doicon "${fd_path}/"*.png |
565 |
fi |
566 |
|
567 |
python_fix_shebang "${ED}" |
568 |
} |
569 |
|
570 |
src_test() |
571 |
{ |
572 |
ctest -E qtgui |
573 |
} |
574 |
|
575 |
pkg_postinst() |
576 |
{ |
577 |
local GRC_ICON_SIZES="32 48 64 128 256" |
578 |
|
579 |
if use grc ; then |
580 |
fdo-mime_desktop_database_update |
581 |
fdo-mime_mime_database_update |
582 |
for size in ${GRC_ICON_SIZES} ; do |
583 |
xdg-icon-resource install --noupdate --context mimetypes --size ${size} \ |
584 |
"${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" application-gnuradio-grc \ |
585 |
|| die "icon resource installation failed" |
586 |
xdg-icon-resource install --noupdate --context apps --size ${size} \ |
587 |
"${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" gnuradio-grc \ |
588 |
|| die "icon resource installation failed" |
589 |
done |
590 |
xdg-icon-resource forceupdate |
591 |
fi |
592 |
} |
593 |
|
594 |
pkg_postrm() |
595 |
{ |
596 |
local GRC_ICON_SIZES="32 48 64 128 256" |
597 |
|
598 |
if use grc ; then |
599 |
fdo-mime_desktop_database_update |
600 |
fdo-mime_mime_database_update |
601 |
for size in ${GRC_ICON_SIZES} ; do |
602 |
xdg-icon-resource uninstall --noupdate --context mimetypes --size ${size} \ |
603 |
application-gnuradio-grc || ewarn "icon uninstall failed" |
604 |
xdg-icon-resource uninstall --noupdate --context apps --size ${size} \ |
605 |
gnuradio-grc || ewarn "icon uninstall failed" |
606 |
|
607 |
done |
608 |
xdg-icon-resource forceupdate |
609 |
fi |
610 |
} |