Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 581382
Collapse All | Expand All

(-)a/eclass/kde5.eclass (-7 / +17 lines)
Lines 19-25 Link Here
19
# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
19
# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
20
: ${VIRTUALX_REQUIRED:=manual}
20
: ${VIRTUALX_REQUIRED:=manual}
21
21
22
inherit cmake-utils eutils flag-o-matic gnome2-utils kde5-functions versionator virtualx xdg
22
PLOCALES="ar bg bs ca ca@valencia cs da de el en_GB eo es et eu fa fi fr ga gl
23
he hi hr hu ia id is it ja kk km ko lt lv mr nb nds nl nn pa pl pt pt_BR ro ru
24
sk sl sr sv tr ug uk wa zh_CN zh_TW"
25
inherit cmake-utils eutils flag-o-matic gnome2-utils kde5-functions versionator virtualx xdg l10n
23
26
24
if [[ ${KDE_BUILD_TYPE} = live ]]; then
27
if [[ ${KDE_BUILD_TYPE} = live ]]; then
25
	case ${KDE_SCM} in
28
	case ${KDE_SCM} in
Lines 401-413 Link Here
401
	if [[ -d po ]] ; then
404
	if [[ -d po ]] ; then
402
		pushd po > /dev/null || die
405
		pushd po > /dev/null || die
403
		for lang in *; do
406
		for lang in *; do
404
			if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then
407
			lingua="linguas_${lang}"
405
				rm -r ${lang} || die
408
			if [[ -d ${lang} ]] ; then
406
				if [[ -e CMakeLists.txt ]] ; then
409
				if ! has ${lingua} ${IUSE_EFFECTIVE} || ! use ${lingua} ; then
407
					cmake_comment_add_subdirectory ${lang}
410
					einfo "removing language dir ${lang}"
411
					rm -r ${lang} || die
412
					if [[ -e CMakeLists.txt ]] ; then
413
						cmake_comment_add_subdirectory ${lang}
414
					fi
408
				fi
415
				fi
409
			elif ! has ${lang/.po/} ${LINGUAS} ; then
416
			elif ! has ${lingua/.po} ${IUSE_EFFECTIVE} || ! use ${lingua/.po/}  ; then
410
				if [[ ${lang} != CMakeLists.txt ]] ; then
417
				if [[ ${lang} != CMakeLists.txt ]] ; then
418
					einfo "removing language file ${lang}"
411
					rm ${lang} || die
419
					rm ${lang} || die
412
				fi
420
				fi
413
			fi
421
			fi
Lines 419-425 Link Here
419
		if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && ${CATEGORY} != kde-apps ]] ; then
427
		if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && ${CATEGORY} != kde-apps ]] ; then
420
			pushd ${KDE_DOC_DIR} > /dev/null || die
428
			pushd ${KDE_DOC_DIR} > /dev/null || die
421
			for lang in *; do
429
			for lang in *; do
422
				if ! has ${lang} ${LINGUAS} ; then
430
				lingua="linguas_${lang}"
431
				if ! has ${lingua} ${IUSE_EFFECTIVE} || ! use ${lingua} ; then
432
					einfo "removing doc dir ${lang}"
423
					cmake_comment_add_subdirectory ${lang}
433
					cmake_comment_add_subdirectory ${lang}
424
				fi
434
				fi
425
			done
435
			done

Return to bug 581382