1 |
chithanh 12/05/01 23:40:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gnuradio-3.5.3.2.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.5 net-wireless/gnuradio/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?rev=1.5&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?rev=1.5&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/ChangeLog?r1=1.4&r2=1.5 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v |
20 |
retrieving revision 1.4 |
21 |
retrieving revision 1.5 |
22 |
diff -u -r1.4 -r1.5 |
23 |
--- ChangeLog 18 Apr 2012 09:30:58 -0000 1.4 |
24 |
+++ ChangeLog 1 May 2012 23:40:34 -0000 1.5 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-wireless/gnuradio |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v 1.4 2012/04/18 09:30:58 chithanh Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnuradio/ChangeLog,v 1.5 2012/05/01 23:40:34 chithanh Exp $ |
30 |
+ |
31 |
+*gnuradio-3.5.3.2 (01 May 2012) |
32 |
+ |
33 |
+ 01 May 2012; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
34 |
+ +gnuradio-3.5.3.2.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
18 Apr 2012; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
38 |
gnuradio-3.5.3.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-wireless/gnuradio/gnuradio-3.5.3.2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.5.3.2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnuradio/gnuradio-3.5.3.2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: gnuradio-3.5.3.2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 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.5.3.2.ebuild,v 1.1 2012/05/01 23:40:34 chithanh Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
PYTHON_DEPEND="2" |
55 |
|
56 |
inherit eutils fdo-mime python |
57 |
|
58 |
DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios" |
59 |
HOMEPAGE="http://gnuradio.org/" |
60 |
SRC_URI="http://gnuradio.org/redmine/attachments/download/324/${P}.tar.gz" |
61 |
|
62 |
LICENSE="GPL-3" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64" |
65 |
IUSE="audio doc dot examples fcd grc guile qt4 sdl utils wxwidgets" |
66 |
REQUIRED_USE="utils? ( wxwidgets ) |
67 |
fcd? ( audio )" |
68 |
|
69 |
# bug #348206 |
70 |
# comedi? ( >=sci-electronics/comedilib-0.7 ) |
71 |
# uhd? ( dev-libs/uhd ) |
72 |
RDEPEND="dev-libs/boost |
73 |
dev-python/numpy |
74 |
dev-util/cppunit |
75 |
sci-libs/fftw:3.0 |
76 |
sci-libs/gsl |
77 |
virtual/cblas |
78 |
fcd? ( virtual/libusb:1 ) |
79 |
audio? ( |
80 |
media-libs/alsa-lib |
81 |
media-sound/jack-audio-connection-kit |
82 |
>=media-libs/portaudio-19_pre |
83 |
) |
84 |
grc? ( |
85 |
dev-python/cheetah |
86 |
dev-python/lxml |
87 |
dev-python/pygtk:2 |
88 |
) |
89 |
guile? ( >=dev-scheme/guile-1.8.4 ) |
90 |
qt4? ( |
91 |
dev-python/PyQt4[X,opengl] |
92 |
dev-python/pyqwt:5 |
93 |
x11-libs/qt-gui |
94 |
) |
95 |
sdl? ( media-libs/libsdl ) |
96 |
wxwidgets? ( |
97 |
dev-python/wxpython:2.8 |
98 |
dev-python/numpy |
99 |
) |
100 |
" |
101 |
# gnuradio links against older version of itself during build |
102 |
DEPEND="${RDEPEND} |
103 |
!!<${CATEGORY}/${P} |
104 |
dev-lang/swig |
105 |
dev-util/pkgconfig |
106 |
doc? ( |
107 |
>=app-doc/doxygen-1.5.7.1[dot?] |
108 |
app-text/xmlto |
109 |
) |
110 |
grc? ( |
111 |
x11-misc/xdg-utils |
112 |
) |
113 |
" |
114 |
|
115 |
pkg_setup() { |
116 |
python_set_active_version 2 |
117 |
python_pkg_setup |
118 |
} |
119 |
|
120 |
src_prepare() { |
121 |
python_convert_shebangs -q -r 2 "${S}" |
122 |
# Useless UI element would require qt3support, bug #365019 |
123 |
sed -i '/qPixmapFromMimeSource/d' "${S}"/gr-qtgui/lib/spectrumdisplayform.ui || die |
124 |
# TODO: DEPDIR is not created, need to investigate why |
125 |
mkdir "${S}"/gnuradio-core/src/lib/general/.deps || die |
126 |
mkdir "${S}"/gnuradio-core/src/lib/gengen/.deps || die |
127 |
mkdir "${S}"/gr-trellis/src/lib/.deps || die |
128 |
} |
129 |
|
130 |
src_configure() { |
131 |
# --with-lv_arch=32 fails to build on amd64 |
132 |
# TODO: more elegant solution is required before keywording on other arches |
133 |
# TODO: docs are installed to /usr/share/doc/${PN} not /usr/share/doc/${PF} |
134 |
econf \ |
135 |
--enable-all-components \ |
136 |
--enable-gnuradio-core \ |
137 |
--enable-gruel \ |
138 |
--enable-python \ |
139 |
--disable-gr-comedi \ |
140 |
--disable-gr-shd \ |
141 |
--disable-gr-uhd \ |
142 |
--with-lv_arch="generic 64 3dnow abm popcount mmx sse sse2 sse3 ssse3 sse4_a sse4_1 sse4_2 avx" \ |
143 |
$(use_enable audio gr-audio) \ |
144 |
$(use_enable doc doxygen) \ |
145 |
$(use_enable doc docs) \ |
146 |
$(use_enable dot) \ |
147 |
$(use_enable examples gnuradio-examples) \ |
148 |
$(use_enable fcd gr-fcd) \ |
149 |
$(use_enable grc) \ |
150 |
$(use_enable guile) \ |
151 |
$(use_enable utils gr-utils) \ |
152 |
$(use_enable wxwidgets gr-wxgui) \ |
153 |
$(use_enable sdl gr-video-sdl) \ |
154 |
$(use sdl || echo "--disable-sdltest") \ |
155 |
$(use_enable qt4 gr-qtgui) \ |
156 |
$(use_with qt4 qwt-incdir "${EPREFIX}"/usr/include/qwt5) |
157 |
} |
158 |
|
159 |
src_install() { |
160 |
# Fails to install with parallel make sometimes, bug #412449 |
161 |
emake -j1 DESTDIR="${ED}" install |
162 |
|
163 |
python_clean_installation_image -q |
164 |
|
165 |
# Install examples to /usr/share/doc/$PF |
166 |
if use examples ; then |
167 |
dodir /usr/share/doc/${PF}/ |
168 |
mv "${ED}"/usr/share/gnuradio/examples "${ED}"/usr/share/doc/${PF}/ || die "failed installing examples" |
169 |
else |
170 |
# It seems that the examples are installed whether configured or not |
171 |
rm -rf "${ED}"/usr/share/gnuradio/examples || die |
172 |
fi |
173 |
|
174 |
# Remove useless files in the doc dir |
175 |
if use doc; then |
176 |
rm -f "${ED}"/usr/share/doc/${P}/html/*.md5 || die |
177 |
fi |
178 |
|
179 |
# We install the mimetypes to the correct locations from the ebuild |
180 |
rm -rf "${ED}"/usr/share/gnuradio/grc/freedesktop || die |
181 |
rm -f "${ED}"/usr/bin/grc_setup_freedesktop || die |
182 |
|
183 |
# Install icons, menu items and mime-types for GRC |
184 |
if use grc ; then |
185 |
local fd_path="${S}/grc/freedesktop" |
186 |
insinto /usr/share/mime/packages |
187 |
doins "${fd_path}/gnuradio-grc.xml" |
188 |
|
189 |
domenu "${fd_path}/"*.desktop |
190 |
doicon "${fd_path}/"*.png |
191 |
fi |
192 |
} |
193 |
|
194 |
pkg_postinst() |
195 |
{ |
196 |
local GRC_ICON_SIZES="32 48 64 128 256" |
197 |
python_mod_optimize gnuradio |
198 |
|
199 |
if use grc ; then |
200 |
fdo-mime_desktop_database_update |
201 |
fdo-mime_mime_database_update |
202 |
for size in ${GRC_ICON_SIZES} ; do |
203 |
xdg-icon-resource install --noupdate --context mimetypes --size ${size} \ |
204 |
"${ROOT}/usr/share/pixmaps/grc-icon-${size}.png" application-gnuradio-grc \ |
205 |
|| die "icon resource installation failed" |
206 |
xdg-icon-resource install --noupdate --context apps --size ${size} \ |
207 |
"${ROOT}/usr/share/pixmaps/grc-icon-${size}.png" gnuradio-grc \ |
208 |
|| die "icon resource installation failed" |
209 |
done |
210 |
xdg-icon-resource forceupdate |
211 |
fi |
212 |
} |
213 |
|
214 |
pkg_postrm() |
215 |
{ |
216 |
local GRC_ICON_SIZES="32 48 64 128 256" |
217 |
python_mod_cleanup gnuradio |
218 |
|
219 |
if use grc ; then |
220 |
fdo-mime_desktop_database_update |
221 |
fdo-mime_mime_database_update |
222 |
for size in ${GRC_ICON_SIZES} ; do |
223 |
xdg-icon-resource uninstall --noupdate --context mimetypes --size ${size} \ |
224 |
application-gnuradio-grc || ewarn "icon uninstall failed" |
225 |
xdg-icon-resource uninstall --noupdate --context apps --size ${size} \ |
226 |
gnuradio-grc || ewarn "icon uninstall failed" |
227 |
|
228 |
done |
229 |
xdg-icon-resource forceupdate |
230 |
fi |
231 |
} |