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