summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Buisse <nattfodd@gentoo.org>2006-02-18 16:50:16 +0000
committerAlexandre Buisse <nattfodd@gentoo.org>2006-02-18 16:50:16 +0000
commite2305e9e79434ba190a2e35c8a44e86fb27b3f36 (patch)
tree930941ef7a044f0f35ea8319d7f4d4fbbee3590f /app-text/cstetex/cstetex-2.0.2-r2.ebuild
parentfix for bug #107387 (diff)
downloadhistorical-e2305e9e79434ba190a2e35c8a44e86fb27b3f36.tar.gz
historical-e2305e9e79434ba190a2e35c8a44e86fb27b3f36.tar.bz2
historical-e2305e9e79434ba190a2e35c8a44e86fb27b3f36.zip
Corrects most recent tetex-2 issues.
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'app-text/cstetex/cstetex-2.0.2-r2.ebuild')
-rw-r--r--app-text/cstetex/cstetex-2.0.2-r2.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/app-text/cstetex/cstetex-2.0.2-r2.ebuild b/app-text/cstetex/cstetex-2.0.2-r2.ebuild
new file mode 100644
index 000000000000..335926d2d822
--- /dev/null
+++ b/app-text/cstetex/cstetex-2.0.2-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/cstetex/cstetex-2.0.2-r2.ebuild,v 1.1 2006/02/18 16:50:16 nattfodd Exp $
+
+inherit tetex-2
+
+IUSE=""
+DESCRIPTION="a complete TeX distribution with Czech and Slovak support"
+HOMEPAGE="http://math.feld.cvut.cz/olsak/cstex/"
+
+CSTEX="csfonts.tar.gz csplain.tar.gz cslatex.tar.gz cspsfonts.tar.gz csfonts-t1.tar.gz"
+ENCTEX="enctex.tar.gz"
+SRC_URI="${SRC_URI} ftp://math.feld.cvut.cz/pub/olsak/enctex/${ENCTEX}"
+for FILE in ${CSTEX}; do
+ SRC_URI="${SRC_URI} ftp://math.feld.cvut.cz/pub/cstex/base/${FILE}"
+done
+
+KEYWORDS="~x86 ~amd64"
+
+src_unpack() {
+ tetex-2_src_unpack
+
+ cd ${S}
+ for FILE in ${CSTEX}; do
+ unpack ${FILE}
+ done
+ epatch ${FILESDIR}/${P}.diff
+ cd ${S}/texk/web2c
+ unpack ${ENCTEX}
+ epatch enctex/enctex.patch-to-7.5
+
+ # bug 75801
+ EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-CESA-2004-007-xpdf2-newer.diff
+ EPATCH_OPTS="-d ${S}/libs/xpdf -p1" epatch ${FILESDIR}/xpdf-goo-sizet.patch
+ EPATCH_OPTS="-d ${S}/libs/xpdf -p1" epatch ${FILESDIR}/xpdf2-underflow.patch
+ EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-3.00pl2-CAN-2004-1125.patch
+ EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-3.00pl3-CAN-2005-0064.patch
+ EPATCH_OPTS="-d ${S} -p1" epatch ${FILESDIR}/xdvizilla.patch
+
+ #bug 115775
+ EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p2" epatch ${FILESDIR}/xpdf-2.02pl1-CAN-2005-3191-3.patch
+
+ #bug 122365
+ EPATCH_OPTS="-d ${WORKDIR}" epatch ${FILESDIR}/${P}-flex-unput.patch
+
+ # bug 118264
+ EPATCH_OPTS="-d ${WORKDIR} -p0" epatch ${FILESDIR}/${P}-dvi-draw-conflicting-types.patch
+}
+
+src_install() {
+ tetex-2_src_install
+
+ einfo "Installing Czech files..."
+ dodir /usr/share/texmf/tex/enctex
+ cd ${S}
+ cp -v texk/web2c/enctex/*.tex ${D}/usr/share/texmf/tex/enctex
+}
+
+pkg_postrm() {
+ if [ ! -f ${ROOT}/usr/bin/tex ] ; then
+ for i in cslatex csplain pdfcslatex pdfcsplain; do
+ rm ${ROOT}/usr/bin/$i
+ done
+ fi
+}