diff options
Diffstat (limited to 'app-text/ghostscript')
-rw-r--r-- | app-text/ghostscript/files/all-arch.mak | 4 | ||||
-rw-r--r-- | app-text/ghostscript/files/digest-ghostscript-6.23 | 2 | ||||
-rw-r--r-- | app-text/ghostscript/ghostscript-6.23.ebuild | 68 |
3 files changed, 72 insertions, 2 deletions
diff --git a/app-text/ghostscript/files/all-arch.mak b/app-text/ghostscript/files/all-arch.mak index b786d1b09757..472556badef5 100644 --- a/app-text/ghostscript/files/all-arch.mak +++ b/app-text/ghostscript/files/all-arch.mak @@ -15,7 +15,7 @@ # License requires that the copyright notice and this notice be preserved on # all copies. -# $Id: all-arch.mak,v 1.1 2000/08/07 15:35:01 achim Exp $ +# $Id: all-arch.mak,v 1.2 2000/08/25 15:10:22 achim Exp $ # # Author: # Nelson H. F. Beebe @@ -249,7 +249,7 @@ TARGETS = #======================================================================= -BINDIR = /usr/local/bin +BINDIR = /usr/bin CHMOD = chmod diff --git a/app-text/ghostscript/files/digest-ghostscript-6.23 b/app-text/ghostscript/files/digest-ghostscript-6.23 new file mode 100644 index 000000000000..1a24e5d4968f --- /dev/null +++ b/app-text/ghostscript/files/digest-ghostscript-6.23 @@ -0,0 +1,2 @@ +MD5 6872883a40a560273ea046873412e7c4 ghostscript-6.23.tar.gz +MD5 8250132d6fcc6eb1419f505f06c7690b ghostscript-fonts-std-6.0.tar.gz diff --git a/app-text/ghostscript/ghostscript-6.23.ebuild b/app-text/ghostscript/ghostscript-6.23.ebuild new file mode 100644 index 000000000000..9f215cdefda3 --- /dev/null +++ b/app-text/ghostscript/ghostscript-6.23.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ghostscript-6.23.ebuild,v 1.1 2000/08/25 15:10:22 achim Exp $ + +P=ghostscript-6.23 +A="${P}.tar.gz ghostscript-fonts-std-6.0.tar.gz" +A1=jpegsrc.v6b.tar.gz +A2=zlib-1.1.3.tar.gz +A3=libpng-1.0.6.tar.gz + +S=${WORKDIR}/gs6.23 +DESCRIPTION="Aladin Ghostscript" +SRC_URI="http://download.sourceforge.net/ghostscript/${P}.tar.gz + http://download.sourceforge.net/gs-fonts/ghostscript-fonts-std-6.0.tar.gz" + +src_unpack() { + unpack ${A} + cd ${S} + mkdir zlib + cd zlib + unpack ${A2} + cd .. + mkdir jpeg + cd jpeg + unpack ${A1} + cd .. + mkdir libpng + cd libpng + unpack ${A3} + cd ../src + cp ${O}/files/all-arch.mak all-arch.mak + +} + +src_compile() { + cd ${S}/src + cp all-arch.mak all-arch.mak.orig + sed -e "s:^SRCDIR.*:SRCDIR = ${S}:" all-arch.mak.orig > all-arch.mak + cp unix-gcc.mak unix-gcc.mak.orig + sed -e "s:-O2:${CFLAGS}:" unix-gcc.mak.orig > unix-gcc.mak + cd .. + make -f src/all-arch.mak linux prefix=/usr +} + +src_install() { + cd ${S} + dodir /usr/bin + make -f src/all-arch.mak prefix=${D}/usr install + cd ${WORKDIR} + cp -a fonts ${D}/usr/share/ghostscript + cd ${S} + + prepman + + dodir /usr/doc/${PF} + rm -rf ${D}/usr/share/ghostscript/6.23/doc + dodoc doc/README doc/PUBLIC + docinto html + dodoc doc/*.html doc/*.htm + insinto /usr/share/emacs/site-lisp + doins doc/gsdoc.el + +} + + + + |