From 2bc39f9001ea1e7efd315bf9529f8cb638e433aa Mon Sep 17 00:00:00 2001 From: Thomas Raschbacher Date: Thu, 3 Apr 2003 18:17:41 +0000 Subject: fixed use-flag stuff(see ChangeLog) --- app-text/ghostscript/ChangeLog | 6 +- .../ghostscript/files/digest-ghostscript-7.05.6-r1 | 5 ++ app-text/ghostscript/ghostscript-7.05.6-r1.ebuild | 84 ++++++++++++++++++++++ app-text/ghostscript/ghostscript-7.05.6.ebuild | 13 ++-- 4 files changed, 101 insertions(+), 7 deletions(-) create mode 100644 app-text/ghostscript/files/digest-ghostscript-7.05.6-r1 create mode 100644 app-text/ghostscript/ghostscript-7.05.6-r1.ebuild diff --git a/app-text/ghostscript/ChangeLog b/app-text/ghostscript/ChangeLog index 377958194207..4506c60616a2 100644 --- a/app-text/ghostscript/ChangeLog +++ b/app-text/ghostscript/ChangeLog @@ -1,9 +1,13 @@ # ChangeLog for app-text/ghostscript # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ChangeLog,v 1.28 2003/04/03 12:08:46 nakano Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ChangeLog,v 1.29 2003/04/03 18:17:41 lordvan Exp $ *ghostscript-7.05.6 (05 Mar 2003) + 03 Apr 2003; Thomas Raschbacher ghostscript-7.06.6-r1.ebuild: + new revision so users upgrade (cuz of the man-page fix and cjk fix from nakano) + gimp-print(-cups) dep is now controlled by cups USE var + 03 Apr 2003; Masatomo Nakano ghostscript-7.05.6.ebuild, gs7.05.6-cjk.diff,ghostscript-7.05.6.man.patch: diff --git a/app-text/ghostscript/files/digest-ghostscript-7.05.6-r1 b/app-text/ghostscript/files/digest-ghostscript-7.05.6-r1 new file mode 100644 index 000000000000..a76e8443ea4a --- /dev/null +++ b/app-text/ghostscript/files/digest-ghostscript-7.05.6-r1 @@ -0,0 +1,5 @@ +MD5 991cbd7bafc6917a19abf9df3ecad58e espgs-7.05.6-source.tar.bz2 5410541 +MD5 1521fab85ca3e8ce3ce781d4970e6c79 gnu-gs-fonts-std-6.0.tar.gz 1881193 +MD5 33457d3f37de7ef03d2eea05a9e6aa4f gnu-gs-fonts-other-6.0.tar.gz 796086 +MD5 a3bf430a7e21cd82401258a2ec3b8afb adobe-cmaps-200204.tar.gz 4360486 +MD5 2fbae60417d42779f6488ab897dcaaf6 acro5-cmaps-2001.tar.gz 631653 diff --git a/app-text/ghostscript/ghostscript-7.05.6-r1.ebuild b/app-text/ghostscript/ghostscript-7.05.6-r1.ebuild new file mode 100644 index 000000000000..686eccb97a61 --- /dev/null +++ b/app-text/ghostscript/ghostscript-7.05.6-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2003 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.6-r1.ebuild,v 1.1 2003/04/03 18:17:41 lordvan Exp $ + +DESCRIPTION="ESP Ghostscript -- an enhanced version of GNU Ghostscript with better printer support" +SRC_URI="ftp://ftp.easysw.com/pub/ghostscript/espgs-${PV}-source.tar.bz2 + ftp://ftp.easysw.com/pub/ghostscript/gnu-gs-fonts-std-6.0.tar.gz + ftp://ftp.easysw.com/pub/ghostscript/gnu-gs-fonts-other-6.0.tar.gz + cjk? ( ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200204.tar.gz + ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.gz)" +HOMEPAGE="http://www.easysw.com/" + +SLOT="0" +LICENSE="GPL-2 LGPL-2" +KEYWORDS="~x86 ~ppc ~sparc alpha" +IUSE="X cups cjk" + +DEPEND="virtual/glibc + >=media-libs/jpeg-6b + >=media-libs/libpng-1.2.1 + >=sys-libs/zlib-1.1.4 + X? ( virtual/x11 ) + cjk? ( x11-misc/arphicfonts + x11-misc/kochi-fonts + x11-misc/baekmuk-fonts ) + cups? gimp-print : gimp-print-cups" + +S=${WORKDIR}/espgs-${PV} + +src_unpack() { + unpack espgs-${PV}-source.tar.bz2 + unpack gnu-gs-fonts-std-6.0.tar.gz + unpack gnu-gs-fonts-other-6.0.tar.gz + + # Brother HL-12XX support + cp ${FILESDIR}/gs7.05-gdevhl12.c ${S}/src/gdevhl12.c || die + mv ${S}/src/Makefile.in ${S}/src/Makefile.in.orig + 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" + + use cjk && epatch ${FILESDIR}/gs${PV}-cjk.diff + + # man page patch from absinthe@pobox.com (Dylan Carlson) bug #14150 + patch -p0 ${S}/man/gs.1 < ${FILESDIR}/${P}.man.patch || die +} + +src_compile() { + local myconf + myconf="--with-ijs --with-omni" + + use X && myconf="${myconf} --with-x" \ + || myconf="${myconf} --without-x" + + use cups && myconf="${myconf} --enable-cups --with-gimp-print" \ + || myconf="${myconf} --disable-cups --without-gimp-print" + + econf ${myconf} + make || die "make failed" +} + +src_install() { + einstall install_prefix=${D} + + cd ${WORKDIR} + cp -a fonts ${D}/usr/share/ghostscript || die + cd ${S} + + rm -fr ${D}/usr/share/ghostscript/7.05/doc || die + dodoc doc/README doc/COPYING doc/COPYING.LGPL + dohtml doc/*.html doc/*.htm + insinto /usr/share/emacs/site-lisp + doins doc/gsdoc.el || die + + if [ `use cjk` ] ; then + dodir /usr/share/ghostscript/Resource + dodir /usr/share/ghostscript/Resource/Font + dodir /usr/share/ghostscript/Resource/CIDFont + cd ${D}/usr/share/ghostscript/Resource + unpack adobe-cmaps-200204.tar.gz + unpack acro5-cmaps-2001.tar.gz + fi +} diff --git a/app-text/ghostscript/ghostscript-7.05.6.ebuild b/app-text/ghostscript/ghostscript-7.05.6.ebuild index 998624206717..9975d81d602b 100644 --- a/app-text/ghostscript/ghostscript-7.05.6.ebuild +++ b/app-text/ghostscript/ghostscript-7.05.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 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.6.ebuild,v 1.3 2003/04/03 12:08:46 nakano Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ghostscript-7.05.6.ebuild,v 1.4 2003/04/03 18:17:41 lordvan Exp $ DESCRIPTION="ESP Ghostscript -- an enhanced version of GNU Ghostscript with better printer support" SRC_URI="ftp://ftp.easysw.com/pub/ghostscript/espgs-${PV}-source.tar.bz2 @@ -22,7 +22,8 @@ DEPEND="virtual/glibc X? ( virtual/x11 ) cjk? ( x11-misc/arphicfonts x11-misc/kochi-fonts - x11-misc/baekmuk-fonts )" + x11-misc/baekmuk-fonts ) + cups? gimp-print : gimp-print-cups" S=${WORKDIR}/espgs-${PV} @@ -49,11 +50,11 @@ src_compile() { local myconf myconf="--with-ijs --with-omni" - use X && myconf="${myconf} --with-x --with-gimp-print" \ - || myconf="${myconf} --without-x --without-gimp-print" + use X && myconf="${myconf} --with-x" \ + || myconf="${myconf} --without-x" - use cups && myconf="${myconf} --enable-cups" \ - || myconf="${myconf} --disable-cups" + use cups && myconf="${myconf} --enable-cups --with-gimp-print" \ + || myconf="${myconf} --disable-cups --without-gimp-print" econf ${myconf} make || die "make failed" -- cgit v1.2.3-65-gdbad