app-text/ghostscript-gpl: fix zlib.h build error #573248
authorMike Frysinger <vapier@gentoo.org>
Fri, 12 Feb 2016 23:30:00 +0000 (18:30 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 12 Feb 2016 23:31:10 +0000 (18:31 -0500)
Newer versions of ghostscript refer to the zlib.h header file directly in
the makefiles.  Since we point it to a bogus place, that fails.  Change it
to an empty value since checking it for deps is pointless for our builds.

app-text/ghostscript-gpl/ghostscript-gpl-9.18.ebuild

index d049c3f595a950f755a6339b3b8cd5550874a46a..1970779a3d87b20316852d958fbd7cafe4cd2fe4 100644 (file)
@@ -124,6 +124,10 @@ src_prepare() {
        sed -i \
                -e "/^ZLIBDIR=/s:=.*:=${T}:" \
                configure.ac || die
+       # Some files depend on zlib.h directly.  Redirect them. #573248
+       sed -i \
+               -e '/^zlib_h/s:=.*:=:' \
+               base/lib.mak || die
 
        # search path fix
        # put LDFLAGS after BINDIR, bug #383447