commit: 3aa2a77ac8097d38a214b5460f2ca890458594dd Author: Hanno <hanno <AT> gentoo <DOT> org> AuthorDate: Sat Oct 15 17:20:07 2016 +0000 Commit: Hanno Boeck <hanno <AT> gentoo <DOT> org> CommitDate: Sat Oct 15 17:20:07 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aa2a77a
app-arch/unp: fix compilation without LINGUAS variable Fixes bug #597198. Package-Manager: portage-2.3.2 app-arch/unp/unp-2.0_pre7_p1-r1.ebuild | 12 ++++++++++-- 1 file changed, 10 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 1194f7d..97b3db7 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,11 @@ PATCHES=( "${FILESDIR}/${P}-remove-deprecated-have.diff" ) src_compile() { if use nls; then strip-linguas -i . - emake -C po MOFILES="${LINGUAS// /.po }.po" + if [ -n "$LINGUAS" ]; then + emake -C po MOFILES="${LINGUAS// /.po }.po" + else + emake -C po + fi fi } @@ -40,6 +44,10 @@ src_install() { dobashcomp bash_completion.d/unp if use nls; then - emake -C po MOFILES="${LINGUAS// /.mo }.mo" DESTDIR="${D}" install + if [ -n "$LINGUAS" ]; then + emake -C po MOFILES="${LINGUAS// /.mo }.mo" DESTDIR="${D}" install + else + emake -C po DESTDIR="${D}" install + fi fi }