diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2012-05-21 19:36:18 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2012-05-21 19:36:18 +0000 |
commit | b8493425f45993e35290c03a308eb5759c89b101 (patch) | |
tree | 9f2d26cdfe520815853329b4c1dd4247a5872ddf /media-gfx | |
parent | inherit eutils for make_desktop_entry (diff) | |
download | gentoo-2-b8493425f45993e35290c03a308eb5759c89b101.tar.gz gentoo-2-b8493425f45993e35290c03a308eb5759c89b101.tar.bz2 gentoo-2-b8493425f45993e35290c03a308eb5759c89b101.zip |
Respect LINGUAS. Bug #407859
(Portage version: 2.1.10.62/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/mypaint/ChangeLog | 5 | ||||
-rw-r--r-- | media-gfx/mypaint/mypaint-1.0.0-r1.ebuild | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/media-gfx/mypaint/ChangeLog b/media-gfx/mypaint/ChangeLog index e0e4de49951c..7826cb09e15a 100644 --- a/media-gfx/mypaint/ChangeLog +++ b/media-gfx/mypaint/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-gfx/mypaint # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/ChangeLog,v 1.16 2012/05/05 07:00:23 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/ChangeLog,v 1.17 2012/05/21 19:36:18 hwoarang Exp $ + + 21 May 2012; Markos Chandras <hwoarang@gentoo.org> mypaint-1.0.0-r1.ebuild: + Respect LINGUAS. Bug #407859 05 May 2012; Jeff Horelick <jdhore@gentoo.org> mypaint-1.0.0.ebuild, mypaint-1.0.0-r1.ebuild: diff --git a/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild b/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild index 20f397ce10af..d3921752792b 100644 --- a/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild +++ b/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild,v 1.5 2012/05/05 07:00:23 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild,v 1.6 2012/05/21 19:36:18 hwoarang Exp $ EAPI=4 @@ -17,6 +17,11 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" +LANGS="cs de en_CA es fr hu id it ja ko nb nn_NO pl pt_BR ru sl sv uk zh_CN zh_TW" +for x in ${LANGS}; do + IUSE+="linguas_${x} " +done + RDEPEND="dev-python/pygtk dev-python/numpy >=dev-python/pycairo-1.4 @@ -47,6 +52,11 @@ src_compile() { src_install () { escons prefix="${D}/usr" install || die "scons install failed" newicon pixmaps/${PN}_logo.png ${PN}.png + for x in ${LANGS}; do + if ! has ${x} ${LINGUAS}; then + find "${D}"/usr/share/locale/${x} -name "mypaint.mo" -exec rm {} \; + fi + done } pkg_preinst() { |