media-gfx/shotwell: Fix for no matching linguas
authorJustin Lecher <jlec@gentoo.org>
Mon, 12 Oct 2015 14:28:14 +0000 (16:28 +0200)
committerJustin Lecher <jlec@gentoo.org>
Mon, 12 Oct 2015 14:30:51 +0000 (16:30 +0200)
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
media-gfx/shotwell/shotwell-0.22.0-r1.ebuild

index b41ec6e16cd918e07944a877810fdbcefa7febea..8d0369b887549214aa822fc551e42f7aaa79b900 100644 (file)
@@ -79,6 +79,7 @@ pkg_setup() {
 
 src_prepare() {
        local x
+       local linguas="en_GB ${LINGUAS}"
        vala_src_prepare
        sed \
                -e 's|CFLAGS :|CFLAGS +|g' \
@@ -88,11 +89,10 @@ src_prepare() {
 
        # remove disabled lenguages from build
        for x in ${CORE_SUPPORTED_LANGUAGES}; do
-               if ! has ${x} ${LINGUAS}; then
+               if ! has ${x} ${linguas}; then
                        sed -i "/^${x}$/d" "${S}"/po/LINGUAS || die
                fi
        done
-       echo en_GB >> "${S}"/po/LINGUAS
 }
 
 src_configure() {