Added Bret Towe's sed statements to optimize the package. Fixes #7038
authorRyan Phillips <rphillips@gentoo.org>
Sun, 3 Nov 2002 20:57:36 +0000 (20:57 +0000)
committerRyan Phillips <rphillips@gentoo.org>
Sun, 3 Nov 2002 20:57:36 +0000 (20:57 +0000)
app-text/ghostview/ChangeLog
app-text/ghostview/files/digest-ghostview-1.5-r1 [new file with mode: 0644]
app-text/ghostview/ghostview-1.5-r1.ebuild [new file with mode: 0644]

index 80101f9e973efdcab17c17326ddf685853de4c16..55dc6143c1cf6f0037125656c9a807b133f7a8f1 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-text/ghostview
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostview/ChangeLog,v 1.3 2002/08/14 10:31:35 pvdabeel Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostview/ChangeLog,v 1.4 2002/11/03 20:57:36 rphillips Exp $
+
+*ghostview-1.5-r1 (03 Nov 2002)
+
+  03 Nov 2002; Ryan Phillips <rphillips@gentoo.org> :
+
+  Added Bret Towe's sed statements for optimizing the package. Fixes #7038
 
 *ghostview-1.5 (1 Feb 2002)
 
diff --git a/app-text/ghostview/files/digest-ghostview-1.5-r1 b/app-text/ghostview/files/digest-ghostview-1.5-r1
new file mode 100644 (file)
index 0000000..d73ab66
--- /dev/null
@@ -0,0 +1 @@
+MD5 4f5c1bced73fe14b03109cfa7aacfd90 ghostview-1.5.tar.gz 139742
diff --git a/app-text/ghostview/ghostview-1.5-r1.ebuild b/app-text/ghostview/ghostview-1.5-r1.ebuild
new file mode 100644 (file)
index 0000000..b5c2d13
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostview/ghostview-1.5-r1.ebuild,v 1.1 2002/11/03 20:57:36 rphillips Exp $ 
+
+S=${WORKDIR}/${P}
+DESCRIPTION="A PostScript viewer for X11"
+SRC_URI="ftp://ftp.gnu.org/gnu/${PN}/${P}.tar.gz"
+HOMEPAGE="http://www.gnu.org/software/ghostview/"
+KEYWORDS="~x86 ~ppc ~sparc ~sparc64"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="virtual/glibc
+        virtual/x11"
+
+RDEPEND="${DEPEND}
+       >=app-text/ghostscript-6.50-r2"
+
+src_unpack() { 
+       unpack ${A}
+       # This patch contains all the Debian patches and enables anti-aliasing.
+       patch -p0 < ${FILESDIR}/${PF}-gentoo.diff
+}
+
+src_compile() {
+       PATH=/usr/X11R6/bin:${PATH} # root doesn't get this by default
+       xmkmf -a || die
+       cp Makefile Makefile.old
+       sed -e "s:CDEBUGFLAGS = .*:CDEBUGFLAGS = ${CFLAGS} -fno-strength-reduce:" \
+               -e "s,all:: ghostview.\$(MANSUFFIX).html,all:: ,g" \
+               Makefile.old > Makefile
+       emake || die
+}
+
+src_install() {
+       dobin ghostview
+       newman ghostview.man ghostview.1
+       insinto /etc/X11/app-defaults
+       newins Ghostview.ad Ghostview
+       dodoc COPYING HISTORY README comments.doc
+}