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
src_compile() {
if use nls; then
strip-linguas -i .
- emake -C po MOFILES="${LINGUAS/ /.po }.po"
+ emake -C po MOFILES="${LINGUAS// /.po }.po"
fi
}
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
}