# $Id: Portfile,v 1.24 2005/02/16 15:44:38 gwright Exp $ PortSystem 1.0 name teTeX version 3.0 categories print textproc maintainers gwright@opendarwin.org description TeX and METAFONT long_description teTeX is a TeX distribution for UNIX compatible \ systems. It contains the latest versions of \ TeX & friends and nearly everything you need \ for happy TeX'ing. For more information have \ a look at the lengthy FEATURES file of the \ distribution. platforms darwin set tetex_src tetex-src-${version}.tar.gz set tetex_texmf tetex-texmf-${version}.tar.gz set tetex_top ${prefix}/share/texmf set tetex_texmftree ${destroot}${prefix}/share/texmf-dist master_sites ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ \ ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ \ ftp://dante.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ distfiles ${tetex_src} ${tetex_texmf} checksums ${tetex_src} md5 944a4641e79e61043fdaf8f38ecbb4b3 \ ${tetex_texmf} md5 11aa15c8d3e28ee7815e0d5fcdf43fd4 #user_notes The layout of the installed files has changed. Now \ # runtime configuration data is stored separately from \ # the main teTeX distribution. #bugs Note that the configuration process for teTeX uses \ # hand-crafted configure and Makefiles, so the whole \ # procedure is quite fragile. In particular, slight \ # misconfigurations can cause the build to silently \ # fail to produce some targets. When changing this \ # Portfile, check carefully to be sure that everything \ # you think should be built was in fact built. extract.only ${tetex_src} worksrcdir tetex-src-${version} post-extract { file mkdir ${tetex_texmftree} file mkdir ${destroot}${tetex_top} cd ${tetex_texmftree} system "tar vxfz ${distpath}/${tetex_texmf}" } depends_lib lib:libX11.6:XFree86 depends_run path:${prefix}/bin/info:texinfo \ path:${prefix}/bin/texi2html:texi2html configure.args --prefix=${destroot}${prefix} \ --datadir=${destroot}${prefix}/share \ --infodir=${destroot}${prefix}/share/info \ --mandir=${destroot}${prefix}/share/man \ --without-texinfo \ --without-texi2html \ --disable-multiplatform variant nox11 { depends_lib-delete lib:libX11.6:XFree86 configure.args-append --without-x11 \ --without-oxdvik \ --without-xdvik \ --with-mfw=no } post-destroot { # Delete the texi2pdf script: it will be provided # by the texinfo port. file delete ${destroot}${prefix}/bin/texi2pdf # Modify mktex.opt to force use of varfonts reinplace "s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g" ${destroot}/${tetex_top}/web2c/mktex.opt # happiness is ranlib. system "ranlib ${destroot}${prefix}/lib/libkpathsea.a" # Add a directory for local enhancements file mkdir ${destroot}${prefix}/share/texmf-local system "touch ${destroot}${prefix}/share/texmf-local/.turd" } post-activate { system "fmtutil --all" }