googlearth before someone will delete it from repos
This commit is contained in:
parent
9b78bef4e7
commit
cc4fc6c519
|
@ -0,0 +1,17 @@
|
|||
DIST GoogleEarthLinux-5.1.3535.3218.bin 25932414 SHA256 f721e4e8db3a7351c77a8aea425ec334ff01e163481cbcf6cdda9dbb0ad422ac SHA512 97b1af077e8fc4ec19e8824d0996c5bbf5f3347e6a6f9a2c5b1cf48b76c5ced81e7462a4335d23ef2cbaf1ea361d861e4cecec0b209653f7a3ff9c1be1b65479 WHIRLPOOL bc7088a960aa5fc96b8148f55176916867858028ff09dc5ee90d7a11586733ef0c9e697bd8d956ce07330d722208ecdb14534b745caab169e7312b97616e96af
|
||||
DIST GoogleEarthLinux-5.2.1.1588.bin 31406473 SHA256 2e6fcbd2384446e2a6eed8ca23173e32c5f3f9ae4d1168e2e348c3924fd2bf30
|
||||
DIST GoogleEarthLinux-6.0.2.2074.bin 33685323 SHA256 06cf414d783617a0f7bade21bcc238997140701db6a5cbdf58413cd44f9f5727
|
||||
DIST GoogleEarthLinux-6.0.3.2197.bin 33688483 SHA256 8c1cabb6a196e93224be05bd8a4786087813075f76e1734a17680c30a9ad972d
|
||||
DIST GoogleEarthLinux-6.2.2.6613_amd64.deb 25609162 SHA256 a67021ed74fd1821ba0a63e141320ca0bcd78ab618dd368629e500d208d12525
|
||||
DIST GoogleEarthLinux-7.0.2.8415_amd64.deb 30832428 SHA256 878e8a23ada537ae5ab28221ec46a45c425bdd80ee68027f56510f039b6a6c87 SHA512 0ff0ef4065896ce24f23b97e3a5c0a93763956779bb1e01f7eaee30268eb6bb1d28d2b59099a3a426477701cfe227b0542637fda68a40ba941bc3bd4246a7ebb WHIRLPOOL b4f056c8ddd9d63a041bc5a194d251d9b20a1f8993a1f32bacd76a6721571d0a60d6083edd6a092bcdda6aa1fb17cb29469d40171089143930dd8a730c68ccba
|
||||
DIST GoogleEarthLinux-7.0.2.8415_i386.deb 30809718 SHA256 a7c2fd63e5e9d25a4f3f599d3c4470a285db8bb7c5981db409a1ebb19ebdb6e1 SHA512 1bdbd14e017244f8ecf5b67f115bddd400c1ac5d0bcd1b9ae7e1d676f62e838c84b13f2aa410d0dad8084db6a72235e80b8d16754b3714f13341de11fea28119 WHIRLPOOL b53a364b01de459761a03ebfbae89704b02cef979fad9da1d2d8c438643d1f914d464e0297daa5a05e1a8004ec8bc052a32f90f8a85f4de7a7a9dab2bdd8d1a6
|
||||
DIST GoogleEarthLinux-7.0.3.8542_amd64.deb 30671794 SHA256 b3d8e11d3fd8db6e70e4c18270bedc988505c401149f66eb81c993b35c2d1367 SHA512 f6b42213e367b7891b1bfcd51b13db1cc7cfd15dc03546e170bd089aa22ad8e2904147723fbdf6249be3ac91c8f82449646c2721c52da13dafc9699f2fb1d301 WHIRLPOOL 4862e00747d9e243f63186a65351fb3b44f837fabbf6e54749e6da21b99fb4422786bda093dbf886c3ebbf5f3c143cf9e5531b5ac547a1c1c788b398260d601f
|
||||
DIST GoogleEarthLinux-7.0.3.8542_i386.deb 30675086 SHA256 706bf8a74b87dbafc2529e508fd8bb11276b2f8d6bc7524ef2b888761c46bf67 SHA512 476cda1ced6522a6a0d417300354fae815c140eb72f83fd3ab0ee2d5b1b28a3f1ed11491e1ac4d6a9791c97be88ee4521fd550a613ede52831b2a4f7092fee02 WHIRLPOOL a0ca3985bbd71c8adf8c7335eb4d5b2baaf65f73e64c0705e50c049afaf7acfcf137dd4c24779f7d628feffcc424c3caa2445def76d5b7e113217743eef2d5bc
|
||||
DIST GoogleEarthLinux-7.1.1.1580_amd64.deb 46423542 SHA256 bb134e6c67e6019b6c5662dc987e70c2ae91c5b19508e9ba5761aeeef8db8606 SHA512 c1f53c7234f4d90f6178c474f0ff02b483405bf22687631fbd4c7a62aa5719bb8457a1b1828cc7b64c8fb782c4d262ad75a0a7d7c0785d80927bd248f25313d8 WHIRLPOOL 2e56b4eaa6035dba95539f80b940153ddf9a2567e247b3448610a8eb3bb19c47f8a9b71b6e32283ed5839dfefb4c920c70cc11d2dedd790a351d0763255937dd
|
||||
DIST GoogleEarthLinux-7.1.1.1580_i386.deb 45551694 SHA256 5ed826f0903ed8426126f9f33824bbe2a46e77902e4c4ef037818c580bc505d4 SHA512 760fe2321d781ab9de50a680f33ca60b0fee341bbad3b5aaba62df29194727cb186bcbbeb2897488c24130f22c2df37cb0664a0813548892dd8ef79d27963652 WHIRLPOOL 4688a884dad3be74f8e00a089cddadfadf050ddea616237f11b79a7aeffc3b82bec1b6a7449863ddedc404dffd4f58159edd13967e16a3b999185638eaace3b9
|
||||
DIST GoogleEarthLinux-7.1.1.1871_amd64.deb 46448898 SHA256 9a55bc2c55a5f0fc7ecb8e9e7b78fd379559d1864dc2b093da315c3a0cbe7c32 SHA512 24f5924b92840a29da576c4121fc26e90bb576a8f921ad9078f65e04b86d090b0427330fb97399737ee2282ef78bd064392a1e14ca7309c37627fe02370233a7 WHIRLPOOL 4fa3be9a9336da068308e8d09756df030f734815b201a592d86d531b5c115e1126e3d52ec5cb2f7c9ff2930dde94004b124352e33cefba3cf2cb9a12da17f611
|
||||
DIST GoogleEarthLinux-7.1.1.1871_i386.deb 45567164 SHA256 d0bec49e0d129693b0f376f62db13bd92d1770d77bec4285cc88b465dd6c6c4a SHA512 13e8ac476d4a56fe3332babab5554d53b67062f31bfedf88d0c5e0ccca3f62b73d3fd369d0c274ff29cb5d30e10585ffd9ead4e2ad2896a5905a1dff2fd8c7fa WHIRLPOOL 15b0c95b7a638728f26ce86c4df30310145da61f7ddbd7a791a04b40f83d1336050a967ca6c7150b7f502812d96d51fb9fe36f7543632f907bdec5bbeb259ff3
|
||||
DIST GoogleEarthLinux-7.1.1.1888_amd64.deb 46428510 SHA256 920ff73bb39e1eb1ac0e8260f2ac15f4f4ff3def39a4b15bd4d18a7ece210274 SHA512 0bb1b35201652604b5f6c1a7f6e9f6ce9ea225e615c8a509cc35ba1def968b6a2bbd0ce99a9205c40fb8a938e68b850533e1a96066934ee6e72f9e9b61926167 WHIRLPOOL 4fc68ca5316560b844455e1d098c5c700b638d51e466d9cc9687be396dad13e03668882343c04632bfa9419b415cea4ce01d8796481fa665f9a65f7160501ba2
|
||||
DIST GoogleEarthLinux-7.1.1.1888_i386.deb 45541972 SHA256 e9231ade9e6d0750b320650c49396342674da9f2510b1f04b587584a7e3847b7 SHA512 fb4ca197045bfd0bbe642b69bbbd6f37e8d09c146312fe3b7f6e90eb7a78bb418e9c3be39908a5cfef1c7d1f382ac3bdd4e2dad049bb2777af9a7334bdee70e7 WHIRLPOOL 52f76c01002d18ee6afb59b5b53a8ac72ca92670f3ffbaa3bc6935d14acb1f8c8ac62a5c390cbed545cdda3ae02c7d37f601966dea125485dabe67da1a259632
|
||||
DIST GoogleEarthLnux-6.2.2.6613_i386.deb 25620810 SHA256 e309ce1493dec6abc742037b1e6822b08771827db59ee7e5d5da56cb40c92111 SHA512 2ac3b5d9eac0b8019635c9999b30eb9c27f0b31b54ba7386e5cb7ac27261cdfb41746179e7cf85632615b2957ce17929a155be21b811b205842c69ffc46fe3c4 WHIRLPOOL f08fc80dfcd549949f48d4c714c08be010b0151a046377527420de6fe0329ae0c5d01e3686a41958981e26c6267b5f8801126ad5d21c3784be2de97d15ec4501
|
||||
DIST googleearth-libexpat-2.1.0-novisibility.tar.xz 54812 SHA256 f300a3f76ef8350a9e681005c4d6ec5ba086e7f12acc7b83b68445e770dec6c9 SHA512 21f0510f391e242a2a87191ecb53f45bf837801b8e8e937dd50b6ff454b52d0dd4d31f32461add7604226d786a188a3a2a8dd86c86f9678c8d317b0d432f91e3 WHIRLPOOL 55440c3924735cf03b8c283c7f4787b735fa5dad62dfa753332b5c149ebe9a4734a24924a6a12b12a43c7292d544d0e971fd92d84ebe751fa439afffc54f1dae
|
|
@ -0,0 +1,11 @@
|
|||
--- googleearth.orig 2009-10-18 15:46:03.000000000 +0200
|
||||
+++ googleearth 2009-10-18 15:45:39.000000000 +0200
|
||||
@@ -41,6 +41,8 @@
|
||||
|
||||
LD_LIBRARY_PATH=.:${GOOGLEEARTH_DATA_PATH}:${LD_LIBRARY_PATH}
|
||||
export LD_LIBRARY_PATH
|
||||
+export LC_NUMERIC=C
|
||||
+unset LC_ALL
|
||||
|
||||
# Let's boogie!
|
||||
if [ -x "${GOOGLEEARTH_DATA_PATH}/googleearth-bin" ]
|
|
@ -0,0 +1,17 @@
|
|||
--- google-earth.desktop
|
||||
+++ google-earth.desktop
|
||||
@@ -3,10 +3,10 @@
|
||||
Name=Google Earth
|
||||
GenericName=3D planet viewer
|
||||
Comment=Explore, search and discover the planet
|
||||
-Exec=/opt/google/earth/free/google-earth %f
|
||||
+Exec=/opt/googleearth/googleearth %f
|
||||
Terminal=false
|
||||
-MultipleArgs=false
|
||||
+X-MultipleArgs=false
|
||||
Icon=google-earth
|
||||
Type=Application
|
||||
-Categories=Application;Network
|
||||
-MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole
|
||||
+Categories=Network;
|
||||
+MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole;
|
|
@ -0,0 +1,17 @@
|
|||
--- google-earth.desktop
|
||||
+++ google-earth.desktop
|
||||
@@ -3,10 +3,10 @@
|
||||
Name=Google Earth
|
||||
GenericName=3D planet viewer
|
||||
Comment=Explore, search and discover the planet
|
||||
-Exec=/opt/google/earth/free/google-earth %f
|
||||
+Exec=/opt/googleearth/googleearth %f
|
||||
Terminal=false
|
||||
-MultipleArgs=false
|
||||
+X-MultipleArgs=false
|
||||
Icon=google-earth
|
||||
Type=Application
|
||||
-Categories=Application;Network
|
||||
-MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole
|
||||
+Categories=Network;
|
||||
+MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole;
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0"?>
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
<mime-type type="application/vnd.google-earth.kml+xml">
|
||||
<comment>Keyhole Markup Language data</comment>
|
||||
<glob pattern="*.kml"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/vnd.google-earth.kmz">
|
||||
<comment>Keyhole Markup Language archive</comment>
|
||||
<glob pattern="*.kmz"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/keyhole">
|
||||
<comment>Keyhole Markup Language data</comment>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/earthviewer">
|
||||
<comment>Keyhole Markup Language data</comment>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
--- usr/share/mime/packages/googleearth-mimetypes.xml 2006-07-22 10:13:03.000000000 +0100
|
||||
+++ usr/share/mime/packages/googleearth-mimetypes.xml 2006-07-22 10:41:14.584945382 +0100
|
||||
@@ -2,6 +2,9 @@
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
<mime-type type="application/vnd.google-earth.kml+xml">
|
||||
<comment>Keyhole Markup Language data</comment>
|
||||
+ <magic priority="60">
|
||||
+ <match value="<kml xmlns="http://earth.google.com/kml/" type="string" offset="0:64"/>
|
||||
+ </magic>
|
||||
<glob pattern="*.kml"/>
|
||||
</mime-type>
|
||||
|
|
@ -0,0 +1,166 @@
|
|||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $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 $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit pax-utils eutils unpacker fdo-mime gnome2-utils
|
||||
|
||||
DESCRIPTION="A 3D interface to the planet"
|
||||
HOMEPAGE="http://earth.google.com/"
|
||||
# no upstream versioning, version determined from help/about
|
||||
# incorrect digest means upstream bumped and thus needs version bump
|
||||
SRC_URI="x86? ( http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
|
||||
-> GoogleEarthLinux-${PV}_i386.deb )
|
||||
amd64? ( http://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb
|
||||
-> GoogleEarthLinux-${PV}_amd64.deb )"
|
||||
LICENSE="googleearth GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="mirror splitdebug"
|
||||
IUSE="+bundled-libs"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
# TODO: find a way to unbundle libQt
|
||||
# ./googleearth-bin: symbol lookup error: ./libbase.so: undefined symbol: _Z34QBasicAtomicInt_fetchAndAddOrderedPVii
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
net-misc/curl
|
||||
sys-devel/gcc[cxx]
|
||||
sys-libs/zlib
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
virtual/ttf-fonts
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXi
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXau
|
||||
x11-libs/libXdmcp
|
||||
!bundled-libs? (
|
||||
dev-db/sqlite:3
|
||||
dev-libs/expat
|
||||
dev-libs/nss
|
||||
sci-libs/gdal
|
||||
sci-libs/proj
|
||||
)"
|
||||
DEPEND="dev-util/patchelf"
|
||||
|
||||
S=${WORKDIR}/opt/google/earth/free
|
||||
|
||||
pkg_nofetch() {
|
||||
einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version."
|
||||
einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump."
|
||||
einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)."
|
||||
einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# default src_unpack fails with deb2targz installed, also this unpacks the data.tar.lzma as well
|
||||
unpack_deb GoogleEarthLinux-${PV}_$(usex amd64 "amd64" "i386").deb
|
||||
|
||||
if ! use bundled-libs ; then
|
||||
einfo "removing bundled libs"
|
||||
cd opt/google/earth/free || die
|
||||
# sci-libs/gdal
|
||||
rm -v libgdal.so.1 || die
|
||||
# dev-db/sqlite
|
||||
rm -v libsqlite3.so || die
|
||||
# dev-libs/nss
|
||||
rm -v libplc4.so libplds4.so libnspr4.so libnssckbi.so libfreebl3.so \
|
||||
libnssdbm3.so libnss3.so libnssutil3.so libsmime3.so libnsssysinit.so \
|
||||
libsoftokn3.so libssl3.so || die
|
||||
# dev-libs/expat
|
||||
rm -v libexpat.so.1 || die
|
||||
# sci-libs/proj
|
||||
rm -v libproj.so.0 || die
|
||||
# dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtwebkit:4
|
||||
# rm -v libQt{Core,Gui,Network,WebKit}.so.4 || die
|
||||
# rm -rv plugins/imageformats || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# we have no ld-lsb.so.3 symlink
|
||||
# thanks to Nathan Phillip Brink <ohnobinki@ohnopublishing.net> for suggesting patchelf
|
||||
einfo "running patchelf"
|
||||
patchelf --set-interpreter /lib/ld-linux$(usex amd64 "-x86-64" "").so.2 ${PN}-bin || die "patchelf failed"
|
||||
|
||||
# Set RPATH for preserve-libs handling (bug #265372).
|
||||
local x
|
||||
for x in * ; do
|
||||
# Use \x7fELF header to separate ELF executables and libraries
|
||||
[[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
|
||||
patchelf --set-rpath '$ORIGIN' "${x}" ||
|
||||
die "patchelf failed on ${x}"
|
||||
done
|
||||
for x in plugins/imageformats/*.so ; do
|
||||
[[ -f ${x} ]] || continue
|
||||
patchelf --set-rpath /opt/${PN} "${x}" ||
|
||||
die "patchelf failed on ${x}"
|
||||
done
|
||||
|
||||
epatch "${FILESDIR}"/${P}-desktopfile.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make_wrapper ${PN} ./${PN} /opt/${PN} .
|
||||
|
||||
insinto /usr/share/mime/packages
|
||||
doins "${FILESDIR}/${PN}-mimetypes.xml" || die
|
||||
|
||||
domenu google-earth.desktop
|
||||
|
||||
for size in 16 22 24 32 48 64 128 256 ; do
|
||||
newicon -s ${size} product_logo_${size}.png google-earth.png
|
||||
done
|
||||
|
||||
rm -rf xdg-mime xdg-settings google-earth google-earth.desktop product_logo_*
|
||||
|
||||
insinto /opt/${PN}
|
||||
doins -r *
|
||||
|
||||
fperms +x /opt/${PN}/${PN}{,-bin}
|
||||
cd "${ED}" || die
|
||||
find . -type f -name "*.so.*" -exec fperms +x '{}' +
|
||||
|
||||
pax-mark -m "${ED%/}"/opt/${PN}/${PN}-bin
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "When you get a crash starting Google Earth, try adding a file ~./config/Google/GoogleEarthPlus.conf"
|
||||
elog "the following options:"
|
||||
elog "lastTip = 4"
|
||||
elog "enableTips = false"
|
||||
elog ""
|
||||
elog "In addition, the use of free video drivers may be problems associated with using the Mesa"
|
||||
elog "library. In this case, Google Earth 6x likely only works with the Gallium3D variant."
|
||||
elog "To select the 32bit graphic library use the command:"
|
||||
elog " eselect mesa list"
|
||||
elog "For example, for Radeon R300 (x86):"
|
||||
elog " eselect mesa set r300 2"
|
||||
elog "For Intel Q33 (amd64):"
|
||||
elog " eselect mesa set 32bit i965 2"
|
||||
elog "You may need to restart X afterwards"
|
||||
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
|
@ -0,0 +1,171 @@
|
|||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-7.1.1.1888.ebuild,v 1.1 2013/08/18 22:38:13 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit pax-utils eutils unpacker fdo-mime gnome2-utils
|
||||
|
||||
DESCRIPTION="A 3D interface to the planet"
|
||||
HOMEPAGE="http://earth.google.com/"
|
||||
# no upstream versioning, version determined from help/about
|
||||
# incorrect digest means upstream bumped and thus needs version bump
|
||||
SRC_URI="x86? ( http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
|
||||
-> GoogleEarthLinux-${PV}_i386.deb )
|
||||
amd64? ( http://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb
|
||||
-> GoogleEarthLinux-${PV}_amd64.deb )"
|
||||
LICENSE="googleearth GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="mirror splitdebug"
|
||||
IUSE="+bundled-libs"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
# TODO: find a way to unbundle libQt
|
||||
# ./googleearth-bin: symbol lookup error: ./libbase.so: undefined symbol: _Z34QBasicAtomicInt_fetchAndAddOrderedPVii
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
net-misc/curl
|
||||
sys-devel/gcc[cxx]
|
||||
sys-libs/zlib
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
virtual/ttf-fonts
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXi
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXau
|
||||
x11-libs/libXdmcp
|
||||
!bundled-libs? (
|
||||
dev-db/sqlite:3
|
||||
dev-libs/expat
|
||||
dev-libs/nss
|
||||
sci-libs/gdal
|
||||
sci-libs/proj
|
||||
)"
|
||||
DEPEND="dev-util/patchelf"
|
||||
|
||||
S=${WORKDIR}/opt/google/earth/free
|
||||
|
||||
pkg_nofetch() {
|
||||
einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version."
|
||||
einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump."
|
||||
einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)."
|
||||
einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# default src_unpack fails with deb2targz installed, also this unpacks the data.tar.lzma as well
|
||||
unpack_deb GoogleEarthLinux-${PV}_$(usex amd64 "amd64" "i386").deb
|
||||
|
||||
if ! use bundled-libs ; then
|
||||
einfo "removing bundled libs"
|
||||
cd opt/google/earth/free || die
|
||||
# sci-libs/gdal
|
||||
rm -v libgdal.so.1 || die
|
||||
# dev-db/sqlite
|
||||
rm -v libsqlite3.so || die
|
||||
# dev-libs/nss
|
||||
rm -v libplc4.so libplds4.so libnspr4.so libnssckbi.so libfreebl3.so \
|
||||
libnssdbm3.so libnss3.so libnssutil3.so libsmime3.so libnsssysinit.so \
|
||||
libsoftokn3.so libssl3.so || die
|
||||
# dev-libs/expat
|
||||
rm -v libexpat.so.1 || die
|
||||
# sci-libs/proj
|
||||
rm -v libproj.so.0 || die
|
||||
# dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtwebkit:4
|
||||
# rm -v libQt{Core,Gui,Network,WebKit}.so.4 || die
|
||||
# rm -rv plugins/imageformats || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# we have no ld-lsb.so.3 symlink
|
||||
# thanks to Nathan Phillip Brink <ohnobinki@ohnopublishing.net> for suggesting patchelf
|
||||
einfo "running patchelf"
|
||||
patchelf --set-interpreter /lib/ld-linux$(usex amd64 "-x86-64" "").so.2 ${PN}-bin || die "patchelf failed"
|
||||
|
||||
# Set RPATH for preserve-libs handling (bug #265372).
|
||||
local x
|
||||
for x in * ; do
|
||||
# Use \x7fELF header to separate ELF executables and libraries
|
||||
[[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
|
||||
patchelf --set-rpath '$ORIGIN' "${x}" ||
|
||||
die "patchelf failed on ${x}"
|
||||
done
|
||||
for x in plugins/*.so ; do
|
||||
[[ -f ${x} ]] || continue
|
||||
patchelf --set-rpath '$ORIGIN/..' "${x}" ||
|
||||
die "patchelf failed on ${x}"
|
||||
done
|
||||
for x in plugins/imageformats/*.so ; do
|
||||
[[ -f ${x} ]] || continue
|
||||
patchelf --set-rpath '$ORIGIN/../..' "${x}" ||
|
||||
die "patchelf failed on ${x}"
|
||||
done
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-${PV%.*}.1871-desktopfile.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make_wrapper ${PN} ./${PN} /opt/${PN} .
|
||||
|
||||
insinto /usr/share/mime/packages
|
||||
doins "${FILESDIR}/${PN}-mimetypes.xml" || die
|
||||
|
||||
domenu google-earth.desktop
|
||||
|
||||
for size in 16 22 24 32 48 64 128 256 ; do
|
||||
newicon -s ${size} product_logo_${size}.png google-earth.png
|
||||
done
|
||||
|
||||
rm -rf xdg-mime xdg-settings google-earth google-earth.desktop product_logo_*
|
||||
|
||||
insinto /opt/${PN}
|
||||
doins -r *
|
||||
|
||||
fperms +x /opt/${PN}/${PN}{,-bin}
|
||||
cd "${ED}" || die
|
||||
find . -type f -name "*.so.*" -exec fperms +x '{}' +
|
||||
|
||||
pax-mark -m "${ED%/}"/opt/${PN}/${PN}-bin
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "When you get a crash starting Google Earth, try adding a file ~./config/Google/GoogleEarthPlus.conf"
|
||||
elog "the following options:"
|
||||
elog "lastTip = 4"
|
||||
elog "enableTips = false"
|
||||
elog ""
|
||||
elog "In addition, the use of free video drivers may be problems associated with using the Mesa"
|
||||
elog "library. In this case, Google Earth 6x likely only works with the Gallium3D variant."
|
||||
elog "To select the 32bit graphic library use the command:"
|
||||
elog " eselect mesa list"
|
||||
elog "For example, for Radeon R300 (x86):"
|
||||
elog " eselect mesa set r300 2"
|
||||
elog "For Intel Q33 (amd64):"
|
||||
elog " eselect mesa set 32bit i965 2"
|
||||
elog "You may need to restart X afterwards"
|
||||
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
Loading…
Reference in New Issue