View | Details | Raw Unified
Collapse All | Expand All

(-) /home/cbm/Desktop/ghostscript-gnu-8.60.0.ebuild (-17 / +15 lines)
 Lines 3-8    Link Here 
# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gnu-8.55.ebuild,v 1.6 2006/09/23 02:37:18 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gnu-8.55.ebuild,v 1.6 2006/09/23 02:37:18 vapier Exp $
WANT_AUTOMAKE=1.9
WANT_AUTOMAKE=1.9
inherit autotools elisp-common eutils versionator flag-o-matic
inherit autotools elisp-common eutils versionator flag-o-matic
DESCRIPTION="GNU Ghostscript - patched GPL Ghostscript"
DESCRIPTION="GNU Ghostscript - patched GPL Ghostscript"
 Lines 17-30    Link Here 
LICENSE="GPL-2"
LICENSE="GPL-2"
SLOT="0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ppc64 ~sparc ~x86 ~x86-fbsd"
KEYWORDS="~alpha ~amd64 ~ppc ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="X cups cjk emacs gtk jpeg2k"
IUSE="X cups cjk gtk jpeg2k"
DEP="virtual/libc
DEP="virtual/libc
	>=media-libs/jpeg-6b
	>=media-libs/jpeg-6b
	>=media-libs/libpng-1.2.5
	>=media-libs/libpng-1.2.5
	>=sys-libs/zlib-1.1.4
	>=sys-libs/zlib-1.1.4
	>=media-libs/tiff-3.7
	>=media-libs/tiff-3.7
	X? ( || ( x11-libs/libXt virtual/x11 ) )
	X? ( x11-libs/libXt x11-libs/libXext )
	gtk? ( >=x11-libs/gtk+-2.0 )
	gtk? ( >=x11-libs/gtk+-2.0 )
	cups? ( >=net-print/cups-1.1.20 )
	cups? ( >=net-print/cups-1.1.20 )
	jpeg2k? ( media-libs/jasper )
	jpeg2k? ( media-libs/jasper )
 Lines 42-55    Link Here 
S=${WORKDIR}/${MY_P}
S=${WORKDIR}/${MY_P}
MAKEOPTS="${MAKEOPTS} -j1"
src_unpack() {
src_unpack() {
	unpack ${A/adobe-cmaps-200406.tar.gz acro5-cmaps-2001.tar.gz}
	unpack ${A/adobe-cmaps-200406.tar.gz acro5-cmaps-2001.tar.gz}
	ln -s ${S}/{,src}/Makefile.in
	if use cjk; then
	if use cjk; then
		cat ${FILESDIR}/ghostscript-esp-8.15.2-cidfmap.cjk >> ${S}/lib/cidfmap
		cat "${FILESDIR}"/ghostscript-esp-8.15.2-cidfmap.cjk >> "${S}"/lib/cidfmap
		cat ${FILESDIR}/ghostscript-esp-8.15.2-FAPIcidfmap.cjk >> ${S}/lib/FAPIcidfmap
		cat "${FILESDIR}"/ghostscript-esp-8.15.2-FAPIcidfmap.cjk >> "${S}"/lib/FAPIcidfmap
		cd ${S}/Resource
		cd "${S}"/Resource
		unpack adobe-cmaps-200406.tar.gz
		unpack adobe-cmaps-200406.tar.gz
		unpack acro5-cmaps-2001.tar.gz
		unpack acro5-cmaps-2001.tar.gz
		cd ${WORKDIR}
		cd ${WORKDIR}
 Lines 63-97    Link Here 
		-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
		-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
		-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
		-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
		-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
		-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
		Makefile.in src/*.mak || die "sed failed"
		Makefile.in src/Makefile.in src/*.mak || die "sed failed"
}
}
src_compile() {
src_compile() {
	econf \
	econf $(use_with X x) \
		$(use_with X x) \
		$(use_enable gtk) \
		$(use_with jpeg2k jasper) \
		$(use_with jpeg2k jasper) \
		$(use_enable cups) \
		$(use_enable gtk) \
		--with-ijs \
		--with-ijs \
		--with-jbig2dec \
		--with-jbig2dec \
		--disable-compile-inits \
		--disable-compile-inits \
		--enable-dynamic \
		--enable-dynamic \
		|| die "econf failed"
		|| die "econf failed"
	cd ${S}/ijs
	econf || die "ijs econf failed"
	
	
	cd ${S}
	emake -j1 so all || die "emake failed"
	emake || die "emake failed"
	cd ${S}/ijs
	cd ijs
	econf || die "ijs econf failed"
	emake || die "ijs emake failed"
	emake || die "ijs emake failed"
}
}
src_install() {
src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	emake DESTDIR="${D}" install || die "emake install failed"
	rm -fr ${D}/usr/share/doc/${PF}/html/{README,PUBLIC}
	rm -fr "${D}"/usr/share/doc/${PF}/html/{README,PUBLIC}
	dodoc doc/README
	dodoc doc/README
	use emacs && elisp-site-file-install doc/gsdoc.el
	cd ${S}/ijs
	cd ${S}/ijs
	emake DESTDIR="${D}" install || die "emake ijs install failed"
	emake DESTDIR="${D}" install || die "emake ijs install failed"