media-libs/fontconfig: fix build on Darwin
authorFabian Groffen <grobian@gentoo.org>
Mon, 25 Sep 2017 06:55:19 +0000 (08:55 +0200)
committerFabian Groffen <grobian@gentoo.org>
Mon, 25 Sep 2017 06:55:19 +0000 (08:55 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.1

media-libs/fontconfig/fontconfig-2.12.6.ebuild

index 384c7ad558615c08c182af909df7244bde73c941..e1a756f344f59e1ab21bd0f99d5f4559e2685f78 100644 (file)
@@ -43,6 +43,13 @@ pkg_setup() {
 src_prepare() {
        default
        eautoreconf
+
+       # this should be ok for everyone, but for safety I only apply it to
+       # the platform I need this for sure
+       if [[ ${CHOST} == *-darwin* ]] ; then
+               # https://bugs.freedesktop.org/show_bug.cgi?id=101280
+               rm src/fcobjshash.h src/fcobjshash.gperf
+       fi
 }
 
 multilib_src_configure() {