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