diff options
author | Fabian Groffen <grobian@gentoo.org> | 2017-04-18 10:30:08 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2017-04-18 10:30:08 +0200 |
commit | 4e59cfef91ca82c3162cd3b2c4d0b0928b031bd0 (patch) | |
tree | 2f7479808e97c7ab3a2fb0c7207e101d9fc6b624 /net-dns/libidn2 | |
parent | dev-python/sip: Stable for HPPA (bug #611784). (diff) | |
download | gentoo-4e59cfef91ca82c3162cd3b2c4d0b0928b031bd0.tar.gz gentoo-4e59cfef91ca82c3162cd3b2c4d0b0928b031bd0.tar.bz2 gentoo-4e59cfef91ca82c3162cd3b2c4d0b0928b031bd0.zip |
net-dns/libidn2: fix compilation on Darwin
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-dns/libidn2')
-rw-r--r-- | net-dns/libidn2/libidn2-2.0.0-r1.ebuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net-dns/libidn2/libidn2-2.0.0-r1.ebuild b/net-dns/libidn2/libidn2-2.0.0-r1.ebuild index c1c4f3f0ff44..cfa974b6bc60 100644 --- a/net-dns/libidn2/libidn2-2.0.0-r1.ebuild +++ b/net-dns/libidn2/libidn2-2.0.0-r1.ebuild @@ -27,10 +27,11 @@ DEPEND=" src_prepare() { default - if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then - # crude hack, fixed properly for next release, no error.h is present - sed -i -e '/#include "error\.h"/d' src/idn2.c || die - append-cppflags -D'error\(E,...\)=exit\(E\)' + if [[ ${CHOST} == *-darwin* ]] ; then + # Darwin ar chokes when TMPDIR doesn't exist (as done for some + # reason in the Makefile) + sed -i -e '/^TMPDIR = /d' Makefile.in || die + export TMPDIR="${T}" fi multilib_copy_sources |