Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 432284 Details for
Bug 581382
kde5.eclass: expects LINGUAS to be an environment variable
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
example patch to use linguas
kde5-linguas.patch (text/plain), 1.90 KB, created by
Thomas Berger
on 2016-04-27 17:02:42 UTC
(
hide
)
Description:
example patch to use linguas
Filename:
MIME Type:
Creator:
Thomas Berger
Created:
2016-04-27 17:02:42 UTC
Size:
1.90 KB
patch
obsolete
>--- a/eclass/kde5.eclass 2016-04-27 16:50:10.365088989 +0200 >+++ b/eclass/kde5.eclass 2016-04-27 18:32:12.289757512 +0200 >@@ -19,7 +19,10 @@ > # for tests you should proceed with setting VIRTUALX_REQUIRED=test. > : ${VIRTUALX_REQUIRED:=manual} > >-inherit cmake-utils eutils flag-o-matic gnome2-utils kde5-functions versionator virtualx xdg >+PLOCALES="ar bg bs ca ca@valencia cs da de el en_GB eo es et eu fa fi fr ga gl >+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 >+sk sl sr sv tr ug uk wa zh_CN zh_TW" >+inherit cmake-utils eutils flag-o-matic gnome2-utils kde5-functions versionator virtualx xdg l10n > > if [[ ${KDE_BUILD_TYPE} = live ]]; then > case ${KDE_SCM} in >@@ -401,13 +404,18 @@ > if [[ -d po ]] ; then > pushd po > /dev/null || die > for lang in *; do >- if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then >- rm -r ${lang} || die >- if [[ -e CMakeLists.txt ]] ; then >- cmake_comment_add_subdirectory ${lang} >+ lingua="linguas_${lang}" >+ if [[ -d ${lang} ]] ; then >+ if ! has ${lingua} ${IUSE_EFFECTIVE} || ! use ${lingua} ; then >+ einfo "removing language dir ${lang}" >+ rm -r ${lang} || die >+ if [[ -e CMakeLists.txt ]] ; then >+ cmake_comment_add_subdirectory ${lang} >+ fi > fi >- elif ! has ${lang/.po/} ${LINGUAS} ; then >+ elif ! has ${lingua/.po} ${IUSE_EFFECTIVE} || ! use ${lingua/.po/} ; then > if [[ ${lang} != CMakeLists.txt ]] ; then >+ einfo "removing language file ${lang}" > rm ${lang} || die > fi > fi >@@ -419,7 +427,9 @@ > if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && ${CATEGORY} != kde-apps ]] ; then > pushd ${KDE_DOC_DIR} > /dev/null || die > for lang in *; do >- if ! has ${lang} ${LINGUAS} ; then >+ lingua="linguas_${lang}" >+ if ! has ${lingua} ${IUSE_EFFECTIVE} || ! use ${lingua} ; then >+ einfo "removing doc dir ${lang}" > cmake_comment_add_subdirectory ${lang} > fi > done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 581382
: 432284