summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Polke <DuPol@gmx.de>2012-05-24 19:58:42 +0200
committerDustin Polke <DuPol@gmx.de>2012-05-24 19:58:42 +0200
commit934febbc97ce8d90c970c2447d1041a9a423d76b (patch)
treec7ee277cf156d634c5180ade5d5cfda9f9a40374
parent[x11-plugins/cd-plugins-core] Make use of newly added CD_LANGS variable in ca... (diff)
downloadDuPol-934febbc97ce8d90c970c2447d1041a9a423d76b.tar.gz
DuPol-934febbc97ce8d90c970c2447d1041a9a423d76b.tar.bz2
DuPol-934febbc97ce8d90c970c2447d1041a9a423d76b.zip
cairo-dock.eclass: Remove redundant code from localization handling.
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/cairo-dock.eclass10
2 files changed, 9 insertions, 6 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 45f4584..9ce84ba 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -3,7 +3,10 @@
# $Header$
24 May 2012; Dustin Polke <DuPol@gmx.de> cairo-dock.eclass:
- Make localization support visible via linuas_ USE flags.
+ strip-linguas is not needed with linguas_ in IUSE.
+
+ 24 May 2012; Dustin Polke <DuPol@gmx.de> cairo-dock.eclass:
+ Make localization support visible via linguas_ USE flags.
23 May 2012; Dustin Polke <DuPol@gmx.de> cairo-dock.eclass:
- Adapt to new upstream versioning scheme (only 3 digits now).
diff --git a/eclass/cairo-dock.eclass b/eclass/cairo-dock.eclass
index f1acae0..d5c9340 100644
--- a/eclass/cairo-dock.eclass
+++ b/eclass/cairo-dock.eclass
@@ -131,16 +131,16 @@ cairo-dock_src_prepare() {
# localization
if [[ ! -z ${CD_LANGS} ]]; then
if [[ -z ${LINGUAS} ]]; then
- einfo "Installing localization for all languages"
+ einfo "Installing no localization"
+ touch po/gentoo_linguas || die
else
- strip-linguas -i po
- einfo "Installing localization for the following languages: ${LINGUAS:=en}"
+ einfo "Installing localization for the following languages: ${LINGUAS}"
for _lang in ${LINGUAS}; do
echo "\"${S}\"/po/${_lang}.po" >> po/gentoo_linguas || die
done
unset _lang
- sed -e "s/^\(file (\)GLOB \(PO_FILES\).*$/\1STRINGS gentoo_linguas \2)/" \
- -i po/CMakeLists.txt || die
fi
+ sed -e "s/^\(file (\)GLOB \(PO_FILES\).*$/\1STRINGS gentoo_linguas \2)/" \
+ -i po/CMakeLists.txt || die
fi
}