Gentoo Archives: gentoo-commits

From: "Stefan Schweizer (genstef)" <genstef@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/googleearth: googleearth-4.2.205.5730.ebuild
Date: Sat, 22 Dec 2007 16:15:17
Message-Id: E1J670F-0006n0-LV@stork.gentoo.org
1 genstef 07/12/22 16:15:07
2
3 Added: googleearth-4.2.205.5730.ebuild
4 Log:
5 ~arch commit
6 (Portage version: 2.1.4_rc11)
7
8 Revision Changes Path
9 1.1 x11-misc/googleearth/googleearth-4.2.205.5730.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/googleearth/googleearth-4.2.205.5730.ebuild?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/googleearth/googleearth-4.2.205.5730.ebuild?rev=1.1&content-type=text/plain
13
14 Index: googleearth-4.2.205.5730.ebuild
15 ===================================================================
16 # Copyright 1999-2007 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/x11-misc/googleearth/googleearth-4.2.205.5730.ebuild,v 1.1 2007/12/22 16:15:07 genstef Exp $
19
20 inherit eutils fdo-mime
21
22 DESCRIPTION="A 3D interface to the planet"
23 HOMEPAGE="http://earth.google.com/"
24 SRC_URI="http://dl.google.com/earth/client/current/GoogleEarthLinux.bin"
25
26 LICENSE="googleearth MIT X11 SGI-B-1.1 openssl as-is ZLIB"
27 SLOT="0"
28 KEYWORDS="~amd64 ~x86"
29 RESTRICT="mirror strip"
30 IUSE=""
31
32 RDEPEND="x86? (
33 media-libs/fontconfig
34 media-libs/freetype
35 virtual/opengl
36 x11-libs/libICE
37 x11-libs/libSM
38 x11-libs/libX11
39 x11-libs/libXcursor
40 x11-libs/libXext
41 x11-libs/libXft
42 x11-libs/libXrender )
43 amd64? (
44 app-emulation/emul-linux-x86-xlibs
45 app-emulation/emul-linux-x86-baselibs
46 || (
47 >=app-emulation/emul-linux-x86-xlibs-7.0
48 x11-drivers/nvidia-drivers
49 <x11-drivers/ati-drivers-8.28.8 ) )
50 media-fonts/ttf-bitstream-vera"
51
52 S="${WORKDIR}"
53
54 src_unpack() {
55 unpack_makeself
56 # make the postinst script only create the files; it's installation
57 # are too complicated and inserting them ourselves is easier than
58 # hacking around it
59 sed -i -e 's:$SETUP_INSTALLPATH/::' \
60 -e 's:$SETUP_INSTALLPATH:1:' \
61 -e "s:^xdg-desktop-icon.*$::" \
62 -e "s:^xdg-desktop-menu.*$::" \
63 -e "s:^xdg-mime.*$::" postinstall.sh
64 }
65
66 src_install() {
67 make_wrapper ${PN} ./${PN} /opt/${PN} . || die "make_wrapper failed"
68 ./postinstall.sh
69 insinto /usr/share/mime/packages
70 doins ${PN}-mimetypes.xml
71 domenu Google-${PN}.desktop
72 doicon ${PN}-icon.png
73 dodoc README.linux
74
75 cd bin
76 tar xf ${WORKDIR}/${PN}-linux-x86.tar
77 exeinto /opt/${PN}
78 doexe *
79
80 cd ${D}/opt/${PN}
81 tar xf ${WORKDIR}/${PN}-data.tar
82
83 cd ${D}
84 # mime magic for gnome by Ed Catmur in bug 141371
85 epatch ${FILESDIR}/mime-magic.patch
86
87 # make sure we install with correct permissions
88 fowners -R root:root /opt/${PN}
89 fperms -R a-x,a+X /opt/googleearth/{xml,res{,ources}}
90 }
91
92 pkg_postinst() {
93 fdo-mime_desktop_database_update
94 fdo-mime_mime_database_update
95 }
96
97
98
99 --
100 gentoo-commits@g.o mailing list