diff options
Diffstat (limited to 'net-dns')
-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 |