Package: tetex Version: 2.0.2 Revision: 12 GCC: 3.3 Description: Complete distribution of the TeX typesetting system Depends: %N-base (= %v-%r), texinfo, debianutils, ncurses (>= 5.3-12), ncurses-shlibs (>= 5.3-12) BuildDepends: t1lib1, libpng3, libwww, dlcompat-dev, x11, ncurses-dev (>= 5.3-12), x11-dev Conflicts: system-tetex, bundle-tetex Provides: bundle-tetex Replaces: bundle-tetex Recommends: detex, ifmslide, latex2html, pdfscreen, pdfslide, ppower4, tex4ht, texpower Suggests: foiltex Source: mirror:ctan:systems/unix/teTeX/2.0/distrib/tetex-src-%v.tar.gz Source-MD5: a16f6bba227d55e79aeee46fbbd82d28 SourceDirectory: tetex-src-%v PatchScript: sed 's|@PREFIX@|%p|g' < %a/tetex-%v-%r.patch | sed 's|@PACKAGE@|%n-%v-%r|g' | patch -p1 ConfigureParams: --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 CompileScript: << ./configure %c export DYLD_LIBRARY_PATH="%b/texk/kpathsea/SHARED" ; make -j1 << InstallScript: << export DYLD_LIBRARY_PATH="%b/texk/kpathsea/SHARED" ; make -j1 install prefix=%i texmf=%i/share/texmf echo "Setting up symlinks ..." export DYLD_LIBRARY_PATH="%b/texk/kpathsea/SHARED" PATH=%i/bin:$PATH TEXMFMAIN=%p/share/texmf ; 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 "Removing the ls-R file, which is supplied in the tetex-texmf package ..." rm -f %i/share/texmf/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 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 echo "Preparing texi2html for the alternatives system ..." mv %i/bin/texi2html %i/bin/texi2html.tetex-base mv %i/share/man/man1/texi2html.1 %i/share/man/man1/texi2html.1.tetex-base << DocFiles: LICENSE.src ChangeLog INSTALL PROBLEMS README README.fink QuickInstall SplitOff: << Package: %N-base Description: Base programs for a teTeX installation 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. Now provides context, dvipdfm, epstopdf, pdftex, and the former tetex-macosx package. << Depends: x11, dlcompat-shlibs, t1lib1-shlibs, libpng3-shlibs, libwww-bin, ghostscript, fink (>= 0.12.0-1), tetex-texmf (>= 2.0.1-1), %N-shlibs (= %v-%r) Conflicts: tetex-nox Replaces: context, dvipdfm, epstopdf, pdftex, tetex-macosx, xdvi (<= 22.70-1), tetex (<= 2.0-3) Provides: context, dvipdfm, epstopdf, pdftex, tetex-macosx Files: bin etc share/info share/man share/texmf share/texmf-local var # ConfFiles: %p/share/texmf/web2c/fmtutil.cnf %p/share/texmf/web2c/texmf.cnf InfoDocs: kpathsea.info web2c.info dvips.info latex.info DocFiles: LICENSE.src ChangeLog INSTALL PROBLEMS README README.fink QuickInstall 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/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 update-alternatives --install %p/bin/texi2html texi2html %p/bin/texi2html.tetex-base 40 --slave %p/share/man/man1/texi2html.1 texi2html.1 %p/share/man/man1/texi2html.1.tetex-base 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 mktexlsr %p/share/texmf fmtutil --all mktexlsr %p/var/lib/texmf echo "Adjusting permissions ..." chmod -R a+rX %p/etc/texmf.local chmod -R a+rwX %p/var/lib/texmf if [ -f ~/Library/texmf/ls-R ]; then chmod a+rw ~/Library/texmf/ls-R; fi << PreRmScript: << if [ $1 != "upgrade" ]; then update-alternatives --remove texi2html %p/bin/texi2html.tetex-base update-alternatives --remove xdvi %p/bin/xdvik update-alternatives --remove xdvizilla %p/bin/xdvizillak fi << << SplitOff2: << Package: %N-shlibs Description: Shared libraries for a teTeX installation Depends: libpng3-shlibs Files: lib/libkpathsea.*.dylib Shlibs: %p/lib/libkpathsea.3.4.5.dylib %n (>= 2.0.2-12) DocFiles: LICENSE.src ChangeLog INSTALL PROBLEMS README README.fink QuickInstall << SplitOff3: << Package: %N-dev Description: Developer files for a teTeX installation BuildDependsOnly: True Depends: %N-shlibs (= %v-%r) Replaces: tetex-base (<= 1.0-13) Files: lib/libkpathsea.a lib/libkpathsea.dylib include DocFiles: LICENSE.src ChangeLog INSTALL PROBLEMS README README.fink QuickInstall << 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: << To build shared libraries, we give the configure flag --enable-shared, set the DYLD_LIBRARY_PATH environment variable, and patch klibtool. The Makefile is patched to prevent the mktexlsr, fmtutil, and texlinks utilities from running during the install phase (although texlinks is run after "make install"). The mktexlsr and fmtutil utilities are run in the PostInstall script. 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 configuration files. These can be modified by running "texconfig". We use update-alternatives for texi2html to allow users to install a more up-to-date version if they choose. We also do this for xdvi. << 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 is a separate package. 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