--- /usr/portage/x11-terms/sakura/sakura-2.4.0.ebuild 2011-02-25 03:31:28.000000000 +0300 +++ sakura-2.4.0.ebuild 2011-02-26 23:42:36.000000000 +0300 @@ -2,6 +2,8 @@ # 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.2 2011/02/25 00:30:08 jmbsvicetto Exp $ +EAPI=2 + inherit cmake-utils DESCRIPTION="sakura is a terminal emulator based on GTK and VTE" @@ -11,7 +13,8 @@ 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 +28,11 @@ # cmake-utils variables 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 +}