public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hanno Boeck" <hanno@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unp/
Date: Sat, 15 Oct 2016 17:20:13 +0000 (UTC)	[thread overview]
Message-ID: <1476552007.3aa2a77ac8097d38a214b5460f2ca890458594dd.hanno@gentoo> (raw)

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
 }


             reply	other threads:[~2016-10-15 17:20 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-15 17:20 Hanno Boeck [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-08 19:19 [gentoo-commits] repo/gentoo:master commit in: app-arch/unp/ Arthur Zamarin
2024-04-09 15:54 Arthur Zamarin
2024-04-09 15:54 Arthur Zamarin
2024-04-09 15:54 Arthur Zamarin
2024-02-25 11:17 Hanno Böck
2024-02-25  6:40 Hanno Böck
2024-02-11  7:30 Hanno Böck
2022-10-08 20:01 Sam James
2022-05-03 18:01 Arthur Zamarin
2021-11-19  7:24 Arthur Zamarin
2021-01-06 12:52 Fabian Groffen
2020-11-02 23:51 Sam James
2020-10-25 19:46 Thomas Deutschmann
2020-09-04 10:11 Hanno Böck
2020-07-21 16:28 Hanno Böck
2018-05-26  1:27 Aaron Bauman
2018-01-07 19:13 Mikle Kolyada
2017-12-29 17:49 Thomas Deutschmann
2017-09-23  6:46 Jeroen Roovers
2017-08-22 19:59 Michał Górny
2016-10-15 17:04 Hanno Boeck
2016-10-15 10:55 Hanno Boeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476552007.3aa2a77ac8097d38a214b5460f2ca890458594dd.hanno@gentoo \
    --to=hanno@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox