diff options
| author | Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org> | 2008-09-23 02:54:19 +0000 |
|---|---|---|
| committer | Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org> | 2008-09-23 02:54:19 +0000 |
| commit | 9cabf7ba581193386161579ccd803a0be1f62fe2 (patch) | |
| tree | b3ea4c6d658be16a70326c9ca1146ba9a2c89167 /eclass/kde4-functions.eclass | |
| parent | 1f3d5e1d0101022421e082b6e76b17f9c2851c34 (diff) | |
| download | kde-9cabf7ba581193386161579ccd803a0be1f62fe2.tar.gz kde-9cabf7ba581193386161579ccd803a0be1f62fe2.tar.bz2 kde-9cabf7ba581193386161579ccd803a0be1f62fe2.zip | |
Applied fixes from the master branch to the eclasses.
Diffstat (limited to 'eclass/kde4-functions.eclass')
| -rw-r--r-- | eclass/kde4-functions.eclass | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index 2407877ef21..bfbce2b74eb 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -462,13 +462,22 @@ done # but this default can be overridden by defining KDE_LINGUAS_DIR. enable_selected_linguas() { local lingua - comment_all_add_subdirectory "${KDE_LINGUAS_DIR:-${S}/po}" + for lingua in ${KDE_LINGUAS}; do - if use linguas_${lingua}; then + if [ -e "${S}"/po/"${lingua}".po ]; then + mv "${S}"/po/"${lingua}".po "${S}"/po/"${lingua}".po.old + fi + done + comment_all_add_subdirectory "${KDE_LINGUAS_DIR:-${S}/po}" + for lingua in ${LINGUAS}; do + if [ -d "${S}"/po/"${lingua}" ]; then sed -e "/add_subdirectory([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ -e "/ADD_SUBDIRECTORY([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ -i "${KDE_LINGUAS_DIR:-${S}/po}"/CMakeLists.txt || die "Sed to uncomment linguas_${lingua} failed." fi + if [ -e "${S}"/po/"${lingua}".po.old ]; then + mv "${S}"/po/"${lingua}".po.old "${S}"/po/"${lingua}".po + fi done } |
