summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-terms/sakura/sakura-2.4.0.ebuild')
-rw-r--r--x11-terms/sakura/sakura-2.4.0.ebuild13
1 files changed, 11 insertions, 2 deletions
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
+}