diff options
author | Dustin Polke <DuPol@gmx.de> | 2012-04-25 14:00:58 +0200 |
---|---|---|
committer | Dustin Polke <DuPol@gmx.de> | 2012-04-25 14:00:58 +0200 |
commit | e283a8d374f28240927ba7be308f52d5fd81e77a (patch) | |
tree | 56d760a15a454377e9d2026b48d53e5ee17e0b68 /eclass/cairo-dock.eclass | |
parent | [dev-util/nemiver] Drop empty dirs. (diff) | |
download | DuPol-e283a8d374f28240927ba7be308f52d5fd81e77a.tar.gz DuPol-e283a8d374f28240927ba7be308f52d5fd81e77a.tar.bz2 DuPol-e283a8d374f28240927ba7be308f52d5fd81e77a.zip |
Add LINGUAS support to cairo-dock.eclass.
Diffstat (limited to 'eclass/cairo-dock.eclass')
-rw-r--r-- | eclass/cairo-dock.eclass | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/eclass/cairo-dock.eclass b/eclass/cairo-dock.eclass index 3851474..b521afa 100644 --- a/eclass/cairo-dock.eclass +++ b/eclass/cairo-dock.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ @@ -102,5 +102,22 @@ cairo-dock_src_prepare() { -i "${S}"/CMakeLists.txt fi fi + + # localization + if [ "${CD_TYPE}" == "core" -o "${PN}" == "cd-plugins-core" ]; then + if [[ -z ${LINGUAS} ]]; then + einfo "Installing localization for all languages" + else + strip-linguas -i po + einfo "Installing localization for the following languages: ${LINGUAS:=en}" + for lang in ${LINGUAS}; do + echo "\"${S}\"/po/${lang}.po" >> po/gentoo_linguas || die + done + sed -e "s/^\(file (\)GLOB \(PO_FILES\).*$/\1STRINGS gentoo_linguas \2)/" \ + -i po/CMakeLists.txt || die + fi + fi + + # verbose building mycmakeargs=( "-DCMAKE_VERBOSE_MAKEFILE=TRUE" ) } |