Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-geosciences/googleearth: googleearth-6.0.1.2032_beta.ebuild ChangeLog googleearth-5.2.1.1588.ebuild googleearth-5.1.3535.3218-r1.ebuild
Date: Mon, 31 Jan 2011 16:05:54
Message-Id: 20110131160544.2100F20054@flycatcher.gentoo.org
1 caster 11/01/31 16:05:44
2
3 Modified: ChangeLog googleearth-5.2.1.1588.ebuild
4 googleearth-5.1.3535.3218-r1.ebuild
5 Added: googleearth-6.0.1.2032_beta.ebuild
6 Log:
7 Version bump, fixes bug #348911. Thanks to Nathan Phillip Brink <ohnobinki@××××××××××××××.net> for suggesting patchelf to work around missing lsb symlinks. Update SRC_URI for 5.2.1. Mark 5.1 as fetch restricted as the distfile is gone.
8
9 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.20 sci-geosciences/googleearth/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.20&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.20&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?r1=1.19&r2=1.20
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v
21 retrieving revision 1.19
22 retrieving revision 1.20
23 diff -u -r1.19 -r1.20
24 --- ChangeLog 13 Sep 2010 14:38:55 -0000 1.19
25 +++ ChangeLog 31 Jan 2011 16:05:44 -0000 1.20
26 @@ -1,6 +1,16 @@
27 # ChangeLog for sci-geosciences/googleearth
28 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.19 2010/09/13 14:38:55 caster Exp $
30 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.20 2011/01/31 16:05:44 caster Exp $
32 +
33 +*googleearth-6.0.1.2032_beta (31 Jan 2011)
34 +
35 + 31 Jan 2011; Vlastimil Babka <caster@g.o>
36 + googleearth-5.1.3535.3218-r1.ebuild, googleearth-5.2.1.1588.ebuild,
37 + +googleearth-6.0.1.2032_beta.ebuild:
38 + Version bump, fixes bug #348911. Thanks to Nathan Phillip Brink
39 + <ohnobinki@××××××××××××××.net> for suggesting patchelf to work around missing
40 + lsb symlinks. Update SRC_URI for 5.2.1. Mark 5.1 as fetch restricted as the
41 + distfile is gone.
42
43 13 Sep 2010; Vlastimil Babka <caster@g.o>
44 -googleearth-5.2.1.1547_beta.ebuild, googleearth-5.2.1.1588.ebuild:
45
46
47
48 1.3 sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild?rev=1.3&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild?rev=1.3&content-type=text/plain
52 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild?r1=1.2&r2=1.3
53
54 Index: googleearth-5.2.1.1588.ebuild
55 ===================================================================
56 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild,v
57 retrieving revision 1.2
58 retrieving revision 1.3
59 diff -u -r1.2 -r1.3
60 --- googleearth-5.2.1.1588.ebuild 13 Sep 2010 14:38:55 -0000 1.2
61 +++ googleearth-5.2.1.1588.ebuild 31 Jan 2011 16:05:44 -0000 1.3
62 @@ -1,6 +1,6 @@
63 -# Copyright 1999-2010 Gentoo Foundation
64 +# Copyright 1999-2011 Gentoo Foundation
65 # Distributed under the terms of the GNU General Public License v2
66 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild,v 1.2 2010/09/13 14:38:55 caster Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild,v 1.3 2011/01/31 16:05:44 caster Exp $
68
69 EAPI=2
70
71 @@ -10,7 +10,7 @@
72 HOMEPAGE="http://earth.google.com/"
73 # no upstream versioning, version determined from help/about
74 # incorrect digest means upstream bumped and thus needs version bump
75 -SRC_URI="http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
76 +SRC_URI="http://dl.google.com/earth/client/advanced/previous/GoogleEarthLinux.bin
77 -> GoogleEarthLinux-${PV}.bin"
78
79 LICENSE="googleearth GPL-2"
80
81
82
83 1.5 sci-geosciences/googleearth/googleearth-5.1.3535.3218-r1.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-5.1.3535.3218-r1.ebuild?rev=1.5&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-5.1.3535.3218-r1.ebuild?rev=1.5&content-type=text/plain
87 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-5.1.3535.3218-r1.ebuild?r1=1.4&r2=1.5
88
89 Index: googleearth-5.1.3535.3218-r1.ebuild
90 ===================================================================
91 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-5.1.3535.3218-r1.ebuild,v
92 retrieving revision 1.4
93 retrieving revision 1.5
94 diff -u -r1.4 -r1.5
95 --- googleearth-5.1.3535.3218-r1.ebuild 20 Jun 2010 16:41:06 -0000 1.4
96 +++ googleearth-5.1.3535.3218-r1.ebuild 31 Jan 2011 16:05:44 -0000 1.5
97 @@ -1,6 +1,6 @@
98 -# Copyright 1999-2010 Gentoo Foundation
99 +# Copyright 1999-2011 Gentoo Foundation
100 # Distributed under the terms of the GNU General Public License v2
101 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-5.1.3535.3218-r1.ebuild,v 1.4 2010/06/20 16:41:06 fauli Exp $
102 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-5.1.3535.3218-r1.ebuild,v 1.5 2011/01/31 16:05:44 caster Exp $
103
104 EAPI=2
105
106 @@ -10,13 +10,12 @@
107 HOMEPAGE="http://earth.google.com/"
108 # no upstream versioning, version determined from help/about
109 # incorrect digest means upstream bumped and thus needs version bump
110 -SRC_URI="http://dl.google.com/earth/client/advanced/previous/GoogleEarthLinux.bin
111 - -> GoogleEarthLinux-${PV}.bin"
112 +SRC_URI="GoogleEarthLinux-${PV}.bin"
113
114 LICENSE="googleearth GPL-2"
115 SLOT="0"
116 KEYWORDS="amd64 x86"
117 -RESTRICT="mirror strip"
118 +RESTRICT="fetch strip"
119 IUSE="mdns-bundled qt-bundled"
120
121 GCC_NEEDED="4.2"
122 @@ -147,3 +146,12 @@
123 fdo-mime_desktop_database_update
124 fdo-mime_mime_database_update
125 }
126 +
127 +pkg_nofetch() {
128 + elog "This version is no longer available from Google and the license prevents mirroring."
129 + elog "This ebuild is intended for users who already downloaded it previously and have problems with 5.2+."
130 + elog "If you can get the distfile from e.g. another computer of yours,"
131 + elog "copy the file ${SRC_URI} to ${DISTDIR}."
132 + elog "Otherwise, you need to unmask 5.2 or higher version."
133 +# elog "stabilization is tracked at https://bugs.gentoo.org/show_bug.cgi?id=320065"
134 +}
135
136
137
138 1.1 sci-geosciences/googleearth/googleearth-6.0.1.2032_beta.ebuild
139
140 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-6.0.1.2032_beta.ebuild?rev=1.1&view=markup
141 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-6.0.1.2032_beta.ebuild?rev=1.1&content-type=text/plain
142
143 Index: googleearth-6.0.1.2032_beta.ebuild
144 ===================================================================
145 # Copyright 1999-2011 Gentoo Foundation
146 # Distributed under the terms of the GNU General Public License v2
147 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-6.0.1.2032_beta.ebuild,v 1.1 2011/01/31 16:05:44 caster Exp $
148
149 EAPI=2
150
151 inherit eutils fdo-mime versionator toolchain-funcs
152
153 DESCRIPTION="A 3D interface to the planet"
154 HOMEPAGE="http://earth.google.com/"
155 # no upstream versioning, version determined from help/about
156 # incorrect digest means upstream bumped and thus needs version bump
157 SRC_URI="http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
158 -> GoogleEarthLinux-${PV}.bin"
159
160 LICENSE="googleearth GPL-2"
161 SLOT="0"
162 KEYWORDS="~amd64 ~x86"
163 RESTRICT="mirror strip"
164 IUSE="mdns-bundled +qt-bundled"
165
166 GCC_NEEDED="4.2"
167
168 RDEPEND=">=sys-devel/gcc-${GCC_NEEDED}[-nocxx]
169 x86? (
170 media-libs/fontconfig
171 media-libs/freetype
172 virtual/opengl
173 x11-libs/libICE
174 x11-libs/libSM
175 x11-libs/libX11
176 x11-libs/libXi
177 x11-libs/libXext
178 x11-libs/libXrender
179 x11-libs/libXau
180 x11-libs/libXdmcp
181 sys-libs/zlib
182 dev-libs/glib:2
183 !qt-bundled? (
184 >=x11-libs/qt-core-4.5.3
185 >=x11-libs/qt-gui-4.5.3
186 >=x11-libs/qt-webkit-4.5.3
187 )
188 net-misc/curl
189 sci-libs/gdal
190 !mdns-bundled? ( sys-auth/nss-mdns )
191 )
192 amd64? (
193 >=app-emulation/emul-linux-x86-xlibs-20081109
194 >=app-emulation/emul-linux-x86-baselibs-20081109
195 app-emulation/emul-linux-x86-opengl
196 !qt-bundled? (
197 >=app-emulation/emul-linux-x86-qtlibs-20091231-r1
198 )
199 )
200 virtual/ttf-fonts"
201
202 DEPEND="dev-util/patchelf"
203
204 S="${WORKDIR}"
205
206 pkg_nofetch() {
207 einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version."
208 einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump."
209 einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)."
210 einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!"
211 }
212
213 QA_TEXTRELS="opt/googleearth/libflightsim.so
214 opt/googleearth/libwebbrowser.so
215 opt/googleearth/libinput_plugin.so
216 opt/googleearth/libIGGfx.so
217 opt/googleearth/liblayer.so
218 opt/googleearth/libbase.so
219 opt/googleearth/libevll.so
220 opt/googleearth/libmoduleframework.so
221 opt/googleearth/libcommon_webbrowser.so
222 opt/googleearth/libbasicingest.so
223 opt/googleearth/libsgutil.so
224 opt/googleearth/libnavigate.so
225 opt/googleearth/librender.so
226 opt/googleearth/libauth.so
227 opt/googleearth/libgeobaseutils.so
228 opt/googleearth/libcommon.so
229 opt/googleearth/libQtGui.so.4
230 opt/googleearth/libcommon_platform.so
231 opt/googleearth/libgoogleearth_free.so
232 opt/googleearth/libcollada.so
233 opt/googleearth/libviewsync.so
234 opt/googleearth/libgps.so
235 opt/googleearth/libgooglesearch.so
236 opt/googleearth/plugins/imageformats/libqjpeg.so
237 opt/googleearth/libmeasure.so
238 opt/googleearth/libspatial.so
239 "
240
241 pkg_setup() {
242 GCC_VER="$(gcc-version)"
243 if ! version_is_at_least ${GCC_NEEDED} ${GCC_VER}; then
244 ewarn "${PN} needs libraries from gcc-${GCC_NEEDED} or higher to run"
245 ewarn "Your active gcc version is only ${GCC_VER}"
246 ewarn "Please consult the GCC upgrade guide to set a higher version:"
247 ewarn "http://www.gentoo.org/doc/en/gcc-upgrading.xml"
248 fi
249 }
250
251 src_unpack() {
252 unpack_makeself
253
254 cd "${WORKDIR}"/bin || die
255 unpack ./../${PN}-linux-x86.tar
256
257 mkdir "${WORKDIR}"/data && cd "${WORKDIR}"/data || die
258 unpack ./../${PN}-data.tar
259
260 cd "${WORKDIR}"/bin || die
261
262 if ! use qt-bundled; then
263 rm -v libQt{Core,Gui,Network,WebKit}.so.4 ../data/qt.conf || die
264 rm -frv ../data/plugins/imageformats || die
265 fi
266 rm -v libGLU.so.1 libcurl.so.4 || die
267 if ! use mdns-bundled; then
268 rm -v libnss_mdns4_minimal.so.2 || die
269 fi
270
271 if use x86; then
272 # no 32 bit libs for gdal
273 rm -v libgdal.so.1 || die
274 fi
275 }
276
277 src_prepare() {
278 cd "${WORKDIR}"/bin || die
279 # bug #262780
280 epatch "${FILESDIR}/decimal-separator.patch"
281
282 # we have no ld-lsb.so.3 symlink
283 # thanks to Nathan Phillip Brink <ohnobinki@××××××××××××××.net> for suggesting patchelf
284 patchelf --set-interpreter /lib/ld-linux.so.2 googleearth-bin || die "patchelf failed"
285
286 # make the postinst script only create the files; it's installation
287 # are too complicated and inserting them ourselves is easier than
288 # hacking around it
289 sed -i -e 's:$SETUP_INSTALLPATH/::' \
290 -e 's:$SETUP_INSTALLPATH:1:' \
291 -e "s:^xdg-desktop-icon.*$::" \
292 -e "s:^xdg-desktop-menu.*$::" \
293 -e "s:^xdg-mime.*$::" "${WORKDIR}"/postinstall.sh || die
294 }
295
296 src_install() {
297 make_wrapper ${PN} ./${PN} /opt/${PN} . || die "make_wrapper failed"
298 ./postinstall.sh
299 insinto /usr/share/mime/packages
300 doins ${PN}-mimetypes.xml || die
301 domenu Google-${PN}.desktop || die
302 doicon ${PN}-icon.png || die
303 dodoc README.linux || die
304
305 cd bin || die
306 exeinto /opt/${PN}
307 doexe * || die
308
309 cp -pPR "${WORKDIR}"/data/* "${D}"/opt/${PN} || die
310 fowners -R root:root /opt/${PN}
311 fperms -R a-x,a+X /opt/googleearth/resources
312 }
313
314 pkg_postinst() {
315 fdo-mime_desktop_database_update
316 fdo-mime_mime_database_update
317
318 elog "The qt-bundled flag is now enabled by default due to crashes on startup with system Qt."
319 elog "Testing and reporting outcome with/without the flag is welcome (bug #319813)."
320 elog "If it crashes in both cases, put this version in your package.mask and revert to the stable 5.1.*"
321 }