1 |
alexxy 10/12/02 21:49:54 |
2 |
|
3 |
Modified: kde4-base.eclass kde4-functions.eclass |
4 |
kde4-meta.eclass |
5 |
Log: |
6 |
Update eclasses for kde |
7 |
|
8 |
Revision Changes Path |
9 |
1.78 eclass/kde4-base.eclass |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-base.eclass?rev=1.78&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-base.eclass?rev=1.78&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-base.eclass?r1=1.77&r2=1.78 |
14 |
|
15 |
Index: kde4-base.eclass |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v |
18 |
retrieving revision 1.77 |
19 |
retrieving revision 1.78 |
20 |
diff -u -r1.77 -r1.78 |
21 |
--- kde4-base.eclass 24 Nov 2010 23:54:55 -0000 1.77 |
22 |
+++ kde4-base.eclass 2 Dec 2010 21:49:54 -0000 1.78 |
23 |
@@ -1,6 +1,6 @@ |
24 |
# Copyright 1999-2010 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.77 2010/11/24 23:54:55 dilfridge Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.78 2010/12/02 21:49:54 alexxy Exp $ |
28 |
|
29 |
# @ECLASS: kde4-base.eclass |
30 |
# @MAINTAINER: |
31 |
@@ -13,7 +13,20 @@ |
32 |
# NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but |
33 |
# eclass will fail with version older than 2. |
34 |
|
35 |
-inherit kde4-functions base eutils |
36 |
+# @ECLASS-VARIABLE: VIRTUALX_REQUIRED |
37 |
+# @DESCRIPTION: |
38 |
+# Do we need an X server? Valid values are "always", "optional", and "manual". |
39 |
+# "tests" is a synonym for "optional". While virtualx.eclass supports in principle |
40 |
+# also the use of an X server during other ebuild phases, we only use it in |
41 |
+# src_test here. Most likely you'll want to set "optional", which introduces the |
42 |
+# use-flag "test" (if not already present), adds dependencies conditional on that |
43 |
+# use-flag, and automatically runs (only) the ebuild test phase with a virtual X server |
44 |
+# present. This makes things a lot more comfortable than the bare virtualx eclass. |
45 |
+ |
46 |
+# In case the variable is not set in the ebuild, let virtualx eclass not do anything |
47 |
+: ${VIRTUALX_REQUIRED:=manual} |
48 |
+ |
49 |
+inherit kde4-functions base virtualx eutils |
50 |
|
51 |
get_build_type |
52 |
if [[ ${BUILD_TYPE} = live ]]; then |
53 |
@@ -113,6 +126,18 @@ |
54 |
unset buildsystem_eclass |
55 |
unset export_fns |
56 |
|
57 |
+# @ECLASS-VARIABLE: DECLARATIVE_REQUIRED |
58 |
+# @DESCRIPTION: |
59 |
+# Is qt-declarative required? Possible values are 'always', 'optional' and 'never'. |
60 |
+# This variable must be set before inheriting any eclasses. Defaults to 'never'. |
61 |
+DECLARATIVE_REQUIRED="${DECLARATIVE_REQUIRED:-never}" |
62 |
+ |
63 |
+# @ECLASS-VARIABLE: QTHELP_REQUIRED |
64 |
+# @DESCRIPTION: |
65 |
+# Is qt-assistant required? Possible values are 'always', 'optional' and 'never'. |
66 |
+# This variable must be set before inheriting any eclasses. Defaults to 'never'. |
67 |
+QTHELP_REQUIRED="${QTHELP_REQUIRED:-never}" |
68 |
+ |
69 |
# @ECLASS-VARIABLE: OPENGL_REQUIRED |
70 |
# @DESCRIPTION: |
71 |
# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. |
72 |
@@ -192,13 +217,46 @@ |
73 |
# @ECLASS-VARIABLE: QT_MINIMAL |
74 |
# @DESCRIPTION: |
75 |
# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1... |
76 |
-# 4.6.0 for 4.4 and 4.6.3 for 4.5 and later |
77 |
-if slot_is_at_least 4.5 "${KDE_MINIMAL}"; then |
78 |
+# 4.6.0 for 4.4, 4.6.3 for 4.5, and 4.7.0 for 4.6 and later |
79 |
+if slot_is_at_least 4.6 "${KDE_MINIMAL}"; then |
80 |
+ QT_MINIMAL="${QT_MINIMAL:-4.7.0}" |
81 |
+elif slot_is_at_least 4.5 "${KDE_MINIMAL}"; then |
82 |
QT_MINIMAL="${QT_MINIMAL:-4.6.3}" |
83 |
else |
84 |
QT_MINIMAL="${QT_MINIMAL:-4.6.0}" |
85 |
fi |
86 |
|
87 |
+# Declarative dependencies |
88 |
+qtdeclarativedepend=" |
89 |
+ >=x11-libs/qt-declarative-${QT_MINIMAL}:4 |
90 |
+" |
91 |
+case ${DECLARATIVE_REQUIRED} in |
92 |
+ always) |
93 |
+ COMMONDEPEND+=" ${qtdeclarativedepend}" |
94 |
+ ;; |
95 |
+ optional) |
96 |
+ IUSE+=" declarative" |
97 |
+ COMMONDEPEND+=" declarative? ( ${qtdeclarativedepend} )" |
98 |
+ ;; |
99 |
+ *) ;; |
100 |
+esac |
101 |
+unset qtdeclarativedepend |
102 |
+ |
103 |
+# QtHelp dependencies |
104 |
+qthelpdepend=" |
105 |
+ >=x11-libs/qt-assistant-${QT_MINIMAL}:4 |
106 |
+" |
107 |
+case ${QTHELP_REQUIRED} in |
108 |
+ always) |
109 |
+ COMMONDEPEND+=" ${qthelpdepend}" |
110 |
+ ;; |
111 |
+ optional) |
112 |
+ IUSE+=" qthelp" |
113 |
+ COMMONDEPEND+=" qthelp? ( ${qthelpdepend} )" |
114 |
+ ;; |
115 |
+esac |
116 |
+unset qthelpdepend |
117 |
+ |
118 |
# OpenGL dependencies |
119 |
qtopengldepend=" |
120 |
>=x11-libs/qt-opengl-${QT_MINIMAL}:4 |
121 |
@@ -454,7 +512,7 @@ |
122 |
fi |
123 |
case ${KDEBASE} in |
124 |
kdevelop) |
125 |
- EGIT_REPO_URI="git://gitorious.org/${KMNAME}/${KMMODULE}.git" |
126 |
+ EGIT_REPO_URI="git://git.kde.org/${KMMODULE}" |
127 |
;; |
128 |
esac |
129 |
fi |
130 |
@@ -656,8 +714,27 @@ |
131 |
load_library_dependencies |
132 |
fi |
133 |
|
134 |
+ # Replace KDE4Workspace library targets |
135 |
+ find "${S}" -name CMakeLists.txt \ |
136 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_TASKMANAGER_(LIBRARY|LIBS)\}/taskmanager/g' {} + \ |
137 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KWORKSPACE_(LIBRARY|LIBS)\}/kworkspace/g' {} + \ |
138 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROLIFACES_(LIBRARY|LIBS)\}/solidcontrolifaces/g' {} + \ |
139 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROL_(LIBRARY|LIBS)\}/solidcontrol/g' {} + \ |
140 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_PROCESSUI_(LIBRARY|LIBS)\}/processui/g' {} + \ |
141 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_LSOFUI_(LIBRARY|LIBS)\}/lsofui/g' {} + \ |
142 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_PLASMACLOCK_(LIBRARY|LIBS)\}/plasmaclock/g' {} + \ |
143 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERYCLIENT_(LIBRARY|LIBS)\}/nepomukqueryclient/g' {} + \ |
144 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERY_(LIBRARY|LIBS)\}/nepomukquery/g' {} + \ |
145 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KSCREENSAVER_(LIBRARY|LIBS)\}/kscreensaver/g' {} + \ |
146 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_WEATHERION_(LIBRARY|LIBS)\}/weather_ion/g' {} + \ |
147 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KWINEFFECTS_(LIBRARY|LIBS)\}/kwineffects/g' {} + \ |
148 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KDECORATIONS_(LIBRARY|LIBS)\}/kdecorations/g' {} + \ |
149 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KSGRD_(LIBRARY|LIBS)\}/ksgrd/g' {} + \ |
150 |
+ -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KEPHAL_(LIBRARY|LIBS)\}/kephal/g' {} + \ |
151 |
+ || die 'failed to replace KDE4Workspace library targets' |
152 |
+ |
153 |
# Hack for manuals relying on outdated DTD, only outside kde-base/koffice/... |
154 |
- if [ -z ${KDEBASE} ]; then |
155 |
+ if [[ -z ${KDEBASE} ]]; then |
156 |
find "${S}" -name "*.docbook" \ |
157 |
-exec sed -i -r \ |
158 |
-e 's:-//KDE//DTD DocBook XML V4\.1(\..)?-Based Variant V1\.[01]//EN:-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN:g' {} + \ |
159 |
@@ -755,7 +832,21 @@ |
160 |
cmake-utils_src_configure |
161 |
kde4-base_src_compile |
162 |
|
163 |
- cmake-utils_src_test |
164 |
+ if [[ ${VIRTUALX_REQUIRED} == always ]] || |
165 |
+ ( [[ ${VIRTUALX_REQUIRED} != manual ]] && use test ); then |
166 |
+ |
167 |
+ if [[ ${maketype} ]]; then |
168 |
+ # surprise- we are already INSIDE virtualmake!!! |
169 |
+ ewarn "QA Notice: This version of kde4-base.eclass includes the virtualx functionality." |
170 |
+ ewarn " You may NOT set maketype or call virtualmake from the ebuild. Applying workaround." |
171 |
+ cmake-utils_src_test |
172 |
+ else |
173 |
+ export maketype="cmake-utils_src_test" |
174 |
+ virtualmake |
175 |
+ fi |
176 |
+ else |
177 |
+ cmake-utils_src_test |
178 |
+ fi |
179 |
} |
180 |
|
181 |
# @FUNCTION: kde4-base_src_install |
182 |
|
183 |
|
184 |
|
185 |
1.37 eclass/kde4-functions.eclass |
186 |
|
187 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-functions.eclass?rev=1.37&view=markup |
188 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-functions.eclass?rev=1.37&content-type=text/plain |
189 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-functions.eclass?r1=1.36&r2=1.37 |
190 |
|
191 |
Index: kde4-functions.eclass |
192 |
=================================================================== |
193 |
RCS file: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v |
194 |
retrieving revision 1.36 |
195 |
retrieving revision 1.37 |
196 |
diff -u -r1.36 -r1.37 |
197 |
--- kde4-functions.eclass 24 Oct 2010 15:56:03 -0000 1.36 |
198 |
+++ kde4-functions.eclass 2 Dec 2010 21:49:54 -0000 1.37 |
199 |
@@ -1,6 +1,6 @@ |
200 |
# Copyright 1999-2010 Gentoo Foundation |
201 |
# Distributed under the terms of the GNU General Public License v2 |
202 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.36 2010/10/24 15:56:03 tampakrap Exp $ |
203 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.37 2010/12/02 21:49:54 alexxy Exp $ |
204 |
|
205 |
inherit versionator |
206 |
|
207 |
@@ -136,7 +136,7 @@ |
208 |
enable_selected_linguas() { |
209 |
debug-print-function ${FUNCNAME} "$@" |
210 |
|
211 |
- local lingua linguas sr_mess wp |
212 |
+ local x |
213 |
|
214 |
# if there is no linguas defined we enable everything |
215 |
if ! $(env | grep -q "^LINGUAS="); then |
216 |
@@ -146,49 +146,18 @@ |
217 |
# @ECLASS-VARIABLE: KDE_LINGUAS_DIR |
218 |
# @DESCRIPTION: |
219 |
# Specified folder where application translations are located. |
220 |
- KDE_LINGUAS_DIR=${KDE_LINGUAS_DIR:="po"} |
221 |
- [[ -d "${KDE_LINGUAS_DIR}" ]] || die "wrong linguas dir specified" |
222 |
- comment_all_add_subdirectory "${KDE_LINGUAS_DIR}" |
223 |
- pushd "${KDE_LINGUAS_DIR}" > /dev/null |
224 |
- |
225 |
- # fix all various crazy sr@Latn variations |
226 |
- # this part is only ease for ebuilds, so there wont be any die when this |
227 |
- # fail at any point |
228 |
- sr_mess="sr@latn sr@latin sr@Latin" |
229 |
- for wp in ${sr_mess}; do |
230 |
- [[ -e "${wp}.po" ]] && mv "${wp}.po" "sr@××××.po" |
231 |
- if [[ -d "${wp}" ]]; then |
232 |
- # move dir and fix cmakelists |
233 |
- mv "${wp}" "sr@Latn" |
234 |
- sed -i \ |
235 |
- -e "s:${wp}:sr@Latin:g" \ |
236 |
- CMakeLists.txt |
237 |
- fi |
238 |
- done |
239 |
- |
240 |
- for lingua in ${KDE_LINGUAS}; do |
241 |
- if [[ -e "${lingua}.po" ]]; then |
242 |
- mv "${lingua}.po" "${lingua}.po.old" |
243 |
- fi |
244 |
- done |
245 |
- |
246 |
- for lingua in ${KDE_LINGUAS}; do |
247 |
- if use linguas_${lingua} ; then |
248 |
- if [[ -d "${lingua}" ]]; then |
249 |
- linguas="${linguas} ${lingua}" |
250 |
- sed -e "/add_subdirectory([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ |
251 |
- -e "/ADD_SUBDIRECTORY([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ |
252 |
- -i CMakeLists.txt || die "Sed to uncomment linguas_${lingua} failed." |
253 |
- fi |
254 |
- if [[ -e "${lingua}.po.old" ]]; then |
255 |
- linguas="${linguas} ${lingua}" |
256 |
- mv "${lingua}.po.old" "${lingua}.po" |
257 |
- fi |
258 |
- fi |
259 |
- done |
260 |
- [[ -n "${linguas}" ]] && einfo "Enabling languages: ${linguas}" |
261 |
- |
262 |
- popd > /dev/null |
263 |
+ # Can be defined as array of folders where translations are located. |
264 |
+ # Note that space separated list of dirs is not supported. |
265 |
+ # Default value is set to "po". |
266 |
+ if [[ "$(declare -p KDE_LINGUAS_DIR 2>/dev/null 2>&1)" == "declare -a"* ]]; then |
267 |
+ debug-print "$FUNCNAME: we have these subfolders defined: ${KDE_LINGUAS_DIR}" |
268 |
+ for x in "${KDE_LINGUAS_DIR[@]}"; do |
269 |
+ _enable_selected_linguas_dir ${x} |
270 |
+ done |
271 |
+ else |
272 |
+ KDE_LINGUAS_DIR=${KDE_LINGUAS_DIR:="po"} |
273 |
+ _enable_selected_linguas_dir ${KDE_LINGUAS_DIR} |
274 |
+ fi |
275 |
} |
276 |
|
277 |
# @FUNCTION: enable_selected_doc_linguas |
278 |
@@ -388,6 +357,52 @@ |
279 |
RDEPEND+=" $(_do_blocker "$@")" |
280 |
} |
281 |
|
282 |
+# @FUNCTION: add_kdebase_dep |
283 |
+# @DESCRIPTION: |
284 |
+# Create proper dependency for kde-base/ dependencies, |
285 |
+# adding SLOT when needed (and *only* when needed). |
286 |
+# This takes 1 or 2 arguments. The first being the package |
287 |
+# name, the optional second, is additional USE flags to append. |
288 |
+# The output of this should be added directly to DEPEND/RDEPEND, and |
289 |
+# may be wrapped in a USE conditional (but not an || conditional |
290 |
+# without an extra set of parentheses). |
291 |
+add_kdebase_dep() { |
292 |
+ debug-print-function ${FUNCNAME} "$@" |
293 |
+ |
294 |
+ [[ -z ${1} ]] && die "Missing parameter" |
295 |
+ |
296 |
+ local use=${2:+,${2}} |
297 |
+ |
298 |
+ if [[ ${KDEBASE} = kde-base ]]; then |
299 |
+ # FIXME remove hack when kdepim-4.4.{6,7} is gone |
300 |
+ local FIXME_PV |
301 |
+ if [[ ${KMNAME} = kdepim || ${PN} = kdepim-runtime ]] && [[ ${PV} = 4.4.6* || ${PV} = 4.4.7* ]] && [[ ${1} = kdelibs || ${1} = kdepimlibs ]]; then |
302 |
+ FIXME_PV=4.4.5 |
303 |
+ else |
304 |
+ FIXME_PV=${PV} |
305 |
+ fi |
306 |
+ |
307 |
+ # if building stable-live version depend just on slot |
308 |
+ # to allow merging packages against more stable basic stuff |
309 |
+ case ${PV} in |
310 |
+ *.9999*) |
311 |
+ echo " !kdeprefix? ( >=kde-base/${1}-${SLOT}[aqua=,-kdeprefix${use}] )" |
312 |
+ echo " kdeprefix? ( >=kde-base/${1}-${SLOT}:${SLOT}[aqua=,kdeprefix${use}] )" |
313 |
+ ;; |
314 |
+ *) |
315 |
+ echo " !kdeprefix? ( >=kde-base/${1}-${FIXME_PV}[aqua=,-kdeprefix${use}] )" |
316 |
+ echo " kdeprefix? ( >=kde-base/${1}-${FIXME_PV}:${SLOT}[aqua=,kdeprefix${use}] )" |
317 |
+ ;; |
318 |
+ esac |
319 |
+ else |
320 |
+ if [[ ${KDE_MINIMAL} = live ]]; then |
321 |
+ echo " kde-base/${1}:${KDE_MINIMAL}[aqua=${use}]" |
322 |
+ else |
323 |
+ echo " >=kde-base/${1}-${KDE_MINIMAL}[aqua=${use}]" |
324 |
+ fi |
325 |
+ fi |
326 |
+} |
327 |
+ |
328 |
# _greater_max_in_slot ver slot |
329 |
# slot must be 4.x or live |
330 |
# returns true if ver is >= the maximum possibile version in slot |
331 |
@@ -501,37 +516,52 @@ |
332 |
fi |
333 |
} |
334 |
|
335 |
-# @FUNCTION: add_kdebase_dep |
336 |
-# @DESCRIPTION: |
337 |
-# Create proper dependency for kde-base/ dependencies, |
338 |
-# adding SLOT when needed (and *only* when needed). |
339 |
-# This takes 1 or 2 arguments. The first being the package |
340 |
-# name, the optional second, is additional USE flags to append. |
341 |
-# The output of this should be added directly to DEPEND/RDEPEND, and |
342 |
-# may be wrapped in a USE conditional (but not an || conditional |
343 |
-# without an extra set of parentheses). |
344 |
-add_kdebase_dep() { |
345 |
- debug-print-function ${FUNCNAME} "$@" |
346 |
+# local function to enable specified translations for specified directory |
347 |
+# used from kde4-functions_enable_selected_linguas function |
348 |
+_enable_selected_linguas_dir() { |
349 |
+ local lingua linguas sr_mess wp |
350 |
+ local dir=${1} |
351 |
|
352 |
- [[ -z ${1} ]] && die "Missing parameter" |
353 |
+ [[ -d "${dir}" ]] || die "linguas dir \"${dir}\" does not exist" |
354 |
+ comment_all_add_subdirectory "${dir}" |
355 |
+ pushd "${dir}" > /dev/null |
356 |
|
357 |
- local use=${2:+,${2}} |
358 |
+ # fix all various crazy sr@Latn variations |
359 |
+ # this part is only ease for ebuilds, so there wont be any die when this |
360 |
+ # fail at any point |
361 |
+ sr_mess="sr@latn sr@latin sr@Latin" |
362 |
+ for wp in ${sr_mess}; do |
363 |
+ [[ -e "${wp}.po" ]] && mv "${wp}.po" "sr@××××.po" |
364 |
+ if [[ -d "${wp}" ]]; then |
365 |
+ # move dir and fix cmakelists |
366 |
+ mv "${wp}" "sr@Latn" |
367 |
+ sed -i \ |
368 |
+ -e "s:${wp}:sr@Latin:g" \ |
369 |
+ CMakeLists.txt |
370 |
+ fi |
371 |
+ done |
372 |
|
373 |
- if [[ ${KDEBASE} = kde-base ]]; then |
374 |
- # FIXME remove hack when kdepim-4.4.{6,7} is gone |
375 |
- local FIXME_PV |
376 |
- if [[ ${KMNAME} = kdepim || ${PN} = kdepim-runtime ]] && [[ ${PV} = 4.4.6* || ${PV} = 4.4.7* ]] && [[ ${1} = kdelibs || ${1} = kdepimlibs ]]; then |
377 |
- FIXME_PV=4.4.5 |
378 |
- else |
379 |
- FIXME_PV=${PV} |
380 |
+ for lingua in ${KDE_LINGUAS}; do |
381 |
+ if [[ -e "${lingua}.po" ]]; then |
382 |
+ mv "${lingua}.po" "${lingua}.po.old" |
383 |
fi |
384 |
- echo " !kdeprefix? ( >=kde-base/${1}-${FIXME_PV}[aqua=,-kdeprefix${use}] )" |
385 |
- echo " kdeprefix? ( >=kde-base/${1}-${FIXME_PV}:${SLOT}[aqua=,kdeprefix${use}] )" |
386 |
- else |
387 |
- if [[ ${KDE_MINIMAL} = live ]]; then |
388 |
- echo " kde-base/${1}:${KDE_MINIMAL}[aqua=${use}]" |
389 |
- else |
390 |
- echo " >=kde-base/${1}-${KDE_MINIMAL}[aqua=${use}]" |
391 |
+ done |
392 |
+ |
393 |
+ for lingua in ${KDE_LINGUAS}; do |
394 |
+ if use linguas_${lingua} ; then |
395 |
+ if [[ -d "${lingua}" ]]; then |
396 |
+ linguas="${linguas} ${lingua}" |
397 |
+ sed -e "/add_subdirectory([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ |
398 |
+ -e "/ADD_SUBDIRECTORY([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ |
399 |
+ -i CMakeLists.txt || die "Sed to uncomment linguas_${lingua} failed." |
400 |
+ fi |
401 |
+ if [[ -e "${lingua}.po.old" ]]; then |
402 |
+ linguas="${linguas} ${lingua}" |
403 |
+ mv "${lingua}.po.old" "${lingua}.po" |
404 |
+ fi |
405 |
fi |
406 |
- fi |
407 |
+ done |
408 |
+ [[ -n "${linguas}" ]] && echo ">>> Enabling languages: ${linguas}" |
409 |
+ |
410 |
+ popd > /dev/null |
411 |
} |
412 |
|
413 |
|
414 |
|
415 |
1.44 eclass/kde4-meta.eclass |
416 |
|
417 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-meta.eclass?rev=1.44&view=markup |
418 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-meta.eclass?rev=1.44&content-type=text/plain |
419 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kde4-meta.eclass?r1=1.43&r2=1.44 |
420 |
|
421 |
Index: kde4-meta.eclass |
422 |
=================================================================== |
423 |
RCS file: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v |
424 |
retrieving revision 1.43 |
425 |
retrieving revision 1.44 |
426 |
diff -u -r1.43 -r1.44 |
427 |
--- kde4-meta.eclass 15 Sep 2010 11:06:33 -0000 1.43 |
428 |
+++ kde4-meta.eclass 2 Dec 2010 21:49:54 -0000 1.44 |
429 |
@@ -1,6 +1,6 @@ |
430 |
# Copyright 1999-2010 Gentoo Foundation |
431 |
# Distributed under the terms of the GNU General Public License v2 |
432 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.43 2010/09/15 11:06:33 reavertm Exp $ |
433 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.44 2010/12/02 21:49:54 alexxy Exp $ |
434 |
# |
435 |
# @ECLASS: kde4-meta.eclass |
436 |
# @MAINTAINER: |
437 |
@@ -356,16 +356,23 @@ |
438 |
;; |
439 |
koffice) |
440 |
KMEXTRACTONLY+=" |
441 |
- config-endian.h.cmake |
442 |
filters/config-filters.h.cmake |
443 |
- config-openexr.h.cmake |
444 |
- config-opengl.h.cmake |
445 |
- config-prefix.h.cmake |
446 |
" |
447 |
case ${PV} in |
448 |
2.0.*) |
449 |
KMEXTRACTONLY+=" |
450 |
- config-openctl.h.cmake" |
451 |
+ config-openctl.h.cmake |
452 |
+ config-endian.h.cmake |
453 |
+ config-openexr.h.cmake |
454 |
+ config-opengl.h.cmake |
455 |
+ config-prefix.h.cmake" |
456 |
+ ;; |
457 |
+ 2.[12].*) |
458 |
+ KMEXTRACTONLY+=" |
459 |
+ config-endian.h.cmake |
460 |
+ config-openexr.h.cmake |
461 |
+ config-opengl.h.cmake |
462 |
+ config-prefix.h.cmake" |
463 |
;; |
464 |
esac |
465 |
;; |