Skip to content

Commit

Permalink
app-arch/unp: fix compilation without LINGUAS variable
Browse files Browse the repository at this point in the history
Fixes bug #597198.

Package-Manager: portage-2.3.2
  • Loading branch information
hannob committed Oct 15, 2016
1 parent 8a8e143 commit 3aa2a77
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app-arch/unp/unp-2.0_pre7_p1-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

0 comments on commit 3aa2a77

Please sign in to comment.