summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-04-12 10:19:03 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2011-04-12 10:19:03 +0000
commitfc741a2c90dc2b45058532c0fe42e923b833ea25 (patch)
tree0a15688141098076521ed32684e52dd0d1a63416 /x11-terms/sakura
parentWorkaround parallel install failures (bug #363239). (diff)
downloadgentoo-2-fc741a2c90dc2b45058532c0fe42e923b833ea25.tar.gz
gentoo-2-fc741a2c90dc2b45058532c0fe42e923b833ea25.tar.bz2
gentoo-2-fc741a2c90dc2b45058532c0fe42e923b833ea25.zip
Add linguas handling per irc request by Nikoli.
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
Diffstat (limited to 'x11-terms/sakura')
-rw-r--r--x11-terms/sakura/ChangeLog5
-rw-r--r--x11-terms/sakura/sakura-2.4.0.ebuild13
2 files changed, 15 insertions, 3 deletions
diff --git a/x11-terms/sakura/ChangeLog b/x11-terms/sakura/ChangeLog
index 0438b46ffb44..ed420cf5b616 100644
--- a/x11-terms/sakura/ChangeLog
+++ b/x11-terms/sakura/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for x11-terms/sakura
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-terms/sakura/ChangeLog,v 1.15 2011/04/11 04:35:04 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-terms/sakura/ChangeLog,v 1.16 2011/04/12 10:19:03 scarabeus Exp $
+
+ 12 Apr 2011; Tomáš Chvátal <scarabeus@gentoo.org> sakura-2.4.0.ebuild:
+ Add linguas handling per irc request by Nikoli.
11 Apr 2011; Jeroen Roovers <jer@gentoo.org> sakura-2.3.8.ebuild:
Restore keywords (bug #328943).
diff --git a/x11-terms/sakura/sakura-2.4.0.ebuild b/x11-terms/sakura/sakura-2.4.0.ebuild
index 9633bcccf2f7..36477fa91b28 100644
--- a/x11-terms/sakura/sakura-2.4.0.ebuild
+++ b/x11-terms/sakura/sakura-2.4.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-terms/sakura/sakura-2.4.0.ebuild,v 1.4 2011/03/23 06:18:50 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-terms/sakura/sakura-2.4.0.ebuild,v 1.5 2011/04/12 10:19:03 scarabeus Exp $
EAPI=4
@@ -13,7 +13,8 @@ SRC_URI="http://www.pleyades.net/david/projects/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+LANGS=" ca cs de es fr hr hu it ja pl pt_BR ru zh_CN"
+IUSE="${LANGS// / linguas_}"
RDEPEND="
>=dev-libs/glib-2.20
@@ -25,3 +26,11 @@ DEPEND="${RDEPEND}
"
DOCS=( AUTHORS INSTALL )
+
+src_prepare() {
+ for lang in ${LANGS}; do
+ if ! use linguas_${lang}; then
+ rm -f "po/${lang}.po" || die "rm failed"
+ fi
+ done
+}