commit:     8a8e14353cf5f611540620ddc5c238d9b370d8aa
Author:     Hanno <hanno <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 15 17:03:58 2016 +0000
Commit:     Hanno Boeck <hanno <AT> gentoo <DOT> org>
CommitDate: Sat Oct 15 17:03:58 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a8e1435

app-arch/unp: fix LINGUAS variable handling

The previous variant fails if there are more than two
entries in LINGUAS. Thanks to sping for pointing that
out.

Package-Manager: portage-2.3.2

 app-arch/unp/unp-2.0_pre7_p1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild 
b/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild
index 0c2a68d..1194f7d 100644
--- a/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild
+++ b/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild
@@ -28,7 +28,7 @@ PATCHES=( "${FILESDIR}/${P}-remove-deprecated-have.diff" )
 src_compile() {
        if use nls; then
                strip-linguas -i .
-               emake -C po MOFILES="${LINGUAS/ /.po }.po"
+               emake -C po MOFILES="${LINGUAS// /.po }.po"
        fi
 }
 
@@ -40,6 +40,6 @@ src_install() {
        dobashcomp bash_completion.d/unp
 
        if use nls; then
-               emake -C po MOFILES="${LINGUAS/ /.mo }.mo" DESTDIR="${D}" 
install
+               emake -C po MOFILES="${LINGUAS// /.mo }.mo" DESTDIR="${D}" 
install
        fi
 }

Reply via email to