Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-geosciences/googleearth: ChangeLog googleearth-7.0.3.8542.ebuild
Date: Sat, 02 Mar 2013 21:25:35
Message-Id: 20130302212531.B8D892171D@flycatcher.gentoo.org
1 hasufell 13/03/02 21:25:31
2
3 Modified: ChangeLog
4 Added: googleearth-7.0.3.8542.ebuild
5 Log:
6 version bump wrt #460040
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
9
10 Revision Changes Path
11 1.47 sci-geosciences/googleearth/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.47&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.47&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?r1=1.46&r2=1.47
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v
20 retrieving revision 1.46
21 retrieving revision 1.47
22 diff -u -r1.46 -r1.47
23 --- ChangeLog 17 Feb 2013 00:28:34 -0000 1.46
24 +++ ChangeLog 2 Mar 2013 21:25:31 -0000 1.47
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sci-geosciences/googleearth
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.46 2013/02/17 00:28:34 hasufell Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.47 2013/03/02 21:25:31 hasufell Exp $
30 +
31 +*googleearth-7.0.3.8542 (02 Mar 2013)
32 +
33 + 02 Mar 2013; Julian Ospald <hasufell@g.o>
34 + +googleearth-7.0.3.8542.ebuild,
35 + +files/googleearth-7.0.3.8542-desktopfile.patch:
36 + version bump wrt #460040
37
38 17 Feb 2013; Julian Ospald <hasufell@g.o> metadata.xml:
39 set correct maintainer
40
41
42
43 1.1 sci-geosciences/googleearth/googleearth-7.0.3.8542.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-7.0.3.8542.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-7.0.3.8542.ebuild?rev=1.1&content-type=text/plain
47
48 Index: googleearth-7.0.3.8542.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-7.0.3.8542.ebuild,v 1.1 2013/03/02 21:25:31 hasufell Exp $
53
54 EAPI=5
55
56 inherit pax-utils eutils unpacker fdo-mime versionator gnome2-utils toolchain-funcs
57
58 DESCRIPTION="A 3D interface to the planet"
59 HOMEPAGE="http://earth.google.com/"
60 # no upstream versioning, version determined from help/about
61 # incorrect digest means upstream bumped and thus needs version bump
62 SRC_URI="x86? ( http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
63 -> GoogleEarthLinux-${PV}_i386.deb )
64 amd64? ( http://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb
65 -> GoogleEarthLinux-${PV}_amd64.deb )
66 http://dev.gentoo.org/~hasufell/distfiles/googleearth-libexpat-2.1.0-novisibility.tar.xz"
67 LICENSE="googleearth GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 RESTRICT="mirror strip"
71 IUSE="+system-mdns system-qt"
72
73 GCC_NEEDED="4.2"
74 QA_PREBUILT="*"
75
76 RDEPEND="|| ( >=sys-devel/gcc-${GCC_NEEDED}[cxx] >=sys-devel/gcc-${GCC_NEEDED}[-nocxx] )
77 x86? (
78 media-libs/fontconfig
79 media-libs/freetype
80 virtual/opengl
81 x11-libs/libICE
82 x11-libs/libSM
83 x11-libs/libX11
84 x11-libs/libXi
85 x11-libs/libXext
86 x11-libs/libXrender
87 x11-libs/libXau
88 x11-libs/libXdmcp
89 sys-libs/zlib
90 dev-libs/glib:2
91 system-qt? (
92 >=x11-libs/qt-core-4.5.3:4
93 >=x11-libs/qt-gui-4.5.3:4
94 >=x11-libs/qt-webkit-4.5.3:4
95 )
96 net-misc/curl
97 sci-libs/gdal
98 system-mdns? ( sys-auth/nss-mdns )
99 )
100 amd64? (
101 >=app-emulation/emul-linux-x86-xlibs-20081109
102 >=app-emulation/emul-linux-x86-baselibs-20081109
103 app-emulation/emul-linux-x86-opengl
104 system-qt? (
105 >=app-emulation/emul-linux-x86-qtlibs-20091231-r1
106 )
107 )
108 virtual/ttf-fonts"
109
110 DEPEND="dev-util/patchelf"
111
112 S=${WORKDIR}/opt/google/earth/free
113
114 pkg_nofetch() {
115 einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version."
116 einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump."
117 einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)."
118 einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!"
119 }
120
121 pkg_setup() {
122 GCC_VER="$(gcc-version)"
123 if ! version_is_at_least ${GCC_NEEDED} ${GCC_VER}; then
124 ewarn "${PN} needs libraries from gcc-${GCC_NEEDED} or higher to run"
125 ewarn "Your active gcc version is only ${GCC_VER}"
126 ewarn "Please consult the GCC upgrade guide to set a higher version:"
127 ewarn "http://www.gentoo.org/doc/en/gcc-upgrading.xml"
128 fi
129 }
130
131 src_unpack() {
132 # default src_unpack fails with deb2targz installed, also this unpacks the data.tar.lzma as well
133 unpack_deb GoogleEarthLinux-${PV}_$(usex amd64 "amd64" "i386").deb
134
135 cd opt/google/earth/free || die
136
137 unpack googleearth-libexpat-2.1.0-novisibility.tar.xz
138
139 if use system-qt; then
140 rm -v libQt{Core,Gui,Network,WebKit}.so.4 qt.conf || die
141 rm -rv plugins/imageformats || die
142 fi
143 rm -v libcurl.so.4 || die
144 if use system-mdns; then
145 rm -v libnss_mdns4_minimal.so.2 || die
146 fi
147
148 if use x86; then
149 # no 32 bit libs for gdal
150 rm -v libgdal.so.1 || die
151 fi
152 }
153
154 src_prepare() {
155 # bug #262780 is hopefully now solved upstream
156 # epatch "${FILESDIR}/decimal-separator.patch"
157
158 # we have no ld-lsb.so.3 symlink
159 # thanks to Nathan Phillip Brink <ohnobinki@××××××××××××××.net> for suggesting patchelf
160 patchelf --set-interpreter /lib/ld-linux.so.2 ${PN}-bin || die "patchelf failed"
161
162 # Set RPATH for preserve-libs handling (bug #265372).
163 local x
164 for x in * ; do
165 # Use \x7fELF header to separate ELF executables and libraries
166 [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
167 patchelf --set-rpath '$ORIGIN' "${x}" ||
168 die "patchelf failed on ${x}"
169 done
170 for x in plugins/imageformats/*.so ; do
171 [[ -f ${x} ]] || continue
172 patchelf --set-rpath /opt/${PN} "${x}" ||
173 die "patchelf failed on ${x}"
174 done
175
176 epatch "${FILESDIR}"/${P}-desktopfile.patch
177 }
178
179 src_install() {
180 make_wrapper ${PN} ./${PN} /opt/${PN} .
181
182 # install binaries and remove them
183 binaries="${PN} ${PN}-bin *.so *.so.*"
184 exeinto /opt/${PN}
185 doexe ${binaries}
186 rm ${binaries} || die
187
188 insinto /usr/share/mime/packages
189 doins "${FILESDIR}/${PN}-mimetypes.xml" || die
190
191 domenu google-earth.desktop
192
193 for size in 16 22 24 32 48 64 128 256 ; do
194 newicon -s ${size} product_logo_${size}.png google-earth.png
195 done
196
197 rm -r product_logo_* xdg-mime xdg-settings google-earth google-earth.desktop || die
198
199 # just copy everything that's left
200 cp -pPR * "${ED}"/opt/${PN} || die
201
202 # some files are executable and shouldn't
203 fperms -R a-x,a+X /opt/googleearth/resources
204
205 pax-mark -m "${ED}/opt/googleearth/googleearth-bin"
206 }
207
208 pkg_preinst() {
209 gnome2_icon_savelist
210 }
211
212 pkg_postinst() {
213 elog "The system-qt flag is disabled by default due to crashes on startup with system Qt."
214 elog "Do not report bugs if you attempt to enable this masked flag."
215 elog ""
216 elog "When you get a crash starting Google Earth, try adding a file ~./config/Google/GoogleEarthPlus.conf"
217 elog "the following options:"
218 elog "lastTip = 4"
219 elog "enableTips = false"
220 elog ""
221 elog "In addition, the use of free video drivers may be problems associated with using the Mesa"
222 elog "library. In this case, Google Earth 6x likely only works with the Gallium3D variant."
223 elog "To select the 32bit graphic library use the command:"
224 elog " eselect mesa list"
225 elog "For example, for Radeon R300 (x86):"
226 elog " eselect mesa set r300 2"
227 elog "For Intel Q33 (amd64):"
228 elog " eselect mesa set 32bit i965 2"
229 elog "You may need to restart X afterwards"
230
231 fdo-mime_desktop_database_update
232 fdo-mime_mime_database_update
233 gnome2_icon_cache_update
234 }
235
236 pkg_postrm() {
237 fdo-mime_desktop_database_update
238 fdo-mime_mime_database_update
239 gnome2_icon_cache_update
240 }