diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-05-22 14:27:54 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-05-22 14:27:54 +0000 |
commit | f4a914cb73e6d229ee133ed100a3932475326cff (patch) | |
tree | ec02f381353294307d604783cb5d75689d24077e /kde-misc | |
parent | version bump; uses experimental cmake patch from Enrico Scholz (diff) | |
download | gentoo-2-f4a914cb73e6d229ee133ed100a3932475326cff.tar.gz gentoo-2-f4a914cb73e6d229ee133ed100a3932475326cff.tar.bz2 gentoo-2-f4a914cb73e6d229ee133ed100a3932475326cff.zip |
Added LINGUAS support, fixes bug 134605.
(Portage version: 2.1.2.7)
Diffstat (limited to 'kde-misc')
-rw-r--r-- | kde-misc/kdiff3/ChangeLog | 5 | ||||
-rw-r--r-- | kde-misc/kdiff3/kdiff3-0.9.92.ebuild | 47 |
2 files changed, 50 insertions, 2 deletions
diff --git a/kde-misc/kdiff3/ChangeLog b/kde-misc/kdiff3/ChangeLog index aecefba61aa8..490e105ce5fe 100644 --- a/kde-misc/kdiff3/ChangeLog +++ b/kde-misc/kdiff3/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for kde-misc/kdiff3 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-misc/kdiff3/ChangeLog,v 1.27 2007/05/15 21:20:58 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-misc/kdiff3/ChangeLog,v 1.28 2007/05/22 14:27:54 philantrop Exp $ + + 22 May 2007; Wulf C. Krueger <philantrop@gentoo.org> kdiff3-0.9.92.ebuild: + Added LINGUAS support, fixes bug 134605. 15 May 2007; Carsten Lohrke <carlo@gentoo.org> -kdiff3-0.9.88.ebuild, -kdiff3-0.9.89.ebuild, -kdiff3-0.9.90.ebuild, -kdiff3-0.9.91.ebuild: diff --git a/kde-misc/kdiff3/kdiff3-0.9.92.ebuild b/kde-misc/kdiff3/kdiff3-0.9.92.ebuild index c7fd60a07cf2..0efcfb41abb7 100644 --- a/kde-misc/kdiff3/kdiff3-0.9.92.ebuild +++ b/kde-misc/kdiff3/kdiff3-0.9.92.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-misc/kdiff3/kdiff3-0.9.92.ebuild,v 1.7 2007/05/15 16:32:28 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-misc/kdiff3/kdiff3-0.9.92.ebuild,v 1.8 2007/05/22 14:27:54 philantrop Exp $ inherit kde @@ -16,3 +16,48 @@ IUSE="" RDEPEND="sys-apps/diffutils" need-kde 3.5 + +LANGS="ar az bg br ca cs cy da de el en_GB es et fr ga gl hi hu is it ja ka lt +nb nl pl pt pt_BR ro ru rw sk sr sr@Latn sv ta tg tr uk zh_CN" + +LANGS_DOC="da de en es et fr it nl pt sv" + +for lang in ${LANGS}; do + IUSE="${IUSE} linguas_${lang}" +done + +src_unpack() { + kde_src_unpack + + # Adapted from kde.eclass + if [[ -z ${LINGUAS} ]]; then + einfo "You can drop some of the translations of the interface and" + einfo "documentation by setting the \${LINGUAS} variable to the" + einfo "languages you want installed." + einfo + einfo "Enabling all languages" + else + if [[ -n ${LANGS} ]]; then + MAKE_PO=$(echo $(echo "${LINGUAS} ${LANGS}" | tr ' ' '\n' | sort | uniq -d)) + einfo "Enabling translations for: ${MAKE_PO}" + local tmp="" + for x in ${MAKE_PO}; do + tmp+="${x}.po " + done + MAKE_PO=${tmp} + sed -i -e "s:^POFILES =.*:POFILES = ${MAKE_PO}:" "${KDE_S}/po/Makefile.am" \ + || die "sed for locale failed" + + rm -f "${KDE_S}/configure" + fi + + if [[ -n ${LANGS_DOC} ]]; then + MAKE_DOC=$(echo $(echo "${LINGUAS} ${LANGS_DOC}" | tr ' ' '\n' | sort | uniq -d)) + einfo "Enabling documentation for: ${MAKE_DOC}" + [[ -n ${MAKE_DOC} ]] && [[ -n ${DOC_DIR_SUFFIX} ]] && MAKE_DOC=$(echo "${MAKE_DOC}" | tr '\n' ' ') && MAKE_DOC="${MAKE_DOC// /${DOC_DIR_SUFFIX} }" + sed -i -e "s:^SUBDIRS =.*:SUBDIRS = ${MAKE_DOC} :" \ + "${KDE_S}/doc/Makefile.am" || die "sed for locale failed" + rm -f "${KDE_S}/configure" + fi + fi +} |