net-dns/libidn2: fix compilation on Darwin

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
Fabian Groffen
2017-04-18 10:30:08 +02:00
parent 95b30f6575
commit 4e59cfef91
+5 -4
View File
@@ -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