Info2: << Package: tetex-nox #Package: tetex%type_pkg[-nox] # this file is being added to fink as -nox only to avoid forcing other users # of tetex to rebuild Type: -nox (-nox) #Type: -nox (boolean) Version: 3.0 Revision: 3 GCC: 3.3 Description: Complete distribution of the TeX typesetting system Depends: %N-base (= %v-%r), texinfo, debianutils, texi2html BuildDepends: << libkpathsea4, t1lib5-nox, libpng3 (>= 1:1.2.8-1), libwww, libncurses5, fink (>= 0.24.12), libjpeg, libiconv-dev, (%type_raw[-nox] = .) t1lib5-x11, (%type_raw[-nox] = .) gd2 (>= 2.0.33-1), (%type_raw[-nox] = .) x11, (%type_raw[-nox] = .) openmotif3 << Conflicts: << system-tetex, tetex, tetex-nox, ptex, ptex-nox, (%type_raw[-nox] = -nox) tetex-base (<= 2.0.2-24), (%type_raw[-nox] = -nox) ptex-base (<= 3.1.3-7) << Replaces: << tetex, tetex-nox, ptex, ptex-nox, (%type_raw[-nox] = -nox) tetex-base (<= 2.0.2-24), (%type_raw[-nox] = -nox) ptex-base (<= 3.1.3-7) << Provides: bundle-tetex Recommends: detex, ifmslide, latex2html, pdfscreen, pdfslide, ppower4, tex4ht, texpower Suggests: foiltex Source: ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/tetex-src-%v.tar.gz Source-MD5: 944a4641e79e61043fdaf8f38ecbb4b3 PatchFile: tetex.patch PatchFile-MD5: b5bc9d386f66b9542970d63adcf8270d PatchScript: << sed 's|@PREFIX@|%p|g' < %{PatchFile} | sed 's|@PACKAGE@|%n-%v-%r|g' | patch -p1 perl -pi -e "s|hardcode_direct=yes|hardcode_direct=no|" texk/configure texk/kpathsea/configure utils/texinfo/configure perl -pi -e 's,-flat_namespace -undefined suppress,-twolevel_namespace -undefined error,g' texk/configure texk/kpathsea/configure utils/texinfo/configure << NoSetMAKEFLAGS: true SetMAKEFLAGS: -j1 ConfigureParams: << --without-texi2html --without-texinfo --enable-shared \ --datadir='${prefix}/share' --infodir='${prefix}/share/info' \ --mandir='${prefix}/share/man' --disable-multiplatform --with-system-ncurses \ --with-system-pnglib --with-system-t1lib --with-system-wwwlib \ --with-system-zlib \ (%type_raw[-nox] = .) --with-system-gd (%type_raw[-nox] = -nox) --without-x << InstallScript: << #!/bin/bash -ev make install prefix=%i texmf=%i/share/texmf echo "Removing files that belong to the libkpathsea4 package..." rm -R %i/include rm -R %i/lib rm %i/share/info/kpathsea.info echo "Setting up symlinks ..." export DYLD_LIBRARY_PATH="%b/texk/kpathsea/SHARED" PATH=%i/bin:$PATH TEXMFMAIN=%p/share/texmf-dist ; texlinks --cnffile %i/share/texmf/web2c/fmtutil.cnf --verbose %i/bin echo "Creating a local texmf tree, and symlinking it into place ..." mkdir -p %i/etc/texmf.local %i/bin/mktexlsr %i/etc/texmf.local mkdir -p %i/share ln -s %p/etc/texmf.local %i/share/texmf-local echo "Creating a VARTEXMF tree, including a fonts directory ..." mkdir -p %i/var/lib/texmf/fonts %i/bin/mktexlsr %i/var/lib/texmf echo "Creating a TEXMFCONFIG tree ..." mkdir -p %i/etc/texmf-config %i/bin/mktexlsr %i/etc/texmf-config echo "Removing the ls-R file, which is supplied in the tetex-texmf package ..." rm -f %i/share/texmf-dist/ls-R echo "Removing readlink, which is supplied in the debianutils package ..." rm -f %i/bin/readlink rm -f %i/share/man/man1/readlink.1 if [ "%type_raw[-nox]" == "." ]; then echo "Preparing xdvi for the alternatives system ..." mv %i/bin/xdvi %i/bin/xdvik mv %i/share/man/man1/xdvi.1 %i/share/man/man1/xdvik.1 mv %i/bin/xdvizilla %i/bin/xdvizillak mv %i/share/man/man1/xdvizilla.1 %i/share/man/man1/xdvizillak.1 fi << DocFiles: LICENSE.src README README.fink SplitOff: << Package: %N-base Description: Base programs for a teTeX installation Depends: << t1lib5-nox-shlibs, libpng3-shlibs (>= 1:1.2.8-1), libwww-bin, libncurses5-shlibs, ncurses, fink (>= 0.12.0-1), libkpathsea4-shlibs (>= 3.0-1), tetex-texmf (>= 3.0-1), (%type_raw[-nox] = .) t1lib5-x11-shlibs, (%type_raw[-nox] = -nox) ghostscript-nox, (%type_raw[-nox] = .) ghostscript, (%type_raw[-nox] = .) gd2-shlibs (>= 2.0.33-1), (%type_raw[-nox] = .) x11, (%type_raw[-nox] = .) x11-shlibs, (%type_raw[-nox] = .) openmotif3-shlibs << Conflicts: tetex-nox (<= 2.0.2-24), tetex-base (>= 0), tetex-nox-base, ptex-base, ptex-nox-base Replaces: << tetex-base (>= 0), tetex-nox-base, ptex-base, ptex-nox-base, context, dvipdfm, epstopdf, pdftex, tetex-macosx, tetex (<= 2.0-3), (%type_raw[-nox] = .) xdvi (<= 22.70-1), << Provides: context, dvipdfm, epstopdf, pdftex, tetex-macosx, tetex-base, tetex3-base Files: bin etc share/info share/man share/texmf share/texmf-local var InfoDocs: web2c.info dvips.info latex.info DocFiles: ANNOUNCE-3.0 CREDITS INSTALL INSTALL.generic LICENSE.src NEWS PROBLEMS QuickInstall README README.fink teTeX-vs-TeXLive PreInstScript: << echo "Removing any leftover files from obsolete teTeX installations ..." rm -f %p/etc/texmf.local/web2c/* rm -f %p/etc/ls-R/texmf.macosx rm -Rf %p/share/texmf.macosx rm -Rf %p/etc/texmf-var << PostInstScript: << if [ ! -e %p/share/texmf-dist/tex/context ] ; then echo " " echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" echo "+ UPGRADE PROBLEM: We apologize for the inconvenience, but please reinstall +" echo "+ tetex-texmf and then update or install tetex or tetex-base again. +" echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" echo " " exit 1 fi if [ -e %p/bin/xdvik ] ; then update-alternatives --install %p/bin/xdvi xdvi %p/bin/xdvik 30 --slave %p/share/man/man1/xdvi.1 xdvi.1 %p/share/man/man1/xdvik.1 update-alternatives --install %p/bin/xdvizilla xdvizilla %p/bin/xdvizillak 30 --slave %p/share/man/man1/xdvizilla.1 xdvizilla.1 %p/share/man/man1/xdvizillak.1 fi mktexlsr %p/share/texmf texconfig-sys init mktexlsr %p/etc/texmf-config %p/var/lib/texmf echo "Adjusting permissions ..." chmod -R a+rX %p/etc/texmf.local chmod -R a+rwX %p/var/lib/texmf chmod -R a+rwX %p/etc/texmf-config if [ -f ~/Library/texmf/ls-R ]; then chmod a+rw ~/Library/texmf/ls-R; fi << PreRmScript: << if [ $1 != "upgrade" ]; then if [ -e %p/bin/xdvik ]; then update-alternatives --remove xdvi %p/bin/xdvik update-alternatives --remove xdvizilla %p/bin/xdvizillak fi fi << << License: OSI-Approved DescDetail: << TeX takes a text file and a set of formatting commands as input and creates a typesetter independent .dvi (DeVice Independent) file as output. TeTeX includes higher level formatting packages such as LaTeX, since TeX by itself is not very user-friendly. << DescPort: << The Makefile is patched to prevent the mktexlsr, fmtutil, updmap, and texlinks utilities from running during the install phase (although texlinks is run after "make install"). The mktexlsr, fmtutil, and updmap utilities are run in the PostInstall script (the latter two called by texconfig-sys). User files are stored in $HOME/Library/texmf (not $HOME/texmf) for backwards-compatibility with earlier Fink teTeX installations. We also set up a VARTEXMF directory for storing format and font files, and a TEXMFCONFIG directory for storing configuration files. These latter can be modified by running "sudo texconfig-sys". We use update-alternatives for xdvi to allow users to install a different version if they choose. We patch libkpathsea's configure script to prevent it linking against an old copy of the library as it builds. << DescPackaging: << Other TeX related packages should use %p/etc/texmf.local/ as their texmf tree for storing files, rather than %p/share/texmf/. In this way, the original texmf tree will be preserved. Any such package should list tetex-base as a dependency, and take care to run mktexlsr %p/etc/texmf.local in both PostInstScript and PostRmScript. There is a variant tetex-nox package with X11 disabled. texinfo and texi2html are separate packages. readlink and its manpage are removed since they conflict with debianutils, an essential Fink package. Many thanks to the original teTeX maintainer Jeff Whitaker. << Maintainer: Dave Morrison Homepage: http://www.tug.org/teTeX <<