From be46184bcedcfb105f7ab1c02b7c7abb3e1eab30 Mon Sep 17 00:00:00 2001 From: Nick Hadaway Date: Thu, 31 Oct 2002 00:50:43 +0000 Subject: [PATCH] Added a patch so png support is detected properly by configure and also 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 | 6 +++++- app-text/ghostscript/files/png.diff | 12 ++++++++++++ app-text/ghostscript/ghostscript-7.05.5.ebuild | 4 +++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 app-text/ghostscript/files/png.diff diff --git a/app-text/ghostscript/ChangeLog b/app-text/ghostscript/ChangeLog index 1123883bed09..598f31a9300c 100644 --- a/app-text/ghostscript/ChangeLog +++ b/app-text/ghostscript/ChangeLog @@ -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 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 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 index 000000000000..c9a68a3547de --- /dev/null +++ b/app-text/ghostscript/files/png.diff @@ -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" diff --git a/app-text/ghostscript/ghostscript-7.05.5.ebuild b/app-text/ghostscript/ghostscript-7.05.5.ebuild index 8fca49149b58..e9244062e10f 100644 --- a/app-text/ghostscript/ghostscript-7.05.5.ebuild +++ b/app-text/ghostscript/ghostscript-7.05.5.ebuild @@ -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() { -- 2.26.2