diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2002-04-28 03:59:30 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2002-04-28 03:59:30 +0000 |
commit | 21917ca4bf0ba5a62865a75fd3c3113a5aa03a64 (patch) | |
tree | 1bf9fa56ae77a674e1cc217886a64b3237a3d019 /app-text/ghostscript | |
parent | version bump, and cleanup of old ebuilds (diff) | |
download | historical-21917ca4bf0ba5a62865a75fd3c3113a5aa03a64.tar.gz historical-21917ca4bf0ba5a62865a75fd3c3113a5aa03a64.tar.bz2 historical-21917ca4bf0ba5a62865a75fd3c3113a5aa03a64.zip |
cleanup
Diffstat (limited to 'app-text/ghostscript')
-rw-r--r-- | app-text/ghostscript/ghostscript-7.00.ebuild | 127 |
1 files changed, 62 insertions, 65 deletions
diff --git a/app-text/ghostscript/ghostscript-7.00.ebuild b/app-text/ghostscript/ghostscript-7.00.ebuild index ef6168ba48d1..7cbf4cdb5c32 100644 --- a/app-text/ghostscript/ghostscript-7.00.ebuild +++ b/app-text/ghostscript/ghostscript-7.00.ebuild @@ -1,16 +1,13 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. +# Copyright 1999-2002 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-7.00.ebuild,v 1.4 2001/08/31 03:23:38 pm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ghostscript-7.00.ebuild,v 1.5 2002/04/28 03:59:29 seemant Exp $ GPV="4.1.1" A1=jpegsrc.v6b.tar.gz A2=zlib-1.1.3.tar.gz A3=libpng-1.0.12.tar.gz -A="${P}.tar.gz ghostscript-fonts-std-6.0.tar.gz print-${GPV}.tar.gz - ${A1} ${A2} ${A3}" - S=${WORKDIR}/gs${PV} DESCRIPTION="Aladin Ghostscript" SRC_URI="http://download.sourceforge.net/ghostscript/${P}.tar.gz @@ -18,79 +15,79 @@ SRC_URI="http://download.sourceforge.net/ghostscript/${P}.tar.gz http://download.sourceforge.net/gimp-print/print-${GPV}.tar.gz ftp://ftp.uu.net/graphics/jpeg/${A1} ftp://swrinde.nde.swri.edu/pub/png/src/${A3} - ftp://ftp.freesoftware.com/pub/infozip/zlib/${A2}" + ftp://ftp.freesoftware.com/pub/infozip/zlib/${A2}" DEPEND="virtual/glibc =media-libs/libpng-1.0.12 virtual/x11" src_unpack() { - unpack ${A} - cd ${S} - patch -p0 < ${FILESDIR}/${P}-time_.h-gentoo.diff - #touch src/gdevstp-print.h - 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 - cd ${WORKDIR}/print-${GPV}/Ghost - cp *.c *.h ${S}/src - cat contrib.mak.addon >> ${S}/src/contrib.mak - cd ${S}/src - cp unix-gcc.mak unix-gcc.mak.orig - sed -e "s:^DEVICE_DEVS6=:DEVICE_DEVS6=\$\(DD\)stp\.dev :" \ - unix-gcc.mak.orig > unix-gcc.mak + unpack ${A} + cd ${S} + patch -p0 < ${FILESDIR}/${P}-time_.h-gentoo.diff + #touch src/gdevstp-print.h + 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 + cd ${WORKDIR}/print-${GPV}/Ghost + cp *.c *.h ${S}/src + cat contrib.mak.addon >> ${S}/src/contrib.mak + cd ${S}/src + cp unix-gcc.mak unix-gcc.mak.orig + sed -e "s:^DEVICE_DEVS6=:DEVICE_DEVS6=\$\(DD\)stp\.dev :" \ + unix-gcc.mak.orig > unix-gcc.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 .. - try make -f src/all-arch.mak linux prefix=/usr - cd ${WORKDIR}/print-${GPV}/Ghost - try make + 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 || die + cd ${WORKDIR}/print-${GPV}/Ghost + make || die } src_install() { - dodir /usr/share/man/man1 - dobin bin/gs - try make -f src/all-arch.mak prefix=${D}/usr BINDIR=${D}/usr/bin man1dir=${D}/usr/share/man/man1 install - rm -rf ${D}/usr/man - cd ${WORKDIR} - cp -a fonts ${D}/usr/share/ghostscript - cd ${S} - - dodir /usr/share/doc/${PF} - rm -rf ${D}/usr/share/ghostscript/${PV}/doc - dodoc doc/README doc/PUBLIC - docinto html - dodoc doc/*.html doc/*.htm - insinto /usr/share/emacs/site-lisp - doins doc/gsdoc.el - - cd ${WORKDIR}/print-${GPV}/Ghost - dobin escputil - docinto stp - dodoc README* COPYING ChangeLog - + dodir /usr/share/man/man1 + dobin bin/gs + make -f src/all-arch.mak \ + prefix=${D}/usr \ + BINDIR=${D}/usr/bin \ + man1dir=${D}/usr/share/man/man1 \ + install || die + rm -rf ${D}/usr/man + cd ${WORKDIR} + cp -a fonts ${D}/usr/share/ghostscript + cd ${S} + + dodir /usr/share/doc/${PF} + rm -rf ${D}/usr/share/ghostscript/${PV}/doc + dodoc doc/README doc/PUBLIC + docinto html + dodoc doc/*.html doc/*.htm + insinto /usr/share/emacs/site-lisp + doins doc/gsdoc.el + + cd ${WORKDIR}/print-${GPV}/Ghost + dobin escputil + docinto stp + dodoc README* COPYING ChangeLog + } - - - - |