summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Turk <satai@gentoo.org>2003-03-14 22:52:14 +0000
committerMatthew Turk <satai@gentoo.org>2003-03-14 22:52:14 +0000
commit690d4ec60902c2459b1af3e57b6d638e60100237 (patch)
tree39fddf336fbb8f84f141a2846390f30ba7c7ed80 /app-text
parentbackport the fix for #16329 to 3.0.x: env.d files now owned by arts not kdelibs (diff)
downloadgentoo-2-690d4ec60902c2459b1af3e57b6d638e60100237.tar.gz
gentoo-2-690d4ec60902c2459b1af3e57b6d638e60100237.tar.bz2
gentoo-2-690d4ec60902c2459b1af3e57b6d638e60100237.zip
Version update to tetex.
Diffstat (limited to 'app-text')
-rw-r--r--app-text/tetex/ChangeLog8
-rw-r--r--app-text/tetex/files/tetex-2.0.2-dont-run-config.diff33
-rw-r--r--app-text/tetex/files/tetex-2.0.2.diff47
-rw-r--r--app-text/tetex/tetex-2.0.2.ebuild183
4 files changed, 270 insertions, 1 deletions
diff --git a/app-text/tetex/ChangeLog b/app-text/tetex/ChangeLog
index a372d01782b6..bbdc75d3e7a0 100644
--- a/app-text/tetex/ChangeLog
+++ b/app-text/tetex/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/tetex
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/ChangeLog,v 1.35 2003/02/25 17:25:58 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/ChangeLog,v 1.36 2003/03/14 22:52:14 satai Exp $
+
+*tetex-2.0.2 (14 Mar 2003)
+
+ 14 Mar 2003; root <root@gentoo.org> tetex-2.0.2.ebuild,
+ files/tetex-2.0.2-dont-run-config.diff, files/tetex-2.0.2.diff:
+ Version bump. Not many changes. Still not using texmf-gg.
25 Feb 2003; Guy Martin <gmsoft@gentoo.org> tetex-1.0.7-r10.ebuild :
Added hppa to keywords.
diff --git a/app-text/tetex/files/tetex-2.0.2-dont-run-config.diff b/app-text/tetex/files/tetex-2.0.2-dont-run-config.diff
new file mode 100644
index 000000000000..6ab71bc5b229
--- /dev/null
+++ b/app-text/tetex/files/tetex-2.0.2-dont-run-config.diff
@@ -0,0 +1,33 @@
+--- Makefile.in.orig 2003-01-13 00:34:32.000000000 -0600
++++ Makefile.in 2003-01-13 00:35:42.000000000 -0600
+@@ -59,18 +59,18 @@
+ done
+ $(srcdir)/selfautofix "$(bindir)" "$(texmf)/web2c"
+ cd $(bindir); for i in $(ALLPROGS); do test -f $$i && echo strip $$i && strip $$i || true; done
+- if test -f $(scriptdir)/mktexlsr; then \
+- TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+- $(scriptdir)/mktexlsr; \
+- else :; fi
+- if test -f $(scriptdir)/fmtutil; then \
+- TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+- $(scriptdir)/fmtutil --all; \
+- else :; fi
+- if test -f $(scriptdir)/texlinks; then \
+- TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+- $(scriptdir)/texlinks; \
+- else :; fi
++ #if test -f $(scriptdir)/mktexlsr; then \
++ # TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
++ # $(scriptdir)/mktexlsr; \
++ #else :; fi
++ #if test -f $(scriptdir)/fmtutil; then \
++ # TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
++ # $(scriptdir)/fmtutil --all; \
++ #else :; fi
++ #if test -f $(scriptdir)/texlinks; then \
++ # TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
++ # $(scriptdir)/texlinks; \
++ #else :; fi
+
+ install-exec:
+ for dir in $(ESUBDIRS); do \
diff --git a/app-text/tetex/files/tetex-2.0.2.diff b/app-text/tetex/files/tetex-2.0.2.diff
new file mode 100644
index 000000000000..cc9f775e0e67
--- /dev/null
+++ b/app-text/tetex/files/tetex-2.0.2.diff
@@ -0,0 +1,47 @@
+diff -ru tetex-src-2.0-orig/texk/kpathsea/texmf.in tetex-src-2.0/texk/kpathsea/texmf.in
+--- tetex-src-2.0-orig/texk/kpathsea/texmf.in 2003-01-19 05:58:27.000000000 -0600
++++ tetex-src-2.0/texk/kpathsea/texmf.in 2003-02-05 20:17:16.000000000 -0600
+@@ -58,7 +58,7 @@
+ TEXMFMAIN = @texmf@
+
+ % A place for local additions to a "standard" texmf tree. For example:
+-TEXMFLOCAL = @texmf@-local
++TEXMFLOCAL = /usr/local/share/texmf
+
+ % If defined, teTeX's texconfig stores modifications here (instead of the
+ % TEXMFMAIN tree).
+diff -ru tetex-src-2.0-orig/texk/web2c/fmtutil.in tetex-src-2.0/texk/web2c/fmtutil.in
+--- tetex-src-2.0-orig/texk/web2c/fmtutil.in 2003-01-26 16:24:30.000000000 -0600
++++ tetex-src-2.0/texk/web2c/fmtutil.in 2003-02-05 20:17:44.000000000 -0600
+@@ -39,7 +39,7 @@
+
+ # Change "tex.ini -> bplain.ini" and "- -> language.dat"
+ # if you want babel support in tex:
+-tex @TEXBIN@ - tex.ini
++tex @TEXBIN@ language.dat bplain.ini
+ # Change "tex -> etex" and "latex.ini -> *latex.ini" to get an
+ # eTeX-2 enabled LaTeX format named latex. Or, don't change anything
+ # and use elatex which is just the same.
+@@ -48,7 +48,7 @@
+ @ETEX@elatex etex language.dat *elatex.ini
+ # Change "pdftex.ini -> pdfbplain.ini" and "- -> language.dat"
+ # if you want babel support in pdftex:
+-@PTEX@pdftex pdftex - pdftex.ini
++@PTEX@pdftex pdftex language.dat pdfbplain.ini
+ @PTEX@pdflatex pdftex language.dat pdflatex.ini
+ @PETEX@pdfetex pdfetex language.def *pdfetex.ini
+ @PETEX@pdfelatex pdfetex language.dat *pdfelatex.ini
+@@ -59,11 +59,11 @@
+
+ # Change "amstex.ini -> bamstex.ini" and "- -> language.dat"
+ # if you want babel support in amstex:
+-#! amstex @TEXBIN@ - amstex.ini
++ amstex @TEXBIN@ language.dat bamstex.ini
+
+ # Change "pdfamstex.ini -> pdfbamstex.ini" and "- -> language.dat"
+ # if you want babel support in pdfamstex:
+-#! pdfamstex pdftex - pdfamstex.ini
++ pdfamstex pdftex language.dat pdfbamstex.ini
+
+ # Context formats:
+ #! cont-cz pdfetex cont-usr.tex *cont-cz.ini
diff --git a/app-text/tetex/tetex-2.0.2.ebuild b/app-text/tetex/tetex-2.0.2.ebuild
new file mode 100644
index 000000000000..8b3200c83707
--- /dev/null
+++ b/app-text/tetex/tetex-2.0.2.ebuild
@@ -0,0 +1,183 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-2.0.2.ebuild,v 1.1 2003/03/14 22:52:14 satai Exp $
+
+inherit eutils flag-o-matic
+
+S=${WORKDIR}/tetex-src-${PV}
+TETEXSRC="tetex-src-${PV}.tar.gz"
+TEXMFSRC="tetex-texmfsrc-${PV}.tar.gz"
+TEXMF="tetex-texmf-${PV}.tar.gz"
+
+DESCRIPTION="a complete TeX distribution"
+SRC_URI="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TETEXSRC}
+ ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TEXMFSRC}
+ ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/2.0/distrib/${TEXMF}"
+HOMEPAGE="http://tug.cs.umb.edu/tetex/"
+
+KEYWORDS="~x86 ~ppc ~sparc alpha"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="ncurses X libwww png"
+
+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.3.2-r1 )"
+RDEPEND=">=dev-lang/perl-5.2
+ dev-util/dialog"
+
+src_unpack() {
+ unpack ${TETEXSRC}
+
+ cd ${WORKDIR}
+ mkdir ${S}/texmf
+ cd ${S}/texmf
+ umask 022
+ pwd
+ einfo "Unpacking ${TEXMFSRC}"
+ tar --no-same-owner -xzf ${DISTDIR}/${TEXMFSRC} || die
+
+ einfo "Unpacking ${TEXMF}"
+ tar --no-same-owner -xzf ${DISTDIR}/${TEXMF} || die
+
+ # Do not run config. Also fix local texmf tree.
+ cd ${WORKDIR}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-dont-run-config.diff
+ epatch ${FILESDIR}/${P}.diff
+
+}
+
+src_compile() {
+
+ local myconf=""
+ use X \
+ && myconf="--with-x" \
+ || myconf="--without-x"
+
+ use libwww \
+ && myconf="${myconf} --with-system-wwwlib \
+ --with-libwww-include=/usr/include/w3c-libwww"
+
+ use png \
+ && myconf="${myconf} --with-system-pnglib"
+
+
+ use ncurses \
+ && myconf="${myconf} --with-system-ncurses"
+
+
+ # Does it make sense to compile the included libwww with mysql ?
+
+ ./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() {
+
+ dodir /usr/share/
+ # Install texmf files
+ einfo "Installing texmf..."
+ cp -Rv texmf ${D}/usr/share
+
+ make prefix=${D}/usr \
+ bindir=${D}/usr/bin \
+ datadir=${D}/usr/share \
+ mandir=${D}/usr/share/man \
+ infodir=${D}/usr/share/info \
+ texmf=${D}/usr/share/texmf \
+ 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 -f ${D}/bin/readlink
+ rm -f ${D}/usr/bin/readlink
+ #add /var/cache/fonts directory
+ dodir /var/cache/fonts
+
+ #fix for lousy upstream permisssions on /usr/share/texmf files
+ #NOTE: do not use fowners, as its not recursive ...
+ einfo "Fixing permissions..."
+ chown -R root.root ${D}/usr/share/texmf
+ dodir /etc/env.d/
+ echo 'CONFIG_PROTECT="/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"' > ${D}/etc/env.d/98tetex
+}
+
+pkg_preinst() {
+ if [ -d "/usr/share/texmf/dvipdfm/config" ]
+ then
+ ewarn "Removing /usr/share/texmf/dvipdfm/config/"
+ rm -rf /usr/share/texmf/dvipdfm/config
+ fi
+
+ # Let's take care of config protecting.
+ einfo "Here I am!"
+}
+
+pkg_postinst() {
+
+ if [ $ROOT = "/" ]
+ then
+ einfo "Configuring teTeX..."
+ mktexlsr &>/dev/null
+ texlinks &>/dev/null
+ texconfig init &>/dev/null
+ texconfig confall &>/dev/null
+ texconfig font rw &>/dev/null
+ texconfig font vardir /var/cache/fonts &>/dev/null
+ texconfig font options varfonts &>/dev/null
+ einfo "Generating format files..."
+ fmtutil --missing &>/dev/null # This should generate all missing fmt files.
+ echo
+ einfo "Use 'texconfig font ro' to disable font generation for users"
+ echo
+ fi
+}
+