summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Turk <satai@gentoo.org>2002-09-05 08:06:13 +0000
committerMatthew Turk <satai@gentoo.org>2002-09-05 08:06:13 +0000
commit2a2401428ec7078b936160fe1697b1a1dd56b82e (patch)
tree313afa4f73601465ea26f3a0d95126d3147d7487 /app-text
parentGetting rid of this; not needed anymore. (diff)
downloadhistorical-2a2401428ec7078b936160fe1697b1a1dd56b82e.tar.gz
historical-2a2401428ec7078b936160fe1697b1a1dd56b82e.tar.bz2
historical-2a2401428ec7078b936160fe1697b1a1dd56b82e.zip
Adding pretest version of teTeX. Currently masked.
Diffstat (limited to 'app-text')
-rw-r--r--app-text/tetex/files/digest-tetex-200209015
-rw-r--r--app-text/tetex/files/tetex-20020901-fontmap.diff57
-rw-r--r--app-text/tetex/tetex-20020901.ebuild172
3 files changed, 234 insertions, 0 deletions
diff --git a/app-text/tetex/files/digest-tetex-20020901 b/app-text/tetex/files/digest-tetex-20020901
new file mode 100644
index 000000000000..6913914fc32c
--- /dev/null
+++ b/app-text/tetex/files/digest-tetex-20020901
@@ -0,0 +1,5 @@
+MD5 692e98841adb9696c32fb976a99bfbc0 teTeX-src-beta-20020901.tar.gz 10064871
+MD5 a623715d418f2c02f16806eb91b288ca teTeX-texmfsrc-beta-20020829.tar.gz 23355616
+MD5 8ecfd4809e99e2475e946578f38b9623 teTeX-texmf-beta-20020901.tar.gz 48760604
+MD5 12925188fdadcd6a970c21bba3269fc2 ec-ready-mf-tfm.tar.gz 386630
+MD5 37393316b285926214c247acd55db743 teTeX-french.tar.gz 268161
diff --git a/app-text/tetex/files/tetex-20020901-fontmap.diff b/app-text/tetex/files/tetex-20020901-fontmap.diff
new file mode 100644
index 000000000000..64a3bb064320
--- /dev/null
+++ b/app-text/tetex/files/tetex-20020901-fontmap.diff
@@ -0,0 +1,57 @@
+--- texk.orig/tetex/updmap Mon Sep 2 11:16:34 2002
++++ texk/tetex/updmap Mon Sep 2 10:32:22 2002
+@@ -290,13 +290,13 @@
+ -e 's/ NimbusMonL-Regu / Courier /' \
+ -e 's/ NimbusMonL-ReguObli / Courier-Oblique /' \
+ -e 's/ NimbusSanL-Bold / Helvetica-Bold /' \
+- -e 's/ NimbusSanL-BoldCond / Helvetica-Condensed-Bold /' \
++ -e 's/ NimbusSanL-BoldCond / Helvetica-Narrow-Bold /' \
+ -e 's/ NimbusSanL-BoldItal / Helvetica-BoldOblique /' \
+- -e 's/ NimbusSanL-BoldCondItal / Helvetica-Condensed-BoldObl /' \
++ -e 's/ NimbusSanL-BoldCondItal / Helvetica-Narrow-BoldOblique /' \
+ -e 's/ NimbusSanL-Regu / Helvetica /' \
+- -e 's/ NimbusSanL-ReguCond / Helvetica-Condensed /' \
++ -e 's/ NimbusSanL-ReguCond / Helvetica-Narrow /' \
+ -e 's/ NimbusSanL-ReguItal / Helvetica-Oblique /' \
+- -e 's/ NimbusSanL-ReguCondItal / Helvetica-Condensed-Oblique /' \
++ -e 's/ NimbusSanL-ReguCondItal / Helvetica-Narrow-Oblique /' \
+ -e 's/ CenturySchL-Bold / NewCenturySchlbk-Bold /' \
+ -e 's/ CenturySchL-BoldItal / NewCenturySchlbk-BoldItalic /' \
+ -e 's/ CenturySchL-Roma / NewCenturySchlbk-Roman /' \
+@@ -335,13 +335,13 @@
+ -e 's/\<ucrr8a.pfb\>/pcrr8a.pfb/' \
+ -e 's/\<ucrro8a.pfb\>/pcrro8a.pfb/' \
+ -e 's/\<uhvb8a.pfb\>/phvb8a.pfb/' \
+- -e 's/\<uhvb8ac.pfb\>/phvb8ac.pfb/' \
++ -e 's/\<uhvb8ac.pfb\>/phvb8an.pfb/' \
+ -e 's/\<uhvbo8a.pfb\>/phvbo8a.pfb/' \
+- -e 's/\<uhvbo8ac.pfb\>/phvbo8ac.pfb/' \
++ -e 's/\<uhvbo8ac.pfb\>/phvbo8an.pfb/' \
+ -e 's/\<uhvr8a.pfb\>/phvr8a.pfb/' \
+- -e 's/\<uhvr8ac.pfb\>/phvr8ac.pfb/' \
++ -e 's/\<uhvr8ac.pfb\>/phvr8an.pfb/' \
+ -e 's/\<uhvro8a.pfb\>/phvro8a.pfb/' \
+- -e 's/\<uhvro8ac.pfb\>/phvro8ac.pfb/' \
++ -e 's/\<uhvro8ac.pfb\>/phvro8an.pfb/' \
+ -e 's/\<uncb8a.pfb\>/pncb8a.pfb/' \
+ -e 's/\<uncbi8a.pfb\>/pncbi8a.pfb/' \
+ -e 's/\<uncr8a.pfb\>/pncr8a.pfb/' \
+@@ -425,13 +425,13 @@
+ -e 's/\<ucrr8a.pfb\>/com_____.pfb/' \
+ -e 's/\<ucrro8a.pfb\>/coo_____.pfb/' \
+ -e 's/\<uhvb8a.pfb\>/hvb_____.pfb/' \
+- -e 's/\<uhvb8ac.pfb\>/hvcb____.pfb/' \
++ -e 's/\<uhvb8ac.pfb\>/hvnb____.pfb/' \
+ -e 's/\<uhvbo8a.pfb\>/hvbo____.pfb/' \
+- -e 's/\<uhvbo8ac.pfb\>/hvcbo___.pfb/' \
++ -e 's/\<uhvbo8ac.pfb\>/hvnbo___.pfb/' \
+ -e 's/\<uhvr8a.pfb\>/hv______.pfb/' \
+- -e 's/\<uhvr8ac.pfb\>/hvc_____.pfb/' \
++ -e 's/\<uhvr8ac.pfb\>/hvn_____.pfb/' \
+ -e 's/\<uhvro8a.pfb\>/hvo_____.pfb/' \
+- -e 's/\<uhvro8ac.pfb\>/hvcdo___.pfb/' \
++ -e 's/\<uhvro8ac.pfb\>/hvno____.pfb/' \
+ -e 's/\<uncb8a.pfb\>/ncb_____.pfb/' \
+ -e 's/\<uncbi8a.pfb\>/ncbi____.pfb/' \
+ -e 's/\<uncr8a.pfb\>/ncr_____.pfb/' \
+
diff --git a/app-text/tetex/tetex-20020901.ebuild b/app-text/tetex/tetex-20020901.ebuild
new file mode 100644
index 000000000000..a887ff6f2df0
--- /dev/null
+++ b/app-text/tetex/tetex-20020901.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-20020901.ebuild,v 1.1 2002/09/05 08:06:13 satai Exp $
+
+TEXMFSRC="teTeX-texmfsrc-beta-20020829.tar.gz"
+TEXMF="teTeX-texmf-beta-20020901.tar.gz"
+S=${WORKDIR}/teTeX-src-beta-${PV}
+DESCRIPTION="teTeX is a complete TeX distribution"
+SRC_URI="ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/1.0/distrib/sources/teTeX-src-beta-20020901.tar.gz
+ ftp://ftp.dante.de/pub/tex/systems/unix/teTeX/1.0/contrib/ghibo/${TEXMFSRC}
+ ftp://ftp.dante.de/pub/tex/systems/unix/teTeX/1.0/contrib/ghibo/${TEXMF}
+ http://www.ibiblio.org/gentoo/distfiles/ec-ready-mf-tfm.tar.gz
+ http://www.ibiblio.org/gentoo/distfiles/teTeX-french.tar.gz"
+HOMEPAGE="http://tug.cs.umb.edu/tetex/"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="sys-apps/ed
+ sys-libs/zlib
+ X? ( virtual/x11 )
+ png? ( >=media-libs/libpng-1.2.1 )
+ ncurses? ( sys-libs/ncurses )
+ libwww? ( >=net-libs/libwww-5.4.0-r1 )"
+
+RDEPEND=">=sys-devel/perl-5.2
+ dev-util/dialog"
+
+KEYWORDS="x86 ppc sparc sparc64"
+
+src_unpack() {
+
+ unpack teTeX-src-beta-20020901.tar.gz
+
+ mkdir ${S}/texmf
+ cd ${S}/texmf
+ echo ">>> Unpacking ${TEXMFSRC}"
+ tar xzf ${DISTDIR}/${TEXMFSRC}
+ echo ">>> Unpacking ${TEXMF}"
+ tar xzf ${DISTDIR}/${TEXMF}
+ echo ">>> Unpacking ec-ready-mf-tfm.tar.gz"
+ tar xzf ${DISTDIR}/ec-ready-mf-tfm.tar.gz -C ..
+ echo ">>> Unpacking teTeX-french.tar.gz"
+ tar xzf ${DISTDIR}/teTeX-french.tar.gz
+
+ cd ${S}
+ patch -p0 < ${FILESDIR}/tetex-20020901-fontmap.diff
+
+ #cd ${WORKDIR}
+ #patch -p0 < ${FILESDIR}/teTeX-1.0-gentoo.diff || die
+
+ #cd ${S}
+ #patch -p0 < ${FILESDIR}/teTeX-1.0.dif || die
+
+ # Fix problem where the *.fmt files are not generated due to the LaTeX
+ # source being older than a year.
+# local x
+# for x in `find ${S}/texmf/ -type f -name '*.ini'`
+# do
+# cp ${x} ${x}.orig
+# sed -e '1i \\scrollmode' ${x}.orig > ${x}
+# rm -f ${x}.orig
+# done
+
+}
+
+src_compile() {
+
+ local myconf
+ use X \
+ && myconf="--with-x" \
+ || myconf="--without-x"
+
+ use libwww && ( \
+ myconf="${myconf} --with-system-wwwlib"
+ )
+
+ use png \
+ && myconf="${myconf} --with-system-pnglib"
+
+
+ use ncurse \
+ && myconf="${myconf} --with-system-ncurses"
+
+
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --datadir=/usr/share \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --datadir=${S} \
+ --without-texinfo \
+ --without-dialog \
+ --with-system-zlib \
+ --disable-multiplatform \
+ --with-epsfwin \
+ --with-mftalkwin \
+ --with-regiswin \
+ --with-tektronixwin \
+ --with-unitermwin \
+ --with-ps=gs \
+ --enable-ipc \
+ --with-etex \
+ ${myconf} || die
+
+ make texmf=/usr/share/texmf || die
+}
+
+src_install() {
+
+ cd ${S}
+ dodir /usr/share/
+ cp -af texmf ${D}/usr/share
+ sed -e 's: \$(scriptdir)/mktexlsr: echo:' \
+ -e 's:\$(scriptdir)/texconfig init:echo:' \
+ Makefile > Makefile.install
+ make prefix=${D}/usr \
+ bindir=${D}/usr/bin \
+ datadir=${D}/usr/share \
+ mandir=${D}/usr/share/man/man1 \
+ infodir=${D}/usr/share/info \
+ texmf=${D}/usr/share/texmf \
+ -f Makefile.install \
+ install || die
+
+ dodoc PROBLEMS README
+ docinto texk
+ dodoc texk/ChangeLog texk/README
+ docinto kpathesa
+ cd ${S}/texk/kpathsea
+ dodoc README* NEWS PROJECTS HIER
+ docinto dviljk
+ cd ${S}/texk/dviljk
+ dodoc AUTHORS README NEWS
+ docinto dvipsk
+ cd ${S}/texk/dvipsk
+ dodoc AUTHORS ChangeLog INSTALLATION README
+ docinto makeindexk
+ cd ${S}/texk/makeindexk
+ dodoc CONTRIB COPYING NEWS NOTES PORTING README
+ docinto ps2pkm
+ cd ${S}/texk/ps2pkm
+ dodoc ChangeLog CHANGES.type1 INSTALLATION README*
+ docinto web2c
+ cd ${S}/texk/web2c
+ dodoc AUTHORS ChangeLog NEWS PROJECTS README
+ docinto xdvik
+ cd ${S}/texk/xdvik
+ dodoc BUGS FAQ README*
+
+ #fix for conflicting readlink binary:
+ rm ${D}/bin/readlink
+ #add /var/cache/fonts directory
+ dodir /var/cache/fonts
+
+ #fix for lousy upstream permisssions on /usr/share/texmf files
+ fowners root.root /usr/share/texmf/*
+}
+
+pkg_postinst() {
+
+ if [ $ROOT = "/" ]
+ then
+ echo ">>> Configuring teTeX..."
+ mktexlsr >/dev/null 2>&1
+ texlinks >/dev/null 2>&1
+ texconfig init >/dev/null 2>&1
+ texconfig confall >/dev/null 2>&1
+ texconfig font vardir /var/cache/fonts >/dev/null 2>&1
+ echo "*** use 'texconfig font rw' to allow all users to generate fonts ***"
+ fi
+}