1 |
hasufell 13/07/01 15:28:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: googleearth-7.1.1.1871.ebuild |
5 |
Log: |
6 |
version bump wrt #475414 |
7 |
|
8 |
(Portage version: 2.2.0_alpha186/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.53 sci-geosciences/googleearth/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.53&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?rev=1.53&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/ChangeLog?r1=1.52&r2=1.53 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v |
20 |
retrieving revision 1.52 |
21 |
retrieving revision 1.53 |
22 |
diff -u -r1.52 -r1.53 |
23 |
--- ChangeLog 31 May 2013 19:29:39 -0000 1.52 |
24 |
+++ ChangeLog 1 Jul 2013 15:28:40 -0000 1.53 |
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.52 2013/05/31 19:29:39 hasufell Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.53 2013/07/01 15:28:40 hasufell Exp $ |
30 |
+ |
31 |
+*googleearth-7.1.1.1871 (01 Jul 2013) |
32 |
+ |
33 |
+ 01 Jul 2013; Julian Ospald <hasufell@g.o> |
34 |
+ +googleearth-7.1.1.1871.ebuild, |
35 |
+ +files/googleearth-7.1.1.1871-desktopfile.patch: |
36 |
+ version bump wrt #475414 |
37 |
|
38 |
31 May 2013; Julian Ospald <hasufell@g.o> |
39 |
googleearth-7.1.1.1580.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-geosciences/googleearth/googleearth-7.1.1.1871.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-7.1.1.1871.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/googleearth/googleearth-7.1.1.1871.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: googleearth-7.1.1.1871.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.1.1.1871.ebuild,v 1.1 2013/07/01 15:28:40 hasufell Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
inherit pax-utils eutils unpacker fdo-mime gnome2-utils |
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 |
LICENSE="googleearth GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~x86" |
69 |
RESTRICT="mirror splitdebug" |
70 |
IUSE="+bundled-libs" |
71 |
|
72 |
QA_PREBUILT="*" |
73 |
|
74 |
# TODO: find a way to unbundle libQt |
75 |
# ./googleearth-bin: symbol lookup error: ./libbase.so: undefined symbol: _Z34QBasicAtomicInt_fetchAndAddOrderedPVii |
76 |
|
77 |
RDEPEND=" |
78 |
dev-libs/glib:2 |
79 |
dev-libs/nspr |
80 |
media-libs/fontconfig |
81 |
media-libs/freetype |
82 |
net-misc/curl |
83 |
sys-devel/gcc[cxx] |
84 |
sys-libs/zlib |
85 |
virtual/glu |
86 |
virtual/opengl |
87 |
virtual/ttf-fonts |
88 |
x11-libs/libICE |
89 |
x11-libs/libSM |
90 |
x11-libs/libX11 |
91 |
x11-libs/libXi |
92 |
x11-libs/libXext |
93 |
x11-libs/libXrender |
94 |
x11-libs/libXau |
95 |
x11-libs/libXdmcp |
96 |
!bundled-libs? ( |
97 |
dev-db/sqlite:3 |
98 |
dev-libs/expat |
99 |
dev-libs/nss |
100 |
sci-libs/gdal |
101 |
sci-libs/proj |
102 |
)" |
103 |
DEPEND="dev-util/patchelf" |
104 |
|
105 |
S=${WORKDIR}/opt/google/earth/free |
106 |
|
107 |
pkg_nofetch() { |
108 |
einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version." |
109 |
einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump." |
110 |
einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)." |
111 |
einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!" |
112 |
} |
113 |
|
114 |
src_unpack() { |
115 |
# default src_unpack fails with deb2targz installed, also this unpacks the data.tar.lzma as well |
116 |
unpack_deb GoogleEarthLinux-${PV}_$(usex amd64 "amd64" "i386").deb |
117 |
|
118 |
if ! use bundled-libs ; then |
119 |
einfo "removing bundled libs" |
120 |
cd opt/google/earth/free || die |
121 |
# sci-libs/gdal |
122 |
rm -v libgdal.so.1 || die |
123 |
# dev-db/sqlite |
124 |
rm -v libsqlite3.so || die |
125 |
# dev-libs/nss |
126 |
rm -v libplc4.so libplds4.so libnspr4.so libnssckbi.so libfreebl3.so \ |
127 |
libnssdbm3.so libnss3.so libnssutil3.so libsmime3.so libnsssysinit.so \ |
128 |
libsoftokn3.so libssl3.so || die |
129 |
# dev-libs/expat |
130 |
rm -v libexpat.so.1 || die |
131 |
# sci-libs/proj |
132 |
rm -v libproj.so.0 || die |
133 |
# dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtwebkit:4 |
134 |
# rm -v libQt{Core,Gui,Network,WebKit}.so.4 || die |
135 |
# rm -rv plugins/imageformats || die |
136 |
fi |
137 |
} |
138 |
|
139 |
src_prepare() { |
140 |
# we have no ld-lsb.so.3 symlink |
141 |
# thanks to Nathan Phillip Brink <ohnobinki@××××××××××××××.net> for suggesting patchelf |
142 |
einfo "running patchelf" |
143 |
patchelf --set-interpreter /lib/ld-linux$(usex amd64 "-x86-64" "").so.2 ${PN}-bin || die "patchelf failed" |
144 |
|
145 |
# Set RPATH for preserve-libs handling (bug #265372). |
146 |
local x |
147 |
for x in * ; do |
148 |
# Use \x7fELF header to separate ELF executables and libraries |
149 |
[[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue |
150 |
patchelf --set-rpath '$ORIGIN' "${x}" || |
151 |
die "patchelf failed on ${x}" |
152 |
done |
153 |
for x in plugins/imageformats/*.so ; do |
154 |
[[ -f ${x} ]] || continue |
155 |
patchelf --set-rpath /opt/${PN} "${x}" || |
156 |
die "patchelf failed on ${x}" |
157 |
done |
158 |
|
159 |
epatch "${FILESDIR}"/${P}-desktopfile.patch |
160 |
} |
161 |
|
162 |
src_install() { |
163 |
make_wrapper ${PN} ./${PN} /opt/${PN} . |
164 |
|
165 |
insinto /usr/share/mime/packages |
166 |
doins "${FILESDIR}/${PN}-mimetypes.xml" || die |
167 |
|
168 |
domenu google-earth.desktop |
169 |
|
170 |
for size in 16 22 24 32 48 64 128 256 ; do |
171 |
newicon -s ${size} product_logo_${size}.png google-earth.png |
172 |
done |
173 |
|
174 |
rm -rf xdg-mime xdg-settings google-earth google-earth.desktop product_logo_* |
175 |
|
176 |
insinto /opt/${PN} |
177 |
doins -r * |
178 |
|
179 |
fperms +x /opt/${PN}/${PN}{,-bin} |
180 |
cd "${ED}" || die |
181 |
find . -type f -name "*.so.*" -exec fperms +x '{}' + |
182 |
|
183 |
pax-mark -m "${ED%/}"/opt/${PN}/${PN}-bin |
184 |
} |
185 |
|
186 |
pkg_preinst() { |
187 |
gnome2_icon_savelist |
188 |
} |
189 |
|
190 |
pkg_postinst() { |
191 |
elog "When you get a crash starting Google Earth, try adding a file ~./config/Google/GoogleEarthPlus.conf" |
192 |
elog "the following options:" |
193 |
elog "lastTip = 4" |
194 |
elog "enableTips = false" |
195 |
elog "" |
196 |
elog "In addition, the use of free video drivers may be problems associated with using the Mesa" |
197 |
elog "library. In this case, Google Earth 6x likely only works with the Gallium3D variant." |
198 |
elog "To select the 32bit graphic library use the command:" |
199 |
elog " eselect mesa list" |
200 |
elog "For example, for Radeon R300 (x86):" |
201 |
elog " eselect mesa set r300 2" |
202 |
elog "For Intel Q33 (amd64):" |
203 |
elog " eselect mesa set 32bit i965 2" |
204 |
elog "You may need to restart X afterwards" |
205 |
|
206 |
fdo-mime_desktop_database_update |
207 |
fdo-mime_mime_database_update |
208 |
gnome2_icon_cache_update |
209 |
} |
210 |
|
211 |
pkg_postrm() { |
212 |
fdo-mime_desktop_database_update |
213 |
fdo-mime_mime_database_update |
214 |
gnome2_icon_cache_update |
215 |
} |