Gentoo Archives: gentoo-commits

From: Hanno Boeck <hanno@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unp/
Date: Sat, 15 Oct 2016 17:20:19
Message-Id: 1476552007.3aa2a77ac8097d38a214b5460f2ca890458594dd.hanno@gentoo
1 commit: 3aa2a77ac8097d38a214b5460f2ca890458594dd
2 Author: Hanno <hanno <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 15 17:20:07 2016 +0000
4 Commit: Hanno Boeck <hanno <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 15 17:20:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aa2a77a
7
8 app-arch/unp: fix compilation without LINGUAS variable
9
10 Fixes bug #597198.
11
12 Package-Manager: portage-2.3.2
13
14 app-arch/unp/unp-2.0_pre7_p1-r1.ebuild | 12 ++++++++++--
15 1 file changed, 10 insertions(+), 2 deletions(-)
16
17 diff --git a/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild b/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild
18 index 1194f7d..97b3db7 100644
19 --- a/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild
20 +++ b/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild
21 @@ -28,7 +28,11 @@ PATCHES=( "${FILESDIR}/${P}-remove-deprecated-have.diff" )
22 src_compile() {
23 if use nls; then
24 strip-linguas -i .
25 - emake -C po MOFILES="${LINGUAS// /.po }.po"
26 + if [ -n "$LINGUAS" ]; then
27 + emake -C po MOFILES="${LINGUAS// /.po }.po"
28 + else
29 + emake -C po
30 + fi
31 fi
32 }
33
34 @@ -40,6 +44,10 @@ src_install() {
35 dobashcomp bash_completion.d/unp
36
37 if use nls; then
38 - emake -C po MOFILES="${LINGUAS// /.mo }.mo" DESTDIR="${D}" install
39 + if [ -n "$LINGUAS" ]; then
40 + emake -C po MOFILES="${LINGUAS// /.mo }.mo" DESTDIR="${D}" install
41 + else
42 + emake -C po DESTDIR="${D}" install
43 + fi
44 fi
45 }