app-arch/unp: fix LINGUAS variable handling
authorHanno <hanno@gentoo.org>
Sat, 15 Oct 2016 17:03:58 +0000 (19:03 +0200)
committerHanno <hanno@gentoo.org>
Sat, 15 Oct 2016 17:03:58 +0000 (19:03 +0200)
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

index 0c2a68df8c2960bd6c458aa875ebbfda785977c0..1194f7d9dc8980bac28eb573f59961fff30cffbf 100644 (file)
@@ -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
 }