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: ChangeLog googleearth-6.0.2.2074.ebuild
Date: Sat, 02 Apr 2011 17:45:05
Message-Id: 20110402174454.A740A20054@flycatcher.gentoo.org
1 caster 11/04/02 17:44:54
2
3 Modified: ChangeLog
4 Added: googleearth-6.0.2.2074.ebuild
5 Log:
6 Version bump, bug #361273. The bundled libGLU.so.1 is no longer removed in hope to improve stability and performance (see bug #354281).
7
8 (Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.21 sci-geosciences/googleearth/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 31 Jan 2011 16:05:44 -0000 1.20
24 +++ ChangeLog 2 Apr 2011 17:44:54 -0000 1.21
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-geosciences/googleearth
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.20 2011/01/31 16:05:44 caster Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.21 2011/04/02 17:44:54 caster Exp $
30 +
31 +*googleearth-6.0.2.2074 (02 Apr 2011)
32 +
33 + 02 Apr 2011; <caster@g.o> +googleearth-6.0.2.2074.ebuild:
34 + Version bump, bug #361273. The bundled libGLU.so.1 is no longer removed in
35 + hope to improve stability and performance (see bug #354281).
36
37 *googleearth-6.0.1.2032_beta (31 Jan 2011)
38
39
40
41
42 1.1 sci-geosciences/googleearth/googleearth-6.0.2.2074.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-6.0.2.2074.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-6.0.2.2074.ebuild?rev=1.1&content-type=text/plain
46
47 Index: googleearth-6.0.2.2074.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-6.0.2.2074.ebuild,v 1.1 2011/04/02 17:44:54 caster Exp $
52
53 EAPI=2
54
55 inherit eutils fdo-mime versionator toolchain-funcs
56
57 DESCRIPTION="A 3D interface to the planet"
58 HOMEPAGE="http://earth.google.com/"
59 # no upstream versioning, version determined from help/about
60 # incorrect digest means upstream bumped and thus needs version bump
61 SRC_URI="http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
62 -> GoogleEarthLinux-${PV}.bin"
63
64 LICENSE="googleearth GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 RESTRICT="mirror strip"
68 IUSE="mdns-bundled +qt-bundled"
69
70 GCC_NEEDED="4.2"
71
72 RDEPEND=">=sys-devel/gcc-${GCC_NEEDED}[-nocxx]
73 x86? (
74 media-libs/fontconfig
75 media-libs/freetype
76 virtual/opengl
77 x11-libs/libICE
78 x11-libs/libSM
79 x11-libs/libX11
80 x11-libs/libXi
81 x11-libs/libXext
82 x11-libs/libXrender
83 x11-libs/libXau
84 x11-libs/libXdmcp
85 sys-libs/zlib
86 dev-libs/glib:2
87 !qt-bundled? (
88 >=x11-libs/qt-core-4.5.3
89 >=x11-libs/qt-gui-4.5.3
90 >=x11-libs/qt-webkit-4.5.3
91 )
92 net-misc/curl
93 sci-libs/gdal
94 !mdns-bundled? ( sys-auth/nss-mdns )
95 )
96 amd64? (
97 >=app-emulation/emul-linux-x86-xlibs-20081109
98 >=app-emulation/emul-linux-x86-baselibs-20081109
99 app-emulation/emul-linux-x86-opengl
100 !qt-bundled? (
101 >=app-emulation/emul-linux-x86-qtlibs-20091231-r1
102 )
103 )
104 virtual/ttf-fonts"
105
106 DEPEND="dev-util/patchelf"
107
108 S="${WORKDIR}"
109
110 pkg_nofetch() {
111 einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version."
112 einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump."
113 einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)."
114 einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!"
115 }
116
117 QA_TEXTRELS="opt/googleearth/libflightsim.so
118 opt/googleearth/libwebbrowser.so
119 opt/googleearth/libinput_plugin.so
120 opt/googleearth/libIGGfx.so
121 opt/googleearth/liblayer.so
122 opt/googleearth/libbase.so
123 opt/googleearth/libevll.so
124 opt/googleearth/libmoduleframework.so
125 opt/googleearth/libcommon_webbrowser.so
126 opt/googleearth/libbasicingest.so
127 opt/googleearth/libsgutil.so
128 opt/googleearth/libnavigate.so
129 opt/googleearth/librender.so
130 opt/googleearth/libauth.so
131 opt/googleearth/libgeobaseutils.so
132 opt/googleearth/libcommon.so
133 opt/googleearth/libQtGui.so.4
134 opt/googleearth/libcommon_platform.so
135 opt/googleearth/libgoogleearth_free.so
136 opt/googleearth/libcollada.so
137 opt/googleearth/libviewsync.so
138 opt/googleearth/libgps.so
139 opt/googleearth/libgooglesearch.so
140 opt/googleearth/plugins/imageformats/libqjpeg.so
141 opt/googleearth/libmeasure.so
142 opt/googleearth/libspatial.so
143 "
144
145 pkg_setup() {
146 GCC_VER="$(gcc-version)"
147 if ! version_is_at_least ${GCC_NEEDED} ${GCC_VER}; then
148 ewarn "${PN} needs libraries from gcc-${GCC_NEEDED} or higher to run"
149 ewarn "Your active gcc version is only ${GCC_VER}"
150 ewarn "Please consult the GCC upgrade guide to set a higher version:"
151 ewarn "http://www.gentoo.org/doc/en/gcc-upgrading.xml"
152 fi
153 }
154
155 src_unpack() {
156 unpack_makeself
157
158 cd "${WORKDIR}"/bin || die
159 unpack ./../${PN}-linux-x86.tar
160
161 mkdir "${WORKDIR}"/data && cd "${WORKDIR}"/data || die
162 unpack ./../${PN}-data.tar
163
164 cd "${WORKDIR}"/bin || die
165
166 if ! use qt-bundled; then
167 rm -v libQt{Core,Gui,Network,WebKit}.so.4 ../data/qt.conf || die
168 rm -frv ../data/plugins/imageformats || die
169 fi
170 rm -v libcurl.so.4 || die
171 if ! use mdns-bundled; then
172 rm -v libnss_mdns4_minimal.so.2 || die
173 fi
174
175 if use x86; then
176 # no 32 bit libs for gdal
177 rm -v libgdal.so.1 || die
178 fi
179 }
180
181 src_prepare() {
182 cd "${WORKDIR}"/bin || die
183 # bug #262780
184 epatch "${FILESDIR}/decimal-separator.patch"
185
186 # we have no ld-lsb.so.3 symlink
187 # thanks to Nathan Phillip Brink <ohnobinki@××××××××××××××.net> for suggesting patchelf
188 patchelf --set-interpreter /lib/ld-linux.so.2 googleearth-bin || die "patchelf failed"
189
190 # make the postinst script only create the files; it's installation
191 # are too complicated and inserting them ourselves is easier than
192 # hacking around it
193 sed -i -e 's:$SETUP_INSTALLPATH/::' \
194 -e 's:$SETUP_INSTALLPATH:1:' \
195 -e "s:^xdg-desktop-icon.*$::" \
196 -e "s:^xdg-desktop-menu.*$::" \
197 -e "s:^xdg-mime.*$::" "${WORKDIR}"/postinstall.sh || die
198 }
199
200 src_install() {
201 make_wrapper ${PN} ./${PN} /opt/${PN} . || die "make_wrapper failed"
202 ./postinstall.sh
203 insinto /usr/share/mime/packages
204 doins ${PN}-mimetypes.xml || die
205 domenu Google-${PN}.desktop || die
206 doicon ${PN}-icon.png || die
207 dodoc README.linux || die
208
209 cd bin || die
210 exeinto /opt/${PN}
211 doexe * || die
212
213 cp -pPR "${WORKDIR}"/data/* "${D}"/opt/${PN} || die
214 fowners -R root:root /opt/${PN}
215 fperms -R a-x,a+X /opt/googleearth/resources
216 }
217
218 pkg_postinst() {
219 fdo-mime_desktop_database_update
220 fdo-mime_mime_database_update
221
222 elog "The qt-bundled flag is now enabled by default due to crashes on startup with system Qt."
223 elog "Testing and reporting outcome with/without the flag is welcome (bug #319813)."
224 elog "If it crashes in both cases, disabling tips is reported to help (bug #354281)."
225 }