summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gardiner <obz@gentoo.org>2003-11-04 08:34:05 +0000
committerMike Gardiner <obz@gentoo.org>2003-11-04 08:34:05 +0000
commitebd58db823e83bd8cd7a4bc9d9b1bef022c636cc (patch)
treeab5a4366eebc304e4113b02b42c176773a8d5603 /app-text
parentNew revision with hyperref fix (diff)
downloadhistorical-ebd58db823e83bd8cd7a4bc9d9b1bef022c636cc.tar.gz
historical-ebd58db823e83bd8cd7a4bc9d9b1bef022c636cc.tar.bz2
historical-ebd58db823e83bd8cd7a4bc9d9b1bef022c636cc.zip
New revision with hyperref fix
Diffstat (limited to 'app-text')
-rw-r--r--app-text/tetex/Manifest4
-rw-r--r--app-text/tetex/files/digest-tetex-2.0.2-r23
-rw-r--r--app-text/tetex/tetex-2.0.2-r2.ebuild187
3 files changed, 192 insertions, 2 deletions
diff --git a/app-text/tetex/Manifest b/app-text/tetex/Manifest
index abd8e353ab83..9e3c3823bb73 100644
--- a/app-text/tetex/Manifest
+++ b/app-text/tetex/Manifest
@@ -1,9 +1,9 @@
MD5 1bfbe142b2aaed750bcc105fcb4c995b tetex-1.0.7-r13.ebuild 4670
-MD5 d51a19db51e19b1b81504dc04280132d tetex-2.0.2-r2.ebuild 4538
+MD5 95f8d4fd7f10659c58a8726366a7aef2 tetex-2.0.2-r2.ebuild 4634
MD5 f86349dda2b7ede76ce7a816265d9fcb tetex-1.0.7-r12.ebuild 4938
MD5 2bac268585ab2a1f867a0c5f9ebef874 tetex-2.0.2.ebuild 4746
MD5 bcb81624ddc1013db7196ba51efdd700 tetex-2.0.2-r1.ebuild 4507
-MD5 27922b15e70c239fbd47dcddc1a04fdd ChangeLog 9316
+MD5 c091d1d981151caa97f79094decc12c2 ChangeLog 9484
MD5 c472f5fd1646eb8bca71d8df5cb2bdcc metadata.xml 164
MD5 50c560b391869be15a001b738e0b7bfe files/tetex-2.0.2.diff 2010
MD5 d17a70a33444ac4f10849dfb55af858c files/digest-tetex-2.0.2-r1 214
diff --git a/app-text/tetex/files/digest-tetex-2.0.2-r2 b/app-text/tetex/files/digest-tetex-2.0.2-r2
new file mode 100644
index 000000000000..235f58e8e41f
--- /dev/null
+++ b/app-text/tetex/files/digest-tetex-2.0.2-r2
@@ -0,0 +1,3 @@
+MD5 a16f6bba227d55e79aeee46fbbd82d28 tetex-src-2.0.2.tar.gz 11745933
+MD5 40d4b2c5582eccbee4b6ec692c3cc253 tetex-texmfsrc-2.0.2.tar.gz 22909537
+MD5 d3bdb96f9077e43b2115d3cc471743b3 tetex-texmf-2.0.2.tar.gz 52424280
diff --git a/app-text/tetex/tetex-2.0.2-r2.ebuild b/app-text/tetex/tetex-2.0.2-r2.ebuild
new file mode 100644
index 000000000000..5cf05ca9f304
--- /dev/null
+++ b/app-text/tetex/tetex-2.0.2-r2.ebuild
@@ -0,0 +1,187 @@
+# 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-r2.ebuild,v 1.1 2003/11/04 08:33:52 obz Exp $
+
+inherit eutils
+filter-flags "-fstack-protector"
+
+S=${WORKDIR}/tetex-src-${PV}
+TETEXSRC="${PN}-src-${PV}.tar.gz"
+TEXMFSRC="${PN}-texmfsrc-${PV}.tar.gz"
+TEXMF="${PN}-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.org/teTeX/"
+
+KEYWORDS="~ia64 ~x86 ~ppc ~sparc ~alpha ~amd64"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="X"
+
+DEPEND="!app-text/ptex
+ sys-apps/ed
+ sys-libs/zlib
+ X? ( virtual/x11 )
+ >=media-libs/libpng-1.2.1
+ sys-libs/ncurses
+ >=net-libs/libwww-5.3.2-r1"
+
+RDEPEND="${DEPEND}
+ >=dev-lang/perl-5.2
+ dev-util/dialog"
+
+PROVIDE="virtual/tetex"
+
+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 ${S}
+ epatch ${FILESDIR}/${P}-dont-run-config.diff
+ epatch ${FILESDIR}/${P}.diff
+
+ # fix up misplaced listings.sty in the 2.0.2 archive.
+ # this should be fixed in the next release <obz@gentoo.org>
+ mv texmf/source/latex/listings/listings.sty texmf/tex/latex/listings/
+
+ # need to fix up the hyperref driver, see bug #31967
+ sed -i -e "/providecommand/s/hdvips/hypertex/" \
+ ${S}/texmf/tex/latex/config/hyperref.cfg
+
+
+}
+
+src_compile() {
+
+ local myconf=""
+ use X \
+ && myconf="--with-x" \
+ || myconf="--without-x"
+
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --datadir=/usr/share \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --datadir=${S} \
+ --with-system-wwwlib \
+ --with-libwww-include=/usr/include/w3c-libwww \
+ --with-system-ncurses \
+ --with-system-pnglib \
+ --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
+}
+