Added a patch so png support is detected properly by configure and also
authorNick Hadaway <raker@gentoo.org>
Thu, 31 Oct 2002 00:50:43 +0000 (00:50 +0000)
committerNick Hadaway <raker@gentoo.org>
Thu, 31 Oct 2002 00:50:43 +0000 (00:50 +0000)
added a sed script to get rid of the unneeded -I/usr/include.  This fix
is in result to bugs #6760 and #9651.

app-text/ghostscript/ChangeLog
app-text/ghostscript/files/png.diff [new file with mode: 0644]
app-text/ghostscript/ghostscript-7.05.5.ebuild

index 1123883bed09096f0af6ddfe88734ba6a74f3b15..598f31a9300c9b090546905261db67f5a0b69856 100644 (file)
@@ -1,9 +1,13 @@
 # ChangeLog for app-text/ghostscript
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ChangeLog,v 1.17 2002/10/07 17:43:23 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ChangeLog,v 1.18 2002/10/31 00:50:43 raker Exp $
 
 *ghostscript-7.05.5 (18 Sep 2002)
 
+  30 Oct 2002; Nick Hadaway <raker@gentoo.org> ghostscript-7.05.5.ebuild :
+  Added a patch for those having trouble with the detection of libpng.
+  See bugs #6760 and #9651...
+
   07 Oct 2002; Nick Hadaway <raker@gentoo.org> ghostscript-7.05.5.ebuild :
   Added gnome use variable for gimp-print plugin support.  added gnome
   to IUSE variables.
diff --git a/app-text/ghostscript/files/png.diff b/app-text/ghostscript/files/png.diff
new file mode 100644 (file)
index 0000000..c9a68a3
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN espgs-7.05.5/configure espgs-7.05.5-modified/configure
+--- espgs-7.05.5/configure     2002-10-30 18:31:33.000000000 -0600
++++ espgs-7.05.5-modified/configure    2002-10-30 18:36:16.000000000 -0600
+@@ -4267,7 +4267,7 @@
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpng  $LIBS"
++LIBS="-lpng -lz $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
index 8fca49149b582a814eebe047680402d67b42b1ba..e9244062e10f908f5711e23ad5d0a7f72bcf4043 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ghostscript-7.05.5.ebuild,v 1.7 2002/10/20 18:40:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ghostscript-7.05.5.ebuild,v 1.8 2002/10/31 00:50:43 raker Exp $
 
 IUSE="X cups gnome"
 
@@ -34,6 +34,8 @@ src_unpack() {
        sed 's#^\(DEVICE_DEVS6=.*\)$#\1 $(DD)hl1240.dev $(DD)hl1250.dev#' \
            < ${S}/src/Makefile.in.orig > ${S}/src/Makefile.in || die
 
+       patch -p0 < ${FILESDIR}/png.diff || die "patch failed"
+
 }
 
 src_compile() {