summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2003-12-08 14:18:11 +0000
committerHeinrich Wendel <lanius@gentoo.org>2003-12-08 14:18:11 +0000
commit982ffd8bf57e40de6a96adf17227e07da965bba4 (patch)
treec289bf4da862f78eeee6505889cabe8384c93c55 /app-text/ghostscript-afpl
parentinitial revision (diff)
downloadgentoo-2-982ffd8bf57e40de6a96adf17227e07da965bba4.tar.gz
gentoo-2-982ffd8bf57e40de6a96adf17227e07da965bba4.tar.bz2
gentoo-2-982ffd8bf57e40de6a96adf17227e07da965bba4.zip
initial revision
Diffstat (limited to 'app-text/ghostscript-afpl')
-rw-r--r--app-text/ghostscript-afpl/ChangeLog10
-rw-r--r--app-text/ghostscript-afpl/Manifest5
-rw-r--r--app-text/ghostscript-afpl/files/digest-ghostscript-afpl-8.115
-rw-r--r--app-text/ghostscript-afpl/files/gs-8.11-ijs.patch22
-rw-r--r--app-text/ghostscript-afpl/ghostscript-afpl-8.11.ebuild110
-rw-r--r--app-text/ghostscript-afpl/metadata.xml5
6 files changed, 155 insertions, 2 deletions
diff --git a/app-text/ghostscript-afpl/ChangeLog b/app-text/ghostscript-afpl/ChangeLog
new file mode 100644
index 000000000000..d31d8c18a3f3
--- /dev/null
+++ b/app-text/ghostscript-afpl/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-text/ghostscript-afpl
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-afpl/ChangeLog,v 1.1 2003/12/08 14:18:06 lanius Exp $
+
+*ghostscript-afpl-8.11 (08 Dec 2003)
+
+ 08 Dec 2003; Heinrich Wendel <lanius@gentoo.org>
+ ghostscript-afpl-8.11.ebuild, metadata.xml, files/gs-8.11-ijs.patch:
+ initial revision
+
diff --git a/app-text/ghostscript-afpl/Manifest b/app-text/ghostscript-afpl/Manifest
index d539e0aa5b7f..846cd4d7e180 100644
--- a/app-text/ghostscript-afpl/Manifest
+++ b/app-text/ghostscript-afpl/Manifest
@@ -1,4 +1,5 @@
-MD5 69473a1f502652ade8869091b2e57a3e ghostscript-afpl-8.11.ebuild 2913
-MD5 1ead814285cb55b5d84cb262ff4627f8 .ghostscript-afpl-8.11.ebuild.swp 12288
+MD5 3d2baaa781b90f719222850f24ad9c55 ghostscript-afpl-8.11.ebuild 3056
+MD5 cd6be8d50fe01cad604a32c3ef06de53 ChangeLog 412
+MD5 26b4b081d538c195dc39bcb2ec8e6f3a metadata.xml 161
MD5 c2ae99630b9c6264495d16e128e82fd8 files/digest-ghostscript-afpl-8.11 359
MD5 dbdb3cd0aea8f9032baa11bc335d181a files/gs-8.11-ijs.patch 757
diff --git a/app-text/ghostscript-afpl/files/digest-ghostscript-afpl-8.11 b/app-text/ghostscript-afpl/files/digest-ghostscript-afpl-8.11
new file mode 100644
index 000000000000..6658122c2caa
--- /dev/null
+++ b/app-text/ghostscript-afpl/files/digest-ghostscript-afpl-8.11
@@ -0,0 +1,5 @@
+MD5 cc10034312eec4d8b36602e823c7654a ghostscript-8.11.tar.gz 6417040
+MD5 6865682b095f8c4500c54b285ff05ef6 ghostscript-fonts-std-8.11.tar.gz 3752871
+MD5 a3bf430a7e21cd82401258a2ec3b8afb adobe-cmaps-200204.tar.gz 4360486
+MD5 2fbae60417d42779f6488ab897dcaaf6 acro5-cmaps-2001.tar.gz 631653
+MD5 09d0be2bad1b0617bc0eba6eef81f6e9 cups-1.1.20-source.tar.bz2 3741510
diff --git a/app-text/ghostscript-afpl/files/gs-8.11-ijs.patch b/app-text/ghostscript-afpl/files/gs-8.11-ijs.patch
new file mode 100644
index 000000000000..b3b33a578ee9
--- /dev/null
+++ b/app-text/ghostscript-afpl/files/gs-8.11-ijs.patch
@@ -0,0 +1,22 @@
+--- ijs/Makefile.in 2003-05-29 18:38:04.000000000 +0200
++++ ijs/Makefile.in 2003-12-06 16:52:37.000000000 +0100
+@@ -7,7 +7,7 @@
+
+ # todo: this needs to be .dylib on OS X - write a test
+ SHARED_OBJ=.so
+-SHARED_OBJ=.dylib
++#SHARED_OBJ=.dylib
+
+ EXE=
+ FE=-o
+@@ -43,8 +43,8 @@
+ # makes sense to separate them, but they're small enough to make this probably
+ # not worthwhile.
+ libijs$(SHARED_OBJ): $(LIB_OBJS)
+- #$(CC) -shared $^ -o $@
+- $(CC) -dynamic $^ -o $@
++ $(CC) -shared $^ -o $@
++ #$(CC) -dynamic $^ -o $@
+
+ ijs_client_example$(EXE): ijs_client_example$(OBJ) ijs_client$(OBJ) $(IJS_COMMON_OBJ) $(IJS_EXEC_SERVER)
+ $(CC) $(CFLAGS) $(FE)ijs_client_example$(EXE) ijs_client_example$(OBJ) ijs_client$(OBJ) $(IJS_COMMON_OBJ) $(IJS_EXEC_SERVER) $(LDLIBS)
diff --git a/app-text/ghostscript-afpl/ghostscript-afpl-8.11.ebuild b/app-text/ghostscript-afpl/ghostscript-afpl-8.11.ebuild
new file mode 100644
index 000000000000..55275c6756c0
--- /dev/null
+++ b/app-text/ghostscript-afpl/ghostscript-afpl-8.11.ebuild
@@ -0,0 +1,110 @@
+# 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-afpl/ghostscript-afpl-8.11.ebuild,v 1.1 2003/12/08 14:18:06 lanius Exp $
+
+inherit eutils
+
+DESCRIPTION="AFPL Ghostscript"
+HOMEPAGE="http://www.cs.wisc.edu/~ghost/"
+MY_PN="ghostscript"
+MY_P=${MY_PN}-${PV}
+SRC_URI="mirror://sourceforge/ghostscript/${MY_P}.tar.gz
+ ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/${MY_PN}-fonts-std-${PV}.tar.gz
+ 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)
+ cups? ( ftp://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/cups-1.1.20-source.tar.bz2 )"
+
+LICENSE="Aladdin"
+SLOT="0"
+KEYWORDS="~x86"
+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? ( media-fonts/arphicfonts
+ media-fonts/kochi-substitute
+ media-fonts/baekmuk-fonts )
+ cups? ( >=net-print/cups-1.1.20 )
+ !app-text/ghostscript"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ cd ${WORKDIR}
+
+ unpack ghostscript-${PV}.tar.gz
+ unpack ghostscript-fonts-std-${PV}.tar.gz
+
+ if [ `use cups` ]; then
+ unpack cups-1.1.20-source.tar.bz2
+ cp -r cups-1.1.20/pstoraster ${S}
+ cd ${S}/pstoraster
+ sed -e 's:@prefix@:/usr:' -e 's:@exec_prefix@:${prefix}:' -e 's:@bindir@:${exec_prefix}/bin:' -e 's:@GS@:gs:' pstopxl.in > pstopxl
+ sed -i -e 's:/usr/local:/usr:' pstoraster
+ sed -i -e "s:pstopcl6:pstopxl:" cups.mak
+ fi
+
+ cd ${S}
+
+ use cups && epatch pstoraster/gs811-lib.patch
+
+ # ijs patch
+ epatch ${FILESDIR}/gs-${PV}-ijs.patch
+}
+
+src_compile() {
+ myconf="--with-ijs"
+
+ use X && myconf="${myconf} --with-x" \
+ || myconf="${myconf} --without-x"
+
+ econf ${myconf}
+
+ use cups && echo 'include pstoraster/cups.mak' >> Makefile; sed -i -e 's:DEVICE_DEVS17=:DEVICE_DEVS17=$(DD)cups.dev:' Makefile
+
+ # search path fix
+ sed -i -e 's:$(gsdatadir)/lib:/usr/share/ghostscript/8.11/lib:' Makefile
+ sed -i -e 's:$(gsdir)/fonts:/usr/share/ghostscript/fonts:' Makefile
+ sed -i -e 's:$(gsdatadir)/Resource:/usr/share/ghostscript/8.11/Resource:' Makefile
+
+ # includes fix
+ use cups && sed -i -e 's:LDFLAGS=$(XLDFLAGS):LDFLAGS=-L/usr/include -lcups -lcupsimage $(XLDFLAGS):' Makefile
+
+ make || die "make failed"
+
+ cd ijs
+ econf --prefix=${D}/usr
+ make || die "make failed"
+ cd ..
+}
+
+src_install() {
+ einstall install_prefix=${D}
+
+ cd ${WORKDIR}
+ cp -a fonts ${D}/usr/share/ghostscript || die
+ cd ${S}
+
+ rm -fr ${D}/usr/share/ghostscript/${PV}/doc || die
+ dodoc doc/README
+ 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
+
+ # Install ijs
+ cd ${S}/ijs
+ dodir /usr/bin /usr/include /usr/lib
+ einstall install_prefix=${D}
+}
diff --git a/app-text/ghostscript-afpl/metadata.xml b/app-text/ghostscript-afpl/metadata.xml
new file mode 100644
index 000000000000..1fa0ca569505
--- /dev/null
+++ b/app-text/ghostscript-afpl/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>printing</herd>
+</pkgmetadata>