|
Lines 6-18
Link Here
|
| 6 |
|
6 |
|
| 7 |
DESCRIPTION="A 3D interface to the planet" |
7 |
DESCRIPTION="A 3D interface to the planet" |
| 8 |
HOMEPAGE="http://earth.google.com/" |
8 |
HOMEPAGE="http://earth.google.com/" |
| 9 |
SRC_URI="http://dl.google.com/earth/client/current/GoogleEarthLinux.bin" |
|
|
| 10 |
|
9 |
|
| 11 |
LICENSE="googleearth MIT X11 SGI-B-1.1 openssl as-is ZLIB" |
10 |
IUSE="fixati" |
|
|
11 |
|
| 12 |
ATI_FIX_VERSION="8.27.10" |
| 13 |
ATI_URL="https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/64bit/" |
| 14 |
ATI_FILE="ati-driver-installer-${ATI_FIX_VERSION}-x86_64.run" |
| 15 |
GOOGLE_URL="http://dl.google.com/earth/client/current/" |
| 16 |
GOOGLE_FILE="GoogleEarthLinux.bin" |
| 17 |
|
| 18 |
SRC_URI="fixati? (${ATI_URL}${ATI_FILE}) ${GOOGLE_URL}${GOOGLE_FILE}" |
| 19 |
|
| 20 |
LICENSE="googleearth MIT X11 SGI-B-1.1 openssl as-is ZLIB fixati? (ATI)" |
| 12 |
SLOT="0" |
21 |
SLOT="0" |
| 13 |
KEYWORDS="amd64 x86" |
22 |
KEYWORDS="amd64 x86" |
| 14 |
RESTRICT="mirror strip" |
23 |
RESTRICT="mirror strip" |
| 15 |
IUSE="" |
|
|
| 16 |
|
24 |
|
| 17 |
RDEPEND="x86? ( |
25 |
RDEPEND="x86? ( |
| 18 |
media-libs/fontconfig |
26 |
media-libs/fontconfig |
|
Lines 36-43
Link Here
|
| 36 |
|
44 |
|
| 37 |
S="${WORKDIR}" |
45 |
S="${WORKDIR}" |
| 38 |
|
46 |
|
|
|
47 |
pkg_setup() { |
| 48 |
if has_version ">=x11-drivers/ati-drivers-2.28.8"; then |
| 49 |
ewarn "Google Earth does not work with some versions of ATI drivers on amd64." |
| 50 |
ewarn "To install a work around, emerge with fixati use flag." |
| 51 |
fi |
| 52 |
} |
| 53 |
|
| 39 |
src_unpack() { |
54 |
src_unpack() { |
| 40 |
unpack_makeself |
55 |
unpack_makeself ${GOOGLE_FILE} |
| 41 |
# make the postinst script only create the files; it's installation |
56 |
# make the postinst script only create the files; it's installation |
| 42 |
# are too complicated and inserting them ourselves is easier than |
57 |
# are too complicated and inserting them ourselves is easier than |
| 43 |
# hacking around it |
58 |
# hacking around it |
|
Lines 46-51
Link Here
|
| 46 |
-e "s:^xdg-desktop-icon.*$::" \ |
61 |
-e "s:^xdg-desktop-icon.*$::" \ |
| 47 |
-e "s:^xdg-desktop-menu.*$::" \ |
62 |
-e "s:^xdg-desktop-menu.*$::" \ |
| 48 |
-e "s:^xdg-mime.*$::" postinstall.sh |
63 |
-e "s:^xdg-mime.*$::" postinstall.sh |
|
|
64 |
|
| 65 |
if use fixati; then |
| 66 |
ebegin "Unpacking Ati driver to get old libGL" |
| 67 |
mkdir atifix |
| 68 |
sh "${DISTDIR}"/${ATI_FILE} --extract "atifix" &> /dev/null |
| 69 |
eend $? || die "unpack failed" |
| 70 |
fi |
| 49 |
} |
71 |
} |
| 50 |
|
72 |
|
| 51 |
src_install() { |
73 |
src_install() { |
|
Lines 57-62
Link Here
|
| 57 |
doicon ${PN}-icon.png |
79 |
doicon ${PN}-icon.png |
| 58 |
dodoc README.linux |
80 |
dodoc README.linux |
| 59 |
|
81 |
|
|
|
82 |
if use fixati; then |
| 83 |
cp ${WORKDIR}/atifix/arch/x86_64/usr/X11R6/lib/libGL.so.1.2 bin/libGL.so.1 |
| 84 |
fi |
| 85 |
|
| 60 |
cd bin |
86 |
cd bin |
| 61 |
tar xf ${WORKDIR}/${PN}-linux-x86.tar |
87 |
tar xf ${WORKDIR}/${PN}-linux-x86.tar |
| 62 |
exeinto /opt/${PN} |
88 |
exeinto /opt/${PN} |