1 |
caster 09/10/07 13:48:11 |
2 |
|
3 |
Modified: ChangeLog googleearth-5.1.3509.4636_beta.ebuild |
4 |
Log: |
5 |
Depend on gcc-4.2+ and check that it's active in pkg_setup, ewarn otherwise. |
6 |
(Portage version: 2.2_rc44/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.49 x11-misc/googleearth/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/googleearth/ChangeLog?rev=1.49&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/googleearth/ChangeLog?rev=1.49&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/googleearth/ChangeLog?r1=1.48&r2=1.49 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/x11-misc/googleearth/ChangeLog,v |
18 |
retrieving revision 1.48 |
19 |
retrieving revision 1.49 |
20 |
diff -u -r1.48 -r1.49 |
21 |
--- ChangeLog 3 Oct 2009 12:12:54 -0000 1.48 |
22 |
+++ ChangeLog 7 Oct 2009 13:48:10 -0000 1.49 |
23 |
@@ -1,6 +1,11 @@ |
24 |
# ChangeLog for x11-misc/googleearth |
25 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/googleearth/ChangeLog,v 1.48 2009/10/03 12:12:54 caster Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/googleearth/ChangeLog,v 1.49 2009/10/07 13:48:10 caster Exp $ |
28 |
+ |
29 |
+ 07 Oct 2009; Vlastimil Babka <caster@g.o> |
30 |
+ googleearth-5.1.3509.4636_beta.ebuild: |
31 |
+ Depend on gcc-4.2+ and check that it's active in pkg_setup, ewarn |
32 |
+ otherwise. |
33 |
|
34 |
*googleearth-5.1.3509.4636_beta (03 Oct 2009) |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
1.2 x11-misc/googleearth/googleearth-5.1.3509.4636_beta.ebuild |
40 |
|
41 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/googleearth/googleearth-5.1.3509.4636_beta.ebuild?rev=1.2&view=markup |
42 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/googleearth/googleearth-5.1.3509.4636_beta.ebuild?rev=1.2&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/googleearth/googleearth-5.1.3509.4636_beta.ebuild?r1=1.1&r2=1.2 |
44 |
|
45 |
Index: googleearth-5.1.3509.4636_beta.ebuild |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/x11-misc/googleearth/googleearth-5.1.3509.4636_beta.ebuild,v |
48 |
retrieving revision 1.1 |
49 |
retrieving revision 1.2 |
50 |
diff -u -r1.1 -r1.2 |
51 |
--- googleearth-5.1.3509.4636_beta.ebuild 3 Oct 2009 12:12:54 -0000 1.1 |
52 |
+++ googleearth-5.1.3509.4636_beta.ebuild 7 Oct 2009 13:48:10 -0000 1.2 |
53 |
@@ -1,10 +1,10 @@ |
54 |
# Copyright 1999-2009 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/googleearth/googleearth-5.1.3509.4636_beta.ebuild,v 1.1 2009/10/03 12:12:54 caster Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/googleearth/googleearth-5.1.3509.4636_beta.ebuild,v 1.2 2009/10/07 13:48:10 caster Exp $ |
58 |
|
59 |
EAPI=2 |
60 |
|
61 |
-inherit eutils fdo-mime |
62 |
+inherit eutils fdo-mime versionator toolchain-funcs |
63 |
|
64 |
DESCRIPTION="A 3D interface to the planet" |
65 |
HOMEPAGE="http://earth.google.com/" |
66 |
@@ -19,7 +19,9 @@ |
67 |
RESTRICT="mirror strip" |
68 |
IUSE="" |
69 |
|
70 |
-RDEPEND=" |
71 |
+GCC_NEEDED="4.2" |
72 |
+ |
73 |
+RDEPEND=">=sys-devel/gcc-${GCC_NEEDED}[-nocxx] |
74 |
x86? ( |
75 |
media-libs/fontconfig |
76 |
media-libs/freetype |
77 |
@@ -65,6 +67,16 @@ |
78 |
|
79 |
QA_DT_HASH="opt/${PN}/.*" |
80 |
|
81 |
+pkg_setup() { |
82 |
+ GCC_VER="$(gcc-version)" |
83 |
+ if ! version_is_at_least ${GCC_NEEDED} ${GCC_VER}; then |
84 |
+ ewarn "${PN} needs libraries from gcc-${GCC_NEEDED} or higher to run" |
85 |
+ ewarn "Your active gcc version is only ${GCC_VER}" |
86 |
+ ewarn "Please consult the GCC upgrade guide to set a higher version:" |
87 |
+ ewarn "http://www.gentoo.org/doc/en/gcc-upgrading.xml" |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
src_unpack() { |
92 |
unpack_makeself |
93 |
} |