summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-03-02 21:25:35 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-03-02 21:25:35 +0000
commita2308fed2bf0ea0211644ccaf478671b8a67d20b (patch)
tree608e226c0d7bd18ba81cdfa7661f655c79b523ac /sci-geosciences
parentMove Qt dependencies to the new category (diff)
downloadhistorical-a2308fed2bf0ea0211644ccaf478671b8a67d20b.tar.gz
historical-a2308fed2bf0ea0211644ccaf478671b8a67d20b.tar.bz2
historical-a2308fed2bf0ea0211644ccaf478671b8a67d20b.zip
version bump wrt #460040
Package-Manager: portage-2.2.0_alpha163/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/googleearth/ChangeLog9
-rw-r--r--sci-geosciences/googleearth/Manifest20
-rw-r--r--sci-geosciences/googleearth/files/googleearth-7.0.3.8542-desktopfile.patch17
-rw-r--r--sci-geosciences/googleearth/googleearth-7.0.3.8542.ebuild191
4 files changed, 228 insertions, 9 deletions
diff --git a/sci-geosciences/googleearth/ChangeLog b/sci-geosciences/googleearth/ChangeLog
index fbc2ea5d1546..3dfbdefe791a 100644
--- a/sci-geosciences/googleearth/ChangeLog
+++ b/sci-geosciences/googleearth/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-geosciences/googleearth
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.46 2013/02/17 00:28:34 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/ChangeLog,v 1.47 2013/03/02 21:25:31 hasufell Exp $
+
+*googleearth-7.0.3.8542 (02 Mar 2013)
+
+ 02 Mar 2013; Julian Ospald <hasufell@gentoo.org>
+ +googleearth-7.0.3.8542.ebuild,
+ +files/googleearth-7.0.3.8542-desktopfile.patch:
+ version bump wrt #460040
17 Feb 2013; Julian Ospald <hasufell@gentoo.org> metadata.xml:
set correct maintainer
diff --git a/sci-geosciences/googleearth/Manifest b/sci-geosciences/googleearth/Manifest
index b1fd08810e74..0ca45bb71202 100644
--- a/sci-geosciences/googleearth/Manifest
+++ b/sci-geosciences/googleearth/Manifest
@@ -3,6 +3,7 @@ Hash: SHA256
AUX decimal-separator.patch 324 SHA256 5c1ffe3cb7b7328245d92c627f8b8d963a9a2aab67c70b5387b151f78b04c051 SHA512 e158ad397af8f2f14e417b90c4c415ded34f27c513d0c651c8c5b242876625ba0c2f3167d7c4a401dfa0c2e2ab8ef0b7974df3df8a7a685fa59b928cc2aa36d5 WHIRLPOOL 8b6432a88e776b18ddaebab211d45a723562df32b523f686cbe9bf1ccdabfd5f594dd75c4a13bae641a29b80fddd1678e94e571983dc0a8b7e080f4fd716ddeb
AUX googleearth-7.0.2.8415-desktopfile.patch 646 SHA256 9b69e401ea0a6c70c69c5f7848c1a62bd99096233742bfb2b9c006b67c2f0f3c SHA512 91beacecc5dc4dd7b8f37ccf4f6470356c162e5cc45ce23b8bd9c34b5f88a05c9f9d707f6d1d1093fbe71246f00c73152405c882f1991708651defd2c322e47f WHIRLPOOL 14529b9b4e934831d31196273b7de9f29700f4bd9b69c9b098c739d80eabd1f4f9eebec17f8ac0a1919537803951dfee3900b25389c72b5a8f34241a5c2f3cf1
+AUX googleearth-7.0.3.8542-desktopfile.patch 646 SHA256 9b69e401ea0a6c70c69c5f7848c1a62bd99096233742bfb2b9c006b67c2f0f3c SHA512 91beacecc5dc4dd7b8f37ccf4f6470356c162e5cc45ce23b8bd9c34b5f88a05c9f9d707f6d1d1093fbe71246f00c73152405c882f1991708651defd2c322e47f WHIRLPOOL 14529b9b4e934831d31196273b7de9f29700f4bd9b69c9b098c739d80eabd1f4f9eebec17f8ac0a1919537803951dfee3900b25389c72b5a8f34241a5c2f3cf1
AUX googleearth-mimetypes.xml 638 SHA256 71e57a7370dc2c0eb6b85e2bbb5282ed7a7542e58f849a20282b1627cef9b2b9 SHA512 47c855b0a3c2ad0e8951f238411ef99f029c3f9079803d4063072fa03b4fe02c69fc57ae9cc599d0bb5d1b3b584d73928b2eea6a4faded8f0074139a5c08a79c WHIRLPOOL edac2920e71b589668fff0f83dc96c8e088c4894156f2f3d6b69cb6043e71bf59d5b2584bebf5169ee3fe07501c8fcf7f30c664bd5466e6df0179bfff8215510
AUX mime-magic.patch 572 SHA256 302bfab0aa2edd09a2a83f7040de4dcc09998e822555b85242e2e8cb05fb3a12 SHA512 75257361e040ca14bf501991cf50e0fe02fef1be2abc792493883f0e330d36348241b1f6375b2154cd5835a8d37141cc7bc1ff02ec13a1cd01021d67c1f8b663 WHIRLPOOL 8853610b67004150ded78b71f18e95ddc007d8de988a0ba351519bca775b19d496b07669b131ef4fba3b5a03ac70ecfb8b1e13b221ecd8f587339fa6d61a39cd
DIST GoogleEarthLinux-5.1.3535.3218.bin 25932414 SHA256 f721e4e8db3a7351c77a8aea425ec334ff01e163481cbcf6cdda9dbb0ad422ac SHA512 97b1af077e8fc4ec19e8824d0996c5bbf5f3347e6a6f9a2c5b1cf48b76c5ced81e7462a4335d23ef2cbaf1ea361d861e4cecec0b209653f7a3ff9c1be1b65479 WHIRLPOOL bc7088a960aa5fc96b8148f55176916867858028ff09dc5ee90d7a11586733ef0c9e697bd8d956ce07330d722208ecdb14534b745caab169e7312b97616e96af
@@ -12,6 +13,8 @@ DIST GoogleEarthLinux-6.0.3.2197.bin 33688483 SHA256 8c1cabb6a196e93224be05bd8a4
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 GoogleEarthLnux-6.2.2.6613_i386.deb 25620810 SHA256 e309ce1493dec6abc742037b1e6822b08771827db59ee7e5d5da56cb40c92111
DIST googleearth-libexpat-2.1.0-novisibility.tar.xz 54812 SHA256 f300a3f76ef8350a9e681005c4d6ec5ba086e7f12acc7b83b68445e770dec6c9 SHA512 21f0510f391e242a2a87191ecb53f45bf837801b8e8e937dd50b6ff454b52d0dd4d31f32461add7604226d786a188a3a2a8dd86c86f9678c8d317b0d432f91e3 WHIRLPOOL 55440c3924735cf03b8c283c7f4787b735fa5dad62dfa753332b5c149ebe9a4734a24924a6a12b12a43c7292d544d0e971fd92d84ebe751fa439afffc54f1dae
EBUILD googleearth-5.1.3535.3218-r1.ebuild 4338 SHA256 5940cef1d856f7a05d550aca73f557c2593194e793a98c9dda468266ea90fbd7 SHA512 662bc105c49db0f8838deda11e23e9d61e7fc9f7003dd62fbe22b939986c55a9043f504e93862e152d9e89af4b0bcb337d516c98e30177c645e7255ac23eafa5 WHIRLPOOL 85aac40d8101d288ad351646653aff0b6ae168605fcfb94766f3b406dd718934b2aba7494dab46e23cfffa30bce9cd2dc8d7276603f9c1a19c8f74928ba6a1a0
@@ -21,16 +24,17 @@ EBUILD googleearth-6.0.3.2197.ebuild 5314 SHA256 7343f140a32d51a96e9dddbf4e0988a
EBUILD googleearth-6.2.2.6613.ebuild 5731 SHA256 34909ff86643d41e9f0dac51ca0526b2fbd4d444afc831097cf192950fb9f37e SHA512 c5fba34a570acb7ae5497fd0cde8f56d3982b7f87189d644a7ec7bf2eaeee15ef0b0d0a2f7bdb08f2d83804937174f87b19b77bac92016ad8f78fc45b6e026a0 WHIRLPOOL d92f9c3434a3a725fe7a6185dd651511a4342330f4dfe70b431f69204bf26a5870c537e16c4be0586bc957f294ce865bc4763d1d9bef624490f48a51ce7d63c0
EBUILD googleearth-7.0.2.8415-r2.ebuild 5934 SHA256 e5ed84a2fe6b6a94fa4b302dd084283289062087141cefa0a8282d642bfb7716 SHA512 2a50720f5bd1eec080f177a1a2e1097651fa45772ea235b0aaf5650aa15e65f0f69f1dc8ec9ca29233bc396284a85c1c4e6cac45c272074d079a8f0b03cdf436 WHIRLPOOL 67612ce3e55c849211229c2c9c127dbdab27bb9e2971fc666d7689d255104f65a65db7ad9d672797e85260f515c096b2d24af54c097cb4aa4ba92236ee7181af
EBUILD googleearth-7.0.2.8415.ebuild 5953 SHA256 b9daf0a978c40dd6db4c8536f332391a00347533d60f28a6c69931ca617150bb SHA512 aaed762e41ccaf7e78dbbad6f8eb50dc714f0bd8c8c659e63b4f27025765af227c241f6f11fd9186c497138e0a1f88afbef3c929e99392ab5a6b863dcc91f2f1 WHIRLPOOL 6f10bbebc7f0839a61f58f05c1e0c7edc96b1c9c8c87c323d705cc379269489644352e23ae4b91a77dd25fbf6a340482ce38a58d4d9333717b575dcc70dc5028
-MISC ChangeLog 20229 SHA256 0374eda7ce233ea37284183b9c2b4fee9ff47703dad77249e59875b4c84ab9ed SHA512 14d5688108a7c53f09ebb2708a0faac4ce8c17db692ccce7cc7a8cad55df2829dbb2e11ad2722c81af7613ac0dd044a1837fd05991cb24d227c337e3894fefb0 WHIRLPOOL 9f780369b025c0e02e8bee41fd1e9a04659ba4e640d529d619527c740ab118912cb758201a1f3a4da79689c4131ac689421d448395ff2014b963c2069615f647
+EBUILD googleearth-7.0.3.8542.ebuild 5931 SHA256 bd68b89e971c3fda40fd02c1cb2a4f0dbae5873392b0bb2e4c8709c34cb53848 SHA512 47d9d3afbb45ab81afba158a0059382e93d55f9611d3df643bf46b7bb6cb0ee077a2d492d66404f9c410c5002f1ed99ae323804ac67af08369e1813ea3729caa WHIRLPOOL 2b9efba2871accb6685736c2898ddf27301c7c6209be7f2a4a3c33053cd1ff7a89999dae799399c39f7e40ba37bebfb44518400b74504078e403a72ef1004431
+MISC ChangeLog 20432 SHA256 0a813287a0cd012ad1c7483a562a447df510f2e05d2888a2b786e8da7d33c977 SHA512 a6b0484b6536bc6e0a327a90b35d3d0340e7fbd47d315d56071b4c7b68f335c8e24207f1ff94381004de15f7efcdce4364d2ae4d5547ce08932c3ea14e9a4bf0 WHIRLPOOL 20d745d047f171e226d61446686cdd0bc0519c42615acbe587a5aa9612e7846b0ceaabdb83301221713efd85dcbfe985115ce8e5ff7f0cac0df3714b2c03637b
MISC metadata.xml 689 SHA256 b3e9cd73f0f098add65660ab5cc1478c008150b83f473644cb1f0ecad75b5e3f SHA512 3be912460c770ff080d778024ea9ff3854498bf60a04eb8df3689f3b92678d7346f544e960134f2a8aea4ac2059f114734110563b7545f93f7c63ff5aff368d7 WHIRLPOOL bf0533862116669580d150da6199428beb7099c6566b58c172329e380876fbbb470440a5aba9961b9acce1d0cace01f7bc8e524dc45af2c75d622c49191ac5b2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJRICQ0AAoJEFpvPKfnPDWzF6oIAIMEVZFw5AHjZe6NfsnBNvyW
-n8CsxJQUw7p5pA51WJjEG7a25s/De4kqp4GZOuuJAb9jqmDxfkSZK4rBp75uB92f
-Yq5E6f5/jm8M+CWM8KepUZN9Lh2KrAmFlMSd3ufwfKuiAu8ckjb3Cd/aINzzW68I
-glJgeh287eBi3oPXOXLhdBZQF3Z48sl9h5Echf4AeZl9lBVT/prNhdFw04oyNLvd
-L1Gdp7iyMRV/t0Od90THjJGjmSiRuHoDm23p55u3WgFDg1JXndHSInj6ibgWYsaV
-qu7DnO5ouNdJ1Zd8hICrl3EBro03137ieD2MLQbUsY0IifsI/2DlbYfS4nobROM=
-=s/zn
+iQEcBAEBCAAGBQJRMm5MAAoJEFpvPKfnPDWzhzgH/25MvMGYkU7m7GDs93xSFtwD
+QjsCaLtCpDjm6Tgs67lxPuROzRlWgKfjp2QkQx44+1j+Nc3p7mhpG80aPZbaenmQ
+7mPtvb2x8vJlPIMRge8upXpDtdLEQmoRW2Mchvid0+a7BfQbyM4b7K4MdBnssjRx
+H6eA+SW6YN0iKuztpdEHQC9eUCviVATW9Q1vl8Xxp37KsomTENWDw7iq/ViTsiUc
+lrQ6bjdv/2V82Rt/kXoJW+e/L3f//gmPwoKkfDYaRcnt7h/1m8pAFGH9IxIwXwmY
+gqk21KFQCcM4dkooqwjBYILDhDzUxtUXONK6Mo0tL75qzfy3VTrV6uRiQvftGPw=
+=I/Nc
-----END PGP SIGNATURE-----
diff --git a/sci-geosciences/googleearth/files/googleearth-7.0.3.8542-desktopfile.patch b/sci-geosciences/googleearth/files/googleearth-7.0.3.8542-desktopfile.patch
new file mode 100644
index 000000000000..0de8b589b77e
--- /dev/null
+++ b/sci-geosciences/googleearth/files/googleearth-7.0.3.8542-desktopfile.patch
@@ -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;
diff --git a/sci-geosciences/googleearth/googleearth-7.0.3.8542.ebuild b/sci-geosciences/googleearth/googleearth-7.0.3.8542.ebuild
new file mode 100644
index 000000000000..6413ea870b7f
--- /dev/null
+++ b/sci-geosciences/googleearth/googleearth-7.0.3.8542.ebuild
@@ -0,0 +1,191 @@
+# 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.0.3.8542.ebuild,v 1.1 2013/03/02 21:25:31 hasufell Exp $
+
+EAPI=5
+
+inherit pax-utils eutils unpacker fdo-mime versionator gnome2-utils toolchain-funcs
+
+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 )
+ http://dev.gentoo.org/~hasufell/distfiles/googleearth-libexpat-2.1.0-novisibility.tar.xz"
+LICENSE="googleearth GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror strip"
+IUSE="+system-mdns system-qt"
+
+GCC_NEEDED="4.2"
+QA_PREBUILT="*"
+
+RDEPEND="|| ( >=sys-devel/gcc-${GCC_NEEDED}[cxx] >=sys-devel/gcc-${GCC_NEEDED}[-nocxx] )
+ x86? (
+ media-libs/fontconfig
+ media-libs/freetype
+ virtual/opengl
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXext
+ x11-libs/libXrender
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ sys-libs/zlib
+ dev-libs/glib:2
+ system-qt? (
+ >=x11-libs/qt-core-4.5.3:4
+ >=x11-libs/qt-gui-4.5.3:4
+ >=x11-libs/qt-webkit-4.5.3:4
+ )
+ net-misc/curl
+ sci-libs/gdal
+ system-mdns? ( sys-auth/nss-mdns )
+ )
+ amd64? (
+ >=app-emulation/emul-linux-x86-xlibs-20081109
+ >=app-emulation/emul-linux-x86-baselibs-20081109
+ app-emulation/emul-linux-x86-opengl
+ system-qt? (
+ >=app-emulation/emul-linux-x86-qtlibs-20091231-r1
+ )
+ )
+ virtual/ttf-fonts"
+
+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!"
+}
+
+pkg_setup() {
+ GCC_VER="$(gcc-version)"
+ if ! version_is_at_least ${GCC_NEEDED} ${GCC_VER}; then
+ ewarn "${PN} needs libraries from gcc-${GCC_NEEDED} or higher to run"
+ ewarn "Your active gcc version is only ${GCC_VER}"
+ ewarn "Please consult the GCC upgrade guide to set a higher version:"
+ ewarn "http://www.gentoo.org/doc/en/gcc-upgrading.xml"
+ fi
+}
+
+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
+
+ cd opt/google/earth/free || die
+
+ unpack googleearth-libexpat-2.1.0-novisibility.tar.xz
+
+ if use system-qt; then
+ rm -v libQt{Core,Gui,Network,WebKit}.so.4 qt.conf || die
+ rm -rv plugins/imageformats || die
+ fi
+ rm -v libcurl.so.4 || die
+ if use system-mdns; then
+ rm -v libnss_mdns4_minimal.so.2 || die
+ fi
+
+ if use x86; then
+ # no 32 bit libs for gdal
+ rm -v libgdal.so.1 || die
+ fi
+}
+
+src_prepare() {
+ # bug #262780 is hopefully now solved upstream
+# epatch "${FILESDIR}/decimal-separator.patch"
+
+ # we have no ld-lsb.so.3 symlink
+ # thanks to Nathan Phillip Brink <ohnobinki@ohnopublishing.net> for suggesting patchelf
+ patchelf --set-interpreter /lib/ld-linux.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} .
+
+ # install binaries and remove them
+ binaries="${PN} ${PN}-bin *.so *.so.*"
+ exeinto /opt/${PN}
+ doexe ${binaries}
+ rm ${binaries} || die
+
+ 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 -r product_logo_* xdg-mime xdg-settings google-earth google-earth.desktop || die
+
+ # just copy everything that's left
+ cp -pPR * "${ED}"/opt/${PN} || die
+
+ # some files are executable and shouldn't
+ fperms -R a-x,a+X /opt/googleearth/resources
+
+ pax-mark -m "${ED}/opt/googleearth/googleearth-bin"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog "The system-qt flag is disabled by default due to crashes on startup with system Qt."
+ elog "Do not report bugs if you attempt to enable this masked flag."
+ elog ""
+ 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
+}