Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: kde4-base.eclass kde4-meta.eclass
Date: Sun, 01 May 2011 13:52:19
Message-Id: 20110501135209.C2AFB20054@flycatcher.gentoo.org
1 scarabeus 11/05/01 13:52:09
2
3 Modified: kde4-base.eclass kde4-meta.eclass
4 Log:
5 Rework the gcc checkup to be less time consuming and move to git-2 eclass
6
7 Revision Changes Path
8 1.91 eclass/kde4-base.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-base.eclass?rev=1.91&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-base.eclass?rev=1.91&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-base.eclass?r1=1.90&r2=1.91
13
14 Index: kde4-base.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v
17 retrieving revision 1.90
18 retrieving revision 1.91
19 diff -u -r1.90 -r1.91
20 --- kde4-base.eclass 22 Apr 2011 18:48:03 -0000 1.90
21 +++ kde4-base.eclass 1 May 2011 13:52:09 -0000 1.91
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2010 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.90 2011/04/22 18:48:03 abcd Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.91 2011/05/01 13:52:09 scarabeus Exp $
27
28 # @ECLASS: kde4-base.eclass
29 # @MAINTAINER:
30 @@ -20,12 +20,12 @@
31 # for tests you should proceed with setting VIRTUALX_REQUIRED=test.
32 : ${VIRTUALX_REQUIRED:=manual}
33
34 -inherit kde4-functions fdo-mime gnome2-utils base virtualx versionator eutils
35 +inherit kde4-functions toolchain-funcs fdo-mime gnome2-utils base virtualx versionator eutils
36
37 if [[ ${BUILD_TYPE} = live ]]; then
38 case ${KDE_SCM} in
39 svn) inherit subversion ;;
40 - git) inherit git ;;
41 + git) inherit git-2 ;;
42 esac
43 fi
44
45 @@ -385,7 +385,7 @@
46 # this can't be done on one line because if user doesn't use any localisation
47 # then he is probably not interested in kde-l10n at all.
48 kderdepend+="
49 - linguas_${_lingua}? ( $(add_kdebase_dep kde-l10n "linguas_${_lingua}(+)?") )
50 + linguas_${_lingua}? ( $(add_kdebase_dep kde-l10n "linguas_${_lingua}(+)") )
51 "
52 done
53 unset _lingua
54 @@ -608,18 +608,7 @@
55 ;;
56 esac
57
58 - case $_kmname in
59 - kdepim|kdepim-runtime)
60 - case ${PV} in
61 - # kdepim still did not branch
62 - 4.6.9999)
63 - EGIT_BRANCH="master"
64 - ;;
65 - esac
66 - ;;
67 - esac
68 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}"
69 - EGIT_PROJECT="${_kmname}"
70
71 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}"
72 debug-print "${FUNCNAME}: Branch: ${EGIT_BRANCH}"
73 @@ -653,6 +642,14 @@
74 # Don't set KDEHOME during compilation, it will cause access violations
75 unset KDEHOME
76
77 + # Check if gcc compiler is fresh enough.
78 + # In theory should be in pkg_pretend but we check it only for kdelibs there
79 + # and for others we do just quick scan in pkg_setup because pkg_pretend
80 + # executions consume quite some time.
81 + [[ $(gcc-major-version) -lt 4 ]] || \
82 + ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \
83 + && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)."
84 +
85 if [[ ${KDEBASE} = kde-base ]]; then
86 if use kdeprefix; then
87 KDEDIR=/usr/kde/${SLOT}
88 @@ -710,7 +707,7 @@
89 subversion_src_unpack
90 ;;
91 git)
92 - git_src_unpack
93 + git-2_src_unpack
94 ;;
95 esac
96 else
97
98
99
100 1.52 eclass/kde4-meta.eclass
101
102 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-meta.eclass?rev=1.52&view=markup
103 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-meta.eclass?rev=1.52&content-type=text/plain
104 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-meta.eclass?r1=1.51&r2=1.52
105
106 Index: kde4-meta.eclass
107 ===================================================================
108 RCS file: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v
109 retrieving revision 1.51
110 retrieving revision 1.52
111 diff -u -r1.51 -r1.52
112 --- kde4-meta.eclass 6 Apr 2011 14:22:14 -0000 1.51
113 +++ kde4-meta.eclass 1 May 2011 13:52:09 -0000 1.52
114 @@ -1,6 +1,6 @@
115 # Copyright 1999-2011 Gentoo Foundation
116 # Distributed under the terms of the GNU General Public License v2
117 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.51 2011/04/06 14:22:14 scarabeus Exp $
118 +# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.52 2011/05/01 13:52:09 scarabeus Exp $
119 #
120 # @ECLASS: kde4-meta.eclass
121 # @MAINTAINER:
122 @@ -14,16 +14,9 @@
123
124 [[ -z ${KMNAME} ]] && die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild"
125
126 -inherit kde4-base toolchain-funcs versionator
127 +inherit kde4-base versionator
128
129 -case ${EAPI:-0} in
130 - 3)
131 - KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm"
132 - ;;
133 - *)
134 - KDEMETA_EXPF="pkg_pretend pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm"
135 - ;;
136 -esac
137 +KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm"
138 EXPORT_FUNCTIONS ${KDEMETA_EXPF}
139
140 # Add dependencies that all packages in a certain module share.
141 @@ -137,17 +130,6 @@
142 # Specify extra parameters to pass to tar, in kde4-meta_src_extract.
143 # '-xpf -j' are passed to tar by default.
144
145 -# @FUNCTION: kde4-meta_pkg_pretend
146 -# @DESCRIPTION:
147 -# Currently only checks the gcc version.
148 -kde4-meta_pkg_pretend() {
149 - debug-print-function ${FUNCNAME} "$@"
150 -
151 - slot_is_at_least 4.6 ${SLOT} && ( [[ $(gcc-major-version) -lt 4 ]] || \
152 - ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) ) \
153 - && die "Sorry, but gcc-4.3 and earlier wont work for KDE SC 4.6 (see bug 354837)."
154 -}
155 -
156 # @FUNCTION: kde4-meta_pkg_setup
157 # @DESCRIPTION:
158 # Currently calls its equivalent in kde4-base.eclass(5) and checks the gcc version.
159 @@ -155,8 +137,6 @@
160 kde4-meta_pkg_setup() {
161 debug-print-function ${FUNCNAME} "$@"
162
163 - has pkg_pretend ${KDEMETA_EXPF} || kde4-meta_pkg_pretend
164 -
165 kde4-base_pkg_setup
166 }
167
168 @@ -178,7 +158,7 @@
169 subversion_bootstrap
170 ;;
171 git)
172 - git_src_unpack
173 + git-2_src_unpack
174 ;;
175 esac
176 fi