Gentoo Archives: gentoo-commits

From: "Richard Farina (zerochaos)" <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/gnuradio: gnuradio-3.6.4.2.ebuild gnuradio-3.6.5.ebuild ChangeLog
Date: Thu, 30 May 2013 01:38:54
Message-Id: 20130530013851.8DE782171D@flycatcher.gentoo.org
1 zerochaos 13/05/30 01:38:51
2
3 Modified: ChangeLog
4 Added: gnuradio-3.6.4.2.ebuild gnuradio-3.6.5.ebuild
5 Log:
6 maintanence release update
7
8 (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
9
10 Revision Changes Path
11 1.26 net-wireless/gnuradio/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?rev=1.26&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?rev=1.26&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?r1=1.25&r2=1.26
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v
20 retrieving revision 1.25
21 retrieving revision 1.26
22 diff -u -r1.25 -r1.26
23 --- ChangeLog 20 Apr 2013 15:09:56 -0000 1.25
24 +++ ChangeLog 30 May 2013 01:38:51 -0000 1.26
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-wireless/gnuradio
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v 1.25 2013/04/20 15:09:56 zerochaos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v 1.26 2013/05/30 01:38:51 zerochaos Exp $
30 +
31 +*gnuradio-3.6.4.2 (30 May 2013)
32 +*gnuradio-3.6.5 (30 May 2013)
33 +
34 + 30 May 2013; Rick Farina <zerochaos@g.o> +gnuradio-3.6.4.2.ebuild,
35 + +gnuradio-3.6.5.ebuild:
36 + maintanence release update
37
38 *gnuradio-3.6.4.1-r1 (20 Apr 2013)
39
40
41
42
43 1.1 net-wireless/gnuradio/gnuradio-3.6.4.2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.4.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.4.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gnuradio-3.6.4.2.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.4.2.ebuild,v 1.1 2013/05/30 01:38:51 zerochaos Exp $
53
54 EAPI=5
55 PYTHON_DEPEND="2"
56
57 inherit base cmake-utils fdo-mime python
58
59 DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios"
60 HOMEPAGE="http://gnuradio.org/"
61 LICENSE="GPL-3"
62 SLOT="0/${PV}"
63
64 if [[ ${PV} == "9999" ]] ; then
65 EGIT_REPO_URI="http://gnuradio.org/git/gnuradio.git"
66 inherit git-2
67 KEYWORDS=""
68 else
69 SRC_URI="http://gnuradio.org/releases/${PN}/${P}.tar.gz"
70 KEYWORDS="~amd64 ~x86"
71 fi
72
73 IUSE="alsa doc examples fcd filter grc jack oss performance-counters portaudio qt4 sdl uhd utils wavelet wxwidgets"
74
75 # bug #348206
76 # comedi? ( >=sci-electronics/comedilib-0.7 )
77 # boost-1.52.0 is blacklisted, bug #461578, upstream #513, boost #7669
78 RDEPEND=">=dev-lang/orc-0.4.12
79 dev-libs/boost
80 !<=dev-libs/boost-1.52.0-r6:0/1.52
81 dev-python/cheetah
82 dev-util/cppunit
83 sci-libs/fftw:3.0
84 fcd? ( virtual/libusb:1 )
85 alsa? (
86 media-libs/alsa-lib
87 )
88 grc? (
89 dev-python/lxml
90 dev-python/numpy
91 dev-python/pygtk:2
92 )
93 jack? (
94 media-sound/jack-audio-connection-kit
95 )
96 portaudio? (
97 >=media-libs/portaudio-19_pre
98 )
99 qt4? (
100 dev-python/PyQt4[X,opengl]
101 dev-python/pyqwt:5
102 dev-qt/qtgui:4
103 )
104 sdl? ( media-libs/libsdl )
105 uhd? ( >=net-wireless/uhd-3.4.3-r1 )
106 wavelet? (
107 sci-libs/gsl
108 )
109 wxwidgets? (
110 dev-python/wxpython:2.8
111 dev-python/numpy
112 )
113 "
114 DEPEND="${RDEPEND}
115 dev-lang/swig
116 virtual/pkgconfig
117 doc? (
118 >=app-doc/doxygen-1.5.7.1
119 dev-python/sphinx
120 )
121 grc? (
122 x11-misc/xdg-utils
123 )
124 oss? (
125 virtual/os-headers
126 )
127 "
128
129 PATCHES=(
130 "${FILESDIR}"/${PN}-3.6.1-automagic-audio.patch
131 )
132
133 pkg_setup() {
134 python_set_active_version 2
135 python_pkg_setup
136 }
137
138 src_prepare() {
139 python_convert_shebangs -q -r 2 "${S}"
140 # Useless UI element would require qt3support, bug #365019
141 sed -i '/qPixmapFromMimeSource/d' "${S}"/gr-qtgui/lib/spectrumdisplayform.ui || die
142 base_src_prepare
143 }
144
145 src_configure() {
146 # TODO: docs are installed to /usr/share/doc/${PN} not /usr/share/doc/${PF}
147 # SYSCONFDIR/GR_PREFSDIR default to install below CMAKE_INSTALL_PREFIX
148 mycmakeargs=(
149 $(cmake-utils_use_enable alsa GR_AUDIO_ALSA)
150 $(cmake-utils_use_enable doc DOXYGEN) \
151 $(cmake-utils_use_enable doc SPHINX) \
152 $(cmake-utils_use_enable fcd GR_FCD) \
153 $(cmake-utils_use_enable filter GR_FILTER) \
154 $(cmake-utils_use_enable grc GRC) \
155 $(cmake-utils_use_enable jack GR_AUDIO_JACK)
156 $(cmake-utils_use_enable oss GR_AUDIO_OSS)
157 $(cmake-utils_use_enable performance-counters ENABLE_PERFORMANCE_COUNTERS)
158 $(cmake-utils_use_enable portaudio GR_AUDIO_PORTAUDIO)
159 $(cmake-utils_use_enable uhd GR_UHD) \
160 $(cmake-utils_use_enable utils GR_UTILS) \
161 $(cmake-utils_use_enable wavelet GR_WAVELET) \
162 $(cmake-utils_use_enable wxwidgets GR_WXGUI) \
163 $(cmake-utils_use_enable qt4 GR_QTGUI) \
164 $(cmake-utils_use_enable sdl GR_VIDEO_SDL) \
165 -DENABLE_GR_CORE=ON
166 -DQWT_INCLUDE_DIRS="${EPREFIX}"/usr/include/qwt5
167 -DSYSCONFDIR="${EPREFIX}"/etc
168 )
169 cmake-utils_src_configure
170 }
171
172 src_install() {
173 cmake-utils_src_install
174
175 python_clean_installation_image -q
176
177 # Remove bad shebangs that creep back in during install
178 sed -i '\|#!/usr/bin/python|d' "${ED}"/usr/bin/* || die
179
180 # Install examples to /usr/share/doc/$PF
181 if use examples ; then
182 dodir /usr/share/doc/${PF}/
183 mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die
184 else
185 # It seems that the examples are always installed
186 rm -rf "${ED}"/usr/share/${PN}/examples || die
187 fi
188
189 # We install the mimetypes to the correct locations from the ebuild
190 rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die
191 rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die
192
193 # Install icons, menu items and mime-types for GRC
194 if use grc ; then
195 local fd_path="${S}/grc/freedesktop"
196 insinto /usr/share/mime/packages
197 doins "${fd_path}/${PN}-grc.xml"
198
199 domenu "${fd_path}/"*.desktop
200 doicon "${fd_path}/"*.png
201 fi
202 }
203
204 pkg_postinst()
205 {
206 local GRC_ICON_SIZES="32 48 64 128 256"
207 python_mod_optimize gnuradio
208
209 if use grc ; then
210 fdo-mime_desktop_database_update
211 fdo-mime_mime_database_update
212 for size in ${GRC_ICON_SIZES} ; do
213 xdg-icon-resource install --noupdate --context mimetypes --size ${size} \
214 "${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" application-gnuradio-grc \
215 || die "icon resource installation failed"
216 xdg-icon-resource install --noupdate --context apps --size ${size} \
217 "${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" gnuradio-grc \
218 || die "icon resource installation failed"
219 done
220 xdg-icon-resource forceupdate
221 fi
222 }
223
224 pkg_postrm()
225 {
226 local GRC_ICON_SIZES="32 48 64 128 256"
227 python_mod_cleanup gnuradio
228
229 if use grc ; then
230 fdo-mime_desktop_database_update
231 fdo-mime_mime_database_update
232 for size in ${GRC_ICON_SIZES} ; do
233 xdg-icon-resource uninstall --noupdate --context mimetypes --size ${size} \
234 application-gnuradio-grc || ewarn "icon uninstall failed"
235 xdg-icon-resource uninstall --noupdate --context apps --size ${size} \
236 gnuradio-grc || ewarn "icon uninstall failed"
237
238 done
239 xdg-icon-resource forceupdate
240 fi
241 }
242
243
244
245 1.1 net-wireless/gnuradio/gnuradio-3.6.5.ebuild
246
247 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.5.ebuild?rev=1.1&view=markup
248 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.5.ebuild?rev=1.1&content-type=text/plain
249
250 Index: gnuradio-3.6.5.ebuild
251 ===================================================================
252 # Copyright 1999-2013 Gentoo Foundation
253 # Distributed under the terms of the GNU General Public License v2
254 # $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.5.ebuild,v 1.1 2013/05/30 01:38:51 zerochaos Exp $
255
256 EAPI=5
257 PYTHON_DEPEND="2"
258
259 inherit base cmake-utils fdo-mime python
260
261 DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios"
262 HOMEPAGE="http://gnuradio.org/"
263 LICENSE="GPL-3"
264 SLOT="0/${PV}"
265
266 if [[ ${PV} == "9999" ]] ; then
267 EGIT_REPO_URI="http://gnuradio.org/git/gnuradio.git"
268 inherit git-2
269 KEYWORDS=""
270 else
271 SRC_URI="http://gnuradio.org/releases/${PN}/${P}.tar.gz"
272 KEYWORDS="~amd64 ~x86"
273 fi
274
275 IUSE="alsa doc examples fcd filter grc jack oss performance-counters portaudio qt4 sdl uhd utils wavelet wxwidgets"
276
277 # bug #348206
278 # comedi? ( >=sci-electronics/comedilib-0.7 )
279 # boost-1.52.0 is blacklisted, bug #461578, upstream #513, boost #7669
280 RDEPEND=">=dev-lang/orc-0.4.12
281 dev-libs/boost
282 !<=dev-libs/boost-1.52.0-r6:0/1.52
283 dev-python/cheetah
284 dev-util/cppunit
285 sci-libs/fftw:3.0
286 fcd? ( virtual/libusb:1 )
287 alsa? (
288 media-libs/alsa-lib
289 )
290 grc? (
291 dev-python/lxml
292 dev-python/numpy
293 dev-python/pygtk:2
294 )
295 jack? (
296 media-sound/jack-audio-connection-kit
297 )
298 portaudio? (
299 >=media-libs/portaudio-19_pre
300 )
301 qt4? (
302 dev-python/PyQt4[X,opengl]
303 dev-python/pyqwt:5
304 dev-qt/qtgui:4
305 )
306 sdl? ( media-libs/libsdl )
307 uhd? ( >=net-wireless/uhd-3.4.3-r1 )
308 wavelet? (
309 sci-libs/gsl
310 )
311 wxwidgets? (
312 dev-python/wxpython:2.8
313 dev-python/numpy
314 )
315 "
316 DEPEND="${RDEPEND}
317 dev-lang/swig
318 virtual/pkgconfig
319 doc? (
320 >=app-doc/doxygen-1.5.7.1
321 dev-python/sphinx
322 )
323 grc? (
324 x11-misc/xdg-utils
325 )
326 oss? (
327 virtual/os-headers
328 )
329 "
330
331 PATCHES=(
332 "${FILESDIR}"/${PN}-3.6.1-automagic-audio.patch
333 )
334
335 pkg_setup() {
336 python_set_active_version 2
337 python_pkg_setup
338 }
339
340 src_prepare() {
341 python_convert_shebangs -q -r 2 "${S}"
342 # Useless UI element would require qt3support, bug #365019
343 sed -i '/qPixmapFromMimeSource/d' "${S}"/gr-qtgui/lib/spectrumdisplayform.ui || die
344 base_src_prepare
345 }
346
347 src_configure() {
348 # TODO: docs are installed to /usr/share/doc/${PN} not /usr/share/doc/${PF}
349 # SYSCONFDIR/GR_PREFSDIR default to install below CMAKE_INSTALL_PREFIX
350 mycmakeargs=(
351 $(cmake-utils_use_enable alsa GR_AUDIO_ALSA)
352 $(cmake-utils_use_enable doc DOXYGEN) \
353 $(cmake-utils_use_enable doc SPHINX) \
354 $(cmake-utils_use_enable fcd GR_FCD) \
355 $(cmake-utils_use_enable filter GR_FILTER) \
356 $(cmake-utils_use_enable grc GRC) \
357 $(cmake-utils_use_enable jack GR_AUDIO_JACK)
358 $(cmake-utils_use_enable oss GR_AUDIO_OSS)
359 $(cmake-utils_use_enable performance-counters ENABLE_PERFORMANCE_COUNTERS)
360 $(cmake-utils_use_enable portaudio GR_AUDIO_PORTAUDIO)
361 $(cmake-utils_use_enable uhd GR_UHD) \
362 $(cmake-utils_use_enable utils GR_UTILS) \
363 $(cmake-utils_use_enable wavelet GR_WAVELET) \
364 $(cmake-utils_use_enable wxwidgets GR_WXGUI) \
365 $(cmake-utils_use_enable qt4 GR_QTGUI) \
366 $(cmake-utils_use_enable sdl GR_VIDEO_SDL) \
367 -DENABLE_GR_CORE=ON
368 -DQWT_INCLUDE_DIRS="${EPREFIX}"/usr/include/qwt5
369 -DSYSCONFDIR="${EPREFIX}"/etc
370 )
371 cmake-utils_src_configure
372 }
373
374 src_install() {
375 cmake-utils_src_install
376
377 python_clean_installation_image -q
378
379 # Remove bad shebangs that creep back in during install
380 sed -i '\|#!/usr/bin/python|d' "${ED}"/usr/bin/* || die
381
382 # Install examples to /usr/share/doc/$PF
383 if use examples ; then
384 dodir /usr/share/doc/${PF}/
385 mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die
386 else
387 # It seems that the examples are always installed
388 rm -rf "${ED}"/usr/share/${PN}/examples || die
389 fi
390
391 # We install the mimetypes to the correct locations from the ebuild
392 rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die
393 rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die
394
395 # Install icons, menu items and mime-types for GRC
396 if use grc ; then
397 local fd_path="${S}/grc/freedesktop"
398 insinto /usr/share/mime/packages
399 doins "${fd_path}/${PN}-grc.xml"
400
401 domenu "${fd_path}/"*.desktop
402 doicon "${fd_path}/"*.png
403 fi
404 }
405
406 pkg_postinst()
407 {
408 local GRC_ICON_SIZES="32 48 64 128 256"
409 python_mod_optimize gnuradio
410
411 if use grc ; then
412 fdo-mime_desktop_database_update
413 fdo-mime_mime_database_update
414 for size in ${GRC_ICON_SIZES} ; do
415 xdg-icon-resource install --noupdate --context mimetypes --size ${size} \
416 "${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" application-gnuradio-grc \
417 || die "icon resource installation failed"
418 xdg-icon-resource install --noupdate --context apps --size ${size} \
419 "${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" gnuradio-grc \
420 || die "icon resource installation failed"
421 done
422 xdg-icon-resource forceupdate
423 fi
424 }
425
426 pkg_postrm()
427 {
428 local GRC_ICON_SIZES="32 48 64 128 256"
429 python_mod_cleanup gnuradio
430
431 if use grc ; then
432 fdo-mime_desktop_database_update
433 fdo-mime_mime_database_update
434 for size in ${GRC_ICON_SIZES} ; do
435 xdg-icon-resource uninstall --noupdate --context mimetypes --size ${size} \
436 application-gnuradio-grc || ewarn "icon uninstall failed"
437 xdg-icon-resource uninstall --noupdate --context apps --size ${size} \
438 gnuradio-grc || ewarn "icon uninstall failed"
439
440 done
441 xdg-icon-resource forceupdate
442 fi
443 }