summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-text/ghostscript-esp/ChangeLog6
-rw-r--r--app-text/ghostscript-esp/files/ijs-dirinstall.diff30
-rw-r--r--app-text/ghostscript-esp/ghostscript-esp-8.15.1.ebuild56
3 files changed, 55 insertions, 37 deletions
diff --git a/app-text/ghostscript-esp/ChangeLog b/app-text/ghostscript-esp/ChangeLog
index 0c5dbf8c5fbd..e59ea724a2a5 100644
--- a/app-text/ghostscript-esp/ChangeLog
+++ b/app-text/ghostscript-esp/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-text/ghostscript
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-esp/ChangeLog,v 1.8 2006/02/01 18:18:03 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-esp/ChangeLog,v 1.9 2006/02/05 17:52:11 genstef Exp $
+
+ 05 Feb 2006; Stefan Schweizer <genstef@gentoo.org>
+ +files/ijs-dirinstall.diff, ghostscript-esp-8.15.1.ebuild:
+ Remove harddep on gtk, bug 120413 thanks to Christoph Peus <cp@uni-wh.de>
01 Feb 2006; Marcelo Goes <vanquirius@gentoo.org>
ghostscript-esp-7.07.1-r8.ebuild:
diff --git a/app-text/ghostscript-esp/files/ijs-dirinstall.diff b/app-text/ghostscript-esp/files/ijs-dirinstall.diff
new file mode 100644
index 000000000000..af641cc40d39
--- /dev/null
+++ b/app-text/ghostscript-esp/files/ijs-dirinstall.diff
@@ -0,0 +1,30 @@
+diff -Nur espgs-8.15.1/ijs.orig/Makefile.in espgs-8.15.1/ijs/Makefile.in
+--- espgs-8.15.1/ijs.orig/Makefile.in 2006-02-05 17:36:14.000000000 +0100
++++ espgs-8.15.1/ijs/Makefile.in 2006-02-05 17:41:57.000000000 +0100
+@@ -326,7 +326,7 @@
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+- test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
++ test -z "$(DESTDIR)$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+@@ -355,7 +355,7 @@
+ $(LINK) -rpath $(libdir) $(libijs_la_LDFLAGS) $(libijs_la_OBJECTS) $(libijs_la_LIBADD) $(LIBS)
+ install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+- test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
++ test -z "$(DESTDIR)$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+@@ -495,7 +495,7 @@
+ done
+ install-pkgincludeHEADERS: $(pkginclude_HEADERS)
+ @$(NORMAL_INSTALL)
+- test -z "$(pkgincludedir)" || $(mkdir_p) "$(DESTDIR)$(pkgincludedir)"
++ test -z "$(DESTDIR)$(pkgincludedir)" || $(mkdir_p) "$(DESTDIR)$(pkgincludedir)"
+ @list='$(pkginclude_HEADERS)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
diff --git a/app-text/ghostscript-esp/ghostscript-esp-8.15.1.ebuild b/app-text/ghostscript-esp/ghostscript-esp-8.15.1.ebuild
index 0adf6a896b72..f2a9ae996297 100644
--- a/app-text/ghostscript-esp/ghostscript-esp-8.15.1.ebuild
+++ b/app-text/ghostscript-esp/ghostscript-esp-8.15.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-esp/ghostscript-esp-8.15.1.ebuild,v 1.2 2006/01/05 22:06:47 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-esp/ghostscript-esp-8.15.1.ebuild,v 1.3 2006/02/05 17:52:11 genstef Exp $
inherit autotools eutils flag-o-matic
@@ -14,7 +14,7 @@ SRC_URI="http://ftp.easysw.com/pub/ghostscript/${PV}/espgs-${PV}-source.tar.bz2
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="X cups cjk emacs gtk"
+IUSE="X cups cjk emacs gtk threads"
DEP="virtual/libc
>=media-libs/jpeg-6b
@@ -43,18 +43,11 @@ PROVIDE="virtual/ghostscript"
S=${WORKDIR}/espgs-8.15.1
src_unpack() {
-
unpack ${A}
-
cd ${S}
- append-flags "-fPIC"
-
epatch ${FILESDIR}/gs-${PV}destdir.patch
epatch ${FILESDIR}/ghostscript-build.patch
- if use gtk;then
- epatch ${FILESDIR}/ghostscript-gtk2.patch
- fi
epatch ${FILESDIR}/ghostscript-scripts.patch
epatch ${FILESDIR}/ghostscript-ps2epsi.patch
epatch ${FILESDIR}/ghostscript-badc.patch
@@ -63,31 +56,34 @@ src_unpack() {
epatch ${FILESDIR}/ghostscript-use-external-freetype.patch
epatch ${FILESDIR}/ghostscript-split-font-configuration.patch
+ # not submitted
+ epatch ${FILESDIR}/ijs-dirinstall.diff
+ epatch ${FILESDIR}/ghostscript-gtk2.patch
+ if ! use gtk; then
+ sed -i "s:\$(GSSOX)::" src/*.mak || die "gsx sed failed"
+ sed -i "s:.*\$(GSSOX_XENAME)$::" src/*.mak || die "gsxso sed failed"
+ fi
+
# search path fix
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/8.15/$(get_libdir):"\
- Makefile.in || die "sed failed"
+ Makefile.in || die "sed failed"
sed -i -e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \
- Makefile.in || die "sed failed"
- # Add -fPIC to build with AMD64
- sed -i -e 's/CFLAGS=$(GCFLAGS) $(XCFLAGS) $(ACDEFS)/CFLAGS=$(GCFLAGS) $(XCFLAGS) $(ACDEFS) -fPIC/g' src/unix-gcc.mak || die
+ Makefile.in || die "sed failed"
+
+ eautoreconf
}
src_compile() {
local myconf
- myconf="--with-ijs --without-gimp-print"
- use gtk && myconf="${myconf} --with-omni" || myconf="${myconf} --without-omni"
+ myconf="--enable-dynamic --with-ijs --with-omni --with-jbig2dec"
# 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"
-
- eautoreconf
- econf ${myconf} || die "econf failed"
+ econf $(use_with X x) \
+ $(use_enable cups) \
+ $(use_enable threads) \
+ ${myconf} || die "econf failed"
emake -j1 || die "make failed"
emake so -j1 || die "make failed"
@@ -98,8 +94,6 @@ src_compile() {
}
src_install() {
-
-# dodir /usr/share/ghostscript
make DESTDIR="${D}" install || die "make install failed"
make DESTDIR="${D}" soinstall || die "make install failed"
@@ -123,15 +117,5 @@ src_install() {
# 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
+ make DESTDIR="${D}" install || die "ijs install failed"
}