diff options
Diffstat (limited to 'app-text/ghostscript/ghostscript-7.07.1-r7.ebuild')
-rw-r--r-- | app-text/ghostscript/ghostscript-7.07.1-r7.ebuild | 147 |
1 files changed, 0 insertions, 147 deletions
diff --git a/app-text/ghostscript/ghostscript-7.07.1-r7.ebuild b/app-text/ghostscript/ghostscript-7.07.1-r7.ebuild deleted file mode 100644 index d34d161baa7c..000000000000 --- a/app-text/ghostscript/ghostscript-7.07.1-r7.ebuild +++ /dev/null @@ -1,147 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript/ghostscript-7.07.1-r7.ebuild,v 1.24 2005/05/22 15:36:33 swegener Exp $ - -inherit flag-o-matic eutils toolchain-funcs - -DESCRIPTION="ESP Ghostscript -- an enhanced version of GNU Ghostscript with better printer support" -HOMEPAGE="http://www.cups.org/ghostscript.php" -SRC_URI="mirror://sourceforge/espgs/espgs-${PV}-source.tar.bz2 - cjk? ( http://www.matsusaka-u.ac.jp/mirror/gs-cjk/adobe-cmaps-200204.tar.gz - http://www.matsusaka-u.ac.jp/mirror/gs-cjk/acro5-cmaps-2001.tar.gz )" - -LICENSE="GPL-2 LGPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86" -IUSE="X cups cjk emacs" - -RDEPEND="virtual/libc - >=media-libs/jpeg-6b - >=media-libs/libpng-1.2.1 - >=sys-libs/zlib-1.1.4 - X? ( virtual/x11 ) - cjk? ( media-fonts/arphicfonts - media-fonts/kochi-substitute - media-fonts/baekmuk-fonts ) - cups? ( net-print/cups ) - !virtual/ghostscript - media-libs/fontconfig - media-fonts/gnu-gs-fonts-std" - -DEPEND="${RDEPEND} - dev-util/pkgconfig" - -S=${WORKDIR}/espgs-${PV} - -PROVIDE="virtual/ghostscript" - -src_unpack() { - unpack espgs-${PV}-source.tar.bz2 - - cd ${S} - - if use cjk ; then - epatch ${FILESDIR}/gs7.07.1-cjk.diff.bz2 - epatch ${FILESDIR}/gs7.05.6-kochi-substitute.patch - fi - - # add fontconfig support - epatch ${FILESDIR}/gs7.07.1-fontconfig-rh.patch.2.bz2 - - # man page patch from absinthe@pobox.com (Dylan Carlson) bug #14150 - epatch ${FILESDIR}/ghostscript-7.05.6.man.patch - - # ijs fPIC patch - epatch ${FILESDIR}/gs${PV}-ijs.patch - - # pxl dash patch - epatch ${FILESDIR}/gs7.05.6-gdevpx.patch - - # Makefile.in fixes for DESTDIR support in libijs because - # einstall borks on multilib systems -- eradicator - epatch ${FILESDIR}/gs${PV}-destdir.patch - epatch ${FILESDIR}/gs${PV}-ijsdestdir.patch - - # search path fix - sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/7.07/$(get_libdir):"\ - Makefile.in || die "sed failed" - sed -i -e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \ - Makefile.in || die "sed failed" - - # insecure tempfile handling - epatch ${FILESDIR}/gs${PV}-tempfile.patch - - # krgb support - cd src - epatch ${FILESDIR}/gs7.07.1-krgb.patch.gz - - # Fix the garbage collector on ia64 and ppc - epatch ${FILESDIR}/gs-fix-gc.patch -} - -src_compile() { - local myconf - myconf="--with-ijs --with-omni --without-gimp-print" - - # bug #56998, only compiled-in fontpath is searched when running - # gs -DPARANOIDSAFER out.ps - myconf="${myconf} --with-fontconfig --with-fontpath=/usr/share/fonts:/usr/share/fonts/ttf/zh_TW:/usr/share/fonts/ttf/zh_CN:/usr/share/fonts/arphicfonts:/usr/share/fonts/ttf/korean/baekmuk:/usr/share/fonts/baekmuk-fonts:/usr/X11R6/lib/X11/fonts/truetype:/usr/share/fonts/kochi-substitute" - - use X && myconf="${myconf} --with-x" \ - || myconf="${myconf} --without-x" - - use cups && myconf="${myconf} --enable-cups" \ - || myconf="${myconf} --disable-cups" - - # -O3 will make ghostscript fail when compiling with gcc 3.4 - if [ "`gcc-major-version`" -eq "3" ] && [ "`gcc-minor-version`" -eq "4" ] - then - strip-flags - replace-flags -O? -O2 - fi - - autoconf - econf ${myconf} || die "econf failed" - emake -j1 || die "make failed" - - cd ijs - econf || die "econf failed" - emake -j1 || die "make failed" - cd .. -} - -src_install() { - make DESTDIR="${D}" install || die "make install failed" - - rm -fr ${D}/usr/share/ghostscript/7.07/doc || die - dodoc doc/README doc/COPYING doc/COPYING.LGPL - dohtml doc/*.html doc/*.htm - - if use emacs; then - insinto /usr/share/emacs/site-lisp - doins doc/gsdoc.el - fi - - 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 - - # Install ijs - cd ${S}/ijs - dodir /usr/bin /usr/include /usr/$(get_libdir) - # This is broken - there are not even a 'install_prefix' - # anywhere in ${S}/ijs ... - #einstall install_prefix=${D} - #einstall - #dosed "s:^prefix=.*:prefix=/usr:" /usr/bin/ijs-config - make DESTDIR="${D}" install || die - - # bug #83876, collision with gcc - rm -f ${D}/usr/share/man/de/man1/ansi2knr.1 - rm -f ${D}/usr/share/man/man1/ansi2knr.1 -} |