Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/gnuradio: gnuradio-3.6.5.1.ebuild ChangeLog
Date: Sat, 29 Jun 2013 22:41:54
Message-Id: 20130629224146.673A82171C@flycatcher.gentoo.org
1 chithanh 13/06/29 22:41:46
2
3 Modified: ChangeLog
4 Added: gnuradio-3.6.5.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.29 net-wireless/gnuradio/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 5 Jun 2013 02:52:56 -0000 1.28
24 +++ ChangeLog 29 Jun 2013 22:41:46 -0000 1.29
25 @@ -1,6 +1,12 @@
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.28 2013/06/05 02:52:56 zerochaos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v 1.29 2013/06/29 22:41:46 chithanh Exp $
30 +
31 +*gnuradio-3.6.5.1 (29 Jun 2013)
32 +
33 + 29 Jun 2013; Chí-Thanh Christopher Nguyễn <chithanh@g.o>
34 + +gnuradio-3.6.5.1.ebuild:
35 + Version bump.
36
37 05 Jun 2013; Rick Farina <zerochaos@g.o> gnuradio-3.6.4.2.ebuild,
38 gnuradio-3.6.5.ebuild, gnuradio-9999.ebuild:
39
40
41
42 1.1 net-wireless/gnuradio/gnuradio-3.6.5.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.5.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.5.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gnuradio-3.6.5.1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/gnuradio-3.6.5.1.ebuild,v 1.1 2013/06/29 22:41:46 chithanh Exp $
52
53 EAPI=5
54 PYTHON_DEPEND="2"
55
56 inherit base cmake-utils fdo-mime python
57
58 DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios"
59 HOMEPAGE="http://gnuradio.org/"
60 LICENSE="GPL-3"
61 SLOT="0/${PV}"
62
63 if [[ ${PV} == "9999" ]] ; then
64 EGIT_REPO_URI="http://gnuradio.org/git/gnuradio.git"
65 inherit git-2
66 KEYWORDS=""
67 else
68 SRC_URI="http://gnuradio.org/releases/${PN}/${P}.tar.gz"
69 KEYWORDS="~amd64 ~arm ~x86"
70 fi
71
72 IUSE="alsa doc examples fcd filter grc jack oss performance-counters portaudio qt4 sdl uhd utils wavelet wxwidgets"
73
74 # bug #348206
75 # comedi? ( >=sci-electronics/comedilib-0.7 )
76 # boost-1.52.0 is blacklisted, bug #461578, upstream #513, boost #7669
77 RDEPEND=">=dev-lang/orc-0.4.12
78 dev-libs/boost
79 !<=dev-libs/boost-1.52.0-r6:0/1.52
80 dev-python/cheetah
81 dev-util/cppunit
82 sci-libs/fftw:3.0
83 fcd? ( virtual/libusb:1 )
84 alsa? (
85 media-libs/alsa-lib
86 )
87 grc? (
88 dev-python/lxml
89 dev-python/numpy
90 dev-python/pygtk:2
91 )
92 jack? (
93 media-sound/jack-audio-connection-kit
94 )
95 portaudio? (
96 >=media-libs/portaudio-19_pre
97 )
98 qt4? (
99 dev-python/PyQt4[X,opengl]
100 dev-python/pyqwt:5
101 dev-qt/qtgui:4
102 )
103 sdl? ( media-libs/libsdl )
104 uhd? ( >=net-wireless/uhd-3.4.3-r1 )
105 wavelet? (
106 sci-libs/gsl
107 )
108 wxwidgets? (
109 dev-python/wxpython:2.8
110 dev-python/numpy
111 )
112 "
113 DEPEND="${RDEPEND}
114 dev-lang/swig
115 virtual/pkgconfig
116 doc? (
117 >=app-doc/doxygen-1.5.7.1
118 dev-python/sphinx
119 )
120 grc? (
121 x11-misc/xdg-utils
122 )
123 oss? (
124 virtual/os-headers
125 )
126 "
127
128 PATCHES=(
129 "${FILESDIR}"/${PN}-3.6.1-automagic-audio.patch
130 )
131
132 pkg_setup() {
133 python_set_active_version 2
134 python_pkg_setup
135 }
136
137 src_prepare() {
138 python_convert_shebangs -q -r 2 "${S}"
139 # Useless UI element would require qt3support, bug #365019
140 sed -i '/qPixmapFromMimeSource/d' "${S}"/gr-qtgui/lib/spectrumdisplayform.ui || die
141 base_src_prepare
142 }
143
144 src_configure() {
145 # TODO: docs are installed to /usr/share/doc/${PN} not /usr/share/doc/${PF}
146 # SYSCONFDIR/GR_PREFSDIR default to install below CMAKE_INSTALL_PREFIX
147 mycmakeargs=(
148 $(cmake-utils_use_enable alsa GR_AUDIO_ALSA)
149 $(cmake-utils_use_enable doc DOXYGEN) \
150 $(cmake-utils_use_enable doc SPHINX) \
151 $(cmake-utils_use_enable fcd GR_FCD) \
152 $(cmake-utils_use_enable filter GR_FILTER) \
153 $(cmake-utils_use_enable grc GRC) \
154 $(cmake-utils_use_enable jack GR_AUDIO_JACK)
155 $(cmake-utils_use_enable oss GR_AUDIO_OSS)
156 $(cmake-utils_use_enable performance-counters ENABLE_PERFORMANCE_COUNTERS)
157 $(cmake-utils_use_enable portaudio GR_AUDIO_PORTAUDIO)
158 $(cmake-utils_use_enable uhd GR_UHD) \
159 $(cmake-utils_use_enable utils GR_UTILS) \
160 $(cmake-utils_use_enable wavelet GR_WAVELET) \
161 $(cmake-utils_use_enable wxwidgets GR_WXGUI) \
162 $(cmake-utils_use_enable qt4 GR_QTGUI) \
163 $(cmake-utils_use_enable sdl GR_VIDEO_SDL) \
164 -DENABLE_GR_CORE=ON
165 -DQWT_INCLUDE_DIRS="${EPREFIX}"/usr/include/qwt5
166 -DSYSCONFDIR="${EPREFIX}"/etc
167 )
168 cmake-utils_src_configure
169 }
170
171 src_install() {
172 cmake-utils_src_install
173
174 python_clean_installation_image -q
175
176 # Remove bad shebangs that creep back in during install
177 sed -i '\|#!/usr/bin/python|d' "${ED}"/usr/bin/* || die
178
179 # Install examples to /usr/share/doc/$PF
180 if use examples ; then
181 dodir /usr/share/doc/${PF}/
182 mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die
183 else
184 # It seems that the examples are always installed
185 rm -rf "${ED}"/usr/share/${PN}/examples || die
186 fi
187
188 # We install the mimetypes to the correct locations from the ebuild
189 rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die
190 rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die
191
192 # Install icons, menu items and mime-types for GRC
193 if use grc ; then
194 local fd_path="${S}/grc/freedesktop"
195 insinto /usr/share/mime/packages
196 doins "${fd_path}/${PN}-grc.xml"
197
198 domenu "${fd_path}/"*.desktop
199 doicon "${fd_path}/"*.png
200 fi
201 }
202
203 pkg_postinst()
204 {
205 local GRC_ICON_SIZES="32 48 64 128 256"
206 python_mod_optimize gnuradio
207
208 if use grc ; then
209 fdo-mime_desktop_database_update
210 fdo-mime_mime_database_update
211 for size in ${GRC_ICON_SIZES} ; do
212 xdg-icon-resource install --noupdate --context mimetypes --size ${size} \
213 "${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" application-gnuradio-grc \
214 || die "icon resource installation failed"
215 xdg-icon-resource install --noupdate --context apps --size ${size} \
216 "${EROOT}/usr/share/pixmaps/grc-icon-${size}.png" gnuradio-grc \
217 || die "icon resource installation failed"
218 done
219 xdg-icon-resource forceupdate
220 fi
221 }
222
223 pkg_postrm()
224 {
225 local GRC_ICON_SIZES="32 48 64 128 256"
226 python_mod_cleanup gnuradio
227
228 if use grc ; then
229 fdo-mime_desktop_database_update
230 fdo-mime_mime_database_update
231 for size in ${GRC_ICON_SIZES} ; do
232 xdg-icon-resource uninstall --noupdate --context mimetypes --size ${size} \
233 application-gnuradio-grc || ewarn "icon uninstall failed"
234 xdg-icon-resource uninstall --noupdate --context apps --size ${size} \
235 gnuradio-grc || ewarn "icon uninstall failed"
236
237 done
238 xdg-icon-resource forceupdate
239 fi
240 }