Gentoo Archives: gentoo-commits

From: "Marc Schiffbauer (mschiff)" <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-geosciences/googleearth: metadata.xml ChangeLog googleearth-7.1.2.2041.ebuild googleearth-7.1.1.1871.ebuild googleearth-7.1.1.1580.ebuild googleearth-5.1.3535.3218-r1.ebuild googleearth-7.0.3.8542.ebuild googleearth-5.2.1.1588.ebuild googleearth-6.2.2.6613.ebuild googleearth-7.0.2.8415-r2.ebuild googleearth-7.1.1.1888.ebuild googleearth-6.0.3.2197.ebuild googleearth-6.0.2.2074.ebuild googleearth-7.0.2.8415.ebuild
Date: Sat, 08 Feb 2014 15:56:24
Message-Id: 20140208155620.B467C2004C@flycatcher.gentoo.org
1 mschiff 14/02/08 15:56:20
2
3 Modified: metadata.xml ChangeLog
4 Added: googleearth-7.1.2.2041.ebuild
5 Removed: googleearth-7.1.1.1871.ebuild
6 googleearth-7.1.1.1580.ebuild
7 googleearth-5.1.3535.3218-r1.ebuild
8 googleearth-7.0.3.8542.ebuild
9 googleearth-5.2.1.1588.ebuild
10 googleearth-6.2.2.6613.ebuild
11 googleearth-7.0.2.8415-r2.ebuild
12 googleearth-7.1.1.1888.ebuild
13 googleearth-6.0.3.2197.ebuild
14 googleearth-6.0.2.2074.ebuild
15 googleearth-7.0.2.8415.ebuild
16 Log:
17 Bump version. Remove old ebuilds.
18
19 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x296C6CCA35A64134)
20
21 Revision Changes Path
22 1.13 sci-geosciences/googleearth/metadata.xml
23
24 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/metadata.xml?rev=1.13&view=markup
25 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/metadata.xml?rev=1.13&content-type=text/plain
26 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/metadata.xml?r1=1.12&r2=1.13
27
28 Index: metadata.xml
29 ===================================================================
30 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/metadata.xml,v
31 retrieving revision 1.12
32 retrieving revision 1.13
33 diff -u -r1.12 -r1.13
34 --- metadata.xml 31 Jan 2014 10:14:46 -0000 1.12
35 +++ metadata.xml 8 Feb 2014 15:56:20 -0000 1.13
36 @@ -6,9 +6,5 @@
37 </maintainer>
38 <use>
39 <flag name='bundled-libs'>Use bundled libraries.</flag>
40 - <flag name="qt-bundled">Use bundled Qt4 libraries instead of system ones. Recommended only for troubleshooting.</flag>
41 - <flag name="mdns-bundled">Use bundled nss-mdns library instead of depending on sys-auth/nss-mdns. Enable this if you want to avoid the deptree.</flag>
42 - <flag name="system-qt">Use Qt4 libraries from portage instead of the bundled ones.</flag>
43 - <flag name="system-mdns">Use nss-mdns library from portage instead of the bundled one.</flag>
44 </use>
45 </pkgmetadata>
46
47
48
49 1.58 sci-geosciences/googleearth/ChangeLog
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.58&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.58&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?r1=1.57&r2=1.58
54
55 Index: ChangeLog
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v
58 retrieving revision 1.57
59 retrieving revision 1.58
60 diff -u -r1.57 -r1.58
61 --- ChangeLog 31 Jan 2014 10:14:46 -0000 1.57
62 +++ ChangeLog 8 Feb 2014 15:56:20 -0000 1.58
63 @@ -1,6 +1,23 @@
64 # ChangeLog for sci-geosciences/googleearth
65 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
66 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.57 2014/01/31 10:14:46 mschiff Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.58 2014/02/08 15:56:20 mschiff Exp $
68 +
69 +*googleearth-7.1.2.2041 (08 Feb 2014)
70 +
71 + 08 Feb 2014; Marc Schiffbauer <mschiff@g.o>
72 + -googleearth-5.1.3535.3218-r1.ebuild, -googleearth-5.2.1.1588.ebuild,
73 + -googleearth-6.0.2.2074.ebuild, -googleearth-6.0.3.2197.ebuild,
74 + -googleearth-6.2.2.6613.ebuild, -googleearth-7.0.2.8415.ebuild,
75 + -googleearth-7.0.2.8415-r2.ebuild, -googleearth-7.0.3.8542.ebuild,
76 + -googleearth-7.1.1.1580.ebuild, -googleearth-7.1.1.1871.ebuild,
77 + -googleearth-7.1.1.1888.ebuild, +googleearth-7.1.2.2041.ebuild,
78 + -files/googleearth-7.0.2.8415-desktopfile.patch,
79 + -files/googleearth-7.0.3.8542-desktopfile.patch,
80 + -files/googleearth-7.1.1.1580-desktopfile.patch,
81 + -files/googleearth-7.1.1.1871-desktopfile.patch,
82 + +files/googleearth-7-desktopfile.patch, -files/decimal-separator.patch,
83 + -files/mime-magic.patch, metadata.xml:
84 + Bump version. Remove old ebuilds.
85
86 31 Jan 2014; Marc Schiffbauer <mschiff@g.o> metadata.xml:
87 added myself as maintainer
88
89
90
91 1.1 sci-geosciences/googleearth/googleearth-7.1.2.2041.ebuild
92
93 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-7.1.2.2041.ebuild?rev=1.1&view=markup
94 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-7.1.2.2041.ebuild?rev=1.1&content-type=text/plain
95
96 Index: googleearth-7.1.2.2041.ebuild
97 ===================================================================
98 # Copyright 1999-2014 Gentoo Foundation
99 # Distributed under the terms of the GNU General Public License v2
100 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-7.1.2.2041.ebuild,v 1.1 2014/02/08 15:56:20 mschiff Exp $
101
102 EAPI=5
103
104 inherit pax-utils eutils unpacker fdo-mime gnome2-utils
105
106 DESCRIPTION="A 3D interface to the planet"
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="x86? ( http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
111 -> GoogleEarthLinux-${PV}_i386.deb )
112 amd64? ( http://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb
113 -> GoogleEarthLinux-${PV}_amd64.deb )"
114 LICENSE="googleearth GPL-2"
115 SLOT="0"
116 KEYWORDS="~amd64 ~x86"
117 RESTRICT="mirror splitdebug"
118 IUSE="+bundled-libs"
119
120 QA_PREBUILT="*"
121
122 # TODO: find a way to unbundle libQt
123 # ./googleearth-bin: symbol lookup error: ./libbase.so: undefined symbol: _Z34QBasicAtomicInt_fetchAndAddOrderedPVii
124
125 RDEPEND="
126 dev-libs/glib:2
127 dev-libs/nspr
128 media-libs/fontconfig
129 media-libs/freetype
130 net-misc/curl
131 sys-devel/gcc[cxx]
132 sys-libs/zlib
133 virtual/glu
134 virtual/opengl
135 virtual/ttf-fonts
136 x11-libs/libICE
137 x11-libs/libSM
138 x11-libs/libX11
139 x11-libs/libXi
140 x11-libs/libXext
141 x11-libs/libXrender
142 x11-libs/libXau
143 x11-libs/libXdmcp
144 !bundled-libs? (
145 dev-db/sqlite:3
146 dev-libs/expat
147 dev-libs/nss
148 sci-libs/gdal
149 sci-libs/proj
150 )"
151 DEPEND="dev-util/patchelf"
152
153 S=${WORKDIR}/opt/google/earth/free
154
155 pkg_nofetch() {
156 einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version."
157 einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump."
158 einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)."
159 einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!"
160 }
161
162 src_unpack() {
163 # default src_unpack fails with deb2targz installed, also this unpacks the data.tar.lzma as well
164 unpack_deb GoogleEarthLinux-${PV}_$(usex amd64 "amd64" "i386").deb
165
166 if ! use bundled-libs ; then
167 einfo "removing bundled libs"
168 cd opt/google/earth/free || die
169 # sci-libs/gdal
170 rm -v libgdal.so.1 || die
171 # dev-db/sqlite
172 rm -v libsqlite3.so || die
173 # dev-libs/nss
174 rm -v libplc4.so libplds4.so libnspr4.so libnssckbi.so libfreebl3.so \
175 libnssdbm3.so libnss3.so libnssutil3.so libsmime3.so libnsssysinit.so \
176 libsoftokn3.so libssl3.so || die
177 # dev-libs/expat
178 rm -v libexpat.so.1 || die
179 # sci-libs/proj
180 rm -v libproj.so.0 || die
181 # dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtwebkit:4
182 # rm -v libQt{Core,Gui,Network,WebKit}.so.4 || die
183 # rm -rv plugins/imageformats || die
184 fi
185 }
186
187 src_prepare() {
188 # we have no ld-lsb.so.3 symlink
189 # thanks to Nathan Phillip Brink <ohnobinki@××××××××××××××.net> for suggesting patchelf
190 einfo "running patchelf"
191 patchelf --set-interpreter /lib/ld-linux$(usex amd64 "-x86-64" "").so.2 ${PN}-bin || die "patchelf failed"
192
193 # Set RPATH for preserve-libs handling (bug #265372).
194 local x
195 for x in * ; do
196 # Use \x7fELF header to separate ELF executables and libraries
197 [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
198 patchelf --set-rpath '$ORIGIN' "${x}" ||
199 die "patchelf failed on ${x}"
200 done
201 for x in plugins/*.so ; do
202 [[ -f ${x} ]] || continue
203 patchelf --set-rpath '$ORIGIN/..' "${x}" ||
204 die "patchelf failed on ${x}"
205 done
206 for x in plugins/imageformats/*.so ; do
207 [[ -f ${x} ]] || continue
208 patchelf --set-rpath '$ORIGIN/../..' "${x}" ||
209 die "patchelf failed on ${x}"
210 done
211
212 epatch "${FILESDIR}"/${PN}-${PV%%.*}-desktopfile.patch
213 }
214
215 src_install() {
216 make_wrapper ${PN} ./${PN} /opt/${PN} .
217
218 insinto /usr/share/mime/packages
219 doins "${FILESDIR}/${PN}-mimetypes.xml" || die
220
221 domenu google-earth.desktop
222
223 for size in 16 22 24 32 48 64 128 256 ; do
224 newicon -s ${size} product_logo_${size}.png google-earth.png
225 done
226
227 rm -rf xdg-mime xdg-settings google-earth google-earth.desktop product_logo_*
228
229 insinto /opt/${PN}
230 doins -r *
231
232 fperms +x /opt/${PN}/${PN}{,-bin}
233 cd "${ED}" || die
234 find . -type f -name "*.so.*" -exec fperms +x '{}' +
235
236 pax-mark -m "${ED%/}"/opt/${PN}/${PN}-bin
237 }
238
239 pkg_preinst() {
240 gnome2_icon_savelist
241 }
242
243 pkg_postinst() {
244 elog "When you get a crash starting Google Earth, try adding a file ~./config/Google/GoogleEarthPlus.conf"
245 elog "with the following options:"
246 elog "lastTip = 4"
247 elog "enableTips = false"
248 elog ""
249 elog "In addition, the use of free video drivers may cause problems associated with using the Mesa"
250 elog "library. In this case, Google Earth 6x likely only works with the Gallium3D variant."
251 elog "To select the 32bit graphic library use the command:"
252 elog " eselect mesa list"
253 elog "For example, for Radeon R300 (x86):"
254 elog " eselect mesa set r300 2"
255 elog "For Intel Q33 (amd64):"
256 elog " eselect mesa set 32bit i965 2"
257 elog "You may need to restart X afterwards"
258
259 fdo-mime_desktop_database_update
260 fdo-mime_mime_database_update
261 gnome2_icon_cache_update
262 }
263
264 pkg_postrm() {
265 fdo-mime_desktop_database_update
266 fdo-mime_mime_database_update
267 gnome2_icon_cache_update
268 }