Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/libidn2/
Date: Tue, 18 Apr 2017 08:30:17
Message-Id: 1492504208.4e59cfef91ca82c3162cd3b2c4d0b0928b031bd0.grobian@gentoo
1 commit: 4e59cfef91ca82c3162cd3b2c4d0b0928b031bd0
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 18 08:30:08 2017 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 18 08:30:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e59cfef
7
8 net-dns/libidn2: fix compilation on Darwin
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-dns/libidn2/libidn2-2.0.0-r1.ebuild | 9 +++++----
13 1 file changed, 5 insertions(+), 4 deletions(-)
14
15 diff --git a/net-dns/libidn2/libidn2-2.0.0-r1.ebuild b/net-dns/libidn2/libidn2-2.0.0-r1.ebuild
16 index c1c4f3f0ff4..cfa974b6bc6 100644
17 --- a/net-dns/libidn2/libidn2-2.0.0-r1.ebuild
18 +++ b/net-dns/libidn2/libidn2-2.0.0-r1.ebuild
19 @@ -27,10 +27,11 @@ DEPEND="
20 src_prepare() {
21 default
22
23 - if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then
24 - # crude hack, fixed properly for next release, no error.h is present
25 - sed -i -e '/#include "error\.h"/d' src/idn2.c || die
26 - append-cppflags -D'error\(E,...\)=exit\(E\)'
27 + if [[ ${CHOST} == *-darwin* ]] ; then
28 + # Darwin ar chokes when TMPDIR doesn't exist (as done for some
29 + # reason in the Makefile)
30 + sed -i -e '/^TMPDIR = /d' Makefile.in || die
31 + export TMPDIR="${T}"
32 fi
33
34 multilib_copy_sources