source: trunk/dports/print/teTeX/Portfile @ 11011

Last change on this file since 11011 was 11011, checked in by gwright, 15 years ago

Version bump to 3.0. Note that the directory hierarchy has changed.

Texi2html is no longer built as part of the teTeX port. Instead, the
texi2html port has been made a dependency. This avoids conflicts
in which the teTeX and texi2html ports put files in the same places.

As noted in the Portfile, the build is very fragile and is prone
to silent failures. If you change the Portfile, make sure that all
of the targets you expect to be built really are. Check especially
that all of the expected symlinks get made.

Thanks to Richard Bonichon for the original Portfile changes!

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1# $Id: Portfile,v 1.24 2005/02/16 15:44:38 gwright Exp $
2
3PortSystem 1.0
4name                    teTeX
5version                 3.0
6categories              print textproc
7maintainers             gwright@opendarwin.org
8description             TeX and METAFONT
9long_description        teTeX is a TeX distribution for UNIX compatible \
10                        systems.  It contains the latest versions of    \
11                        TeX & friends and nearly everything you need    \
12                        for happy TeX'ing.  For more information have   \
13                        a look at the lengthy FEATURES file of the      \
14                        distribution.
15platforms               darwin
16
17set tetex_src           tetex-src-${version}.tar.gz
18set tetex_texmf         tetex-texmf-${version}.tar.gz
19set tetex_top           ${prefix}/share/texmf
20set tetex_texmftree     ${destroot}${prefix}/share/texmf-dist
21
22master_sites            ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ \
23                        ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ \
24                        ftp://dante.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/
25
26distfiles               ${tetex_src} ${tetex_texmf}
27
28checksums               ${tetex_src}   md5 944a4641e79e61043fdaf8f38ecbb4b3 \
29                        ${tetex_texmf} md5 11aa15c8d3e28ee7815e0d5fcdf43fd4
30
31#user_notes     The layout of the installed files has changed. Now      \
32#               runtime configuration data is stored separately from    \
33#               the main teTeX distribution.
34
35#bugs           Note that the configuration process for teTeX uses      \
36#               hand-crafted configure and Makefiles, so the whole      \
37#               procedure is quite fragile. In particular, slight       \
38#               misconfigurations can cause the build to silently       \
39#               fail to produce some targets. When changing this        \
40#               Portfile, check carefully to be sure that everything    \
41#               you think should be built was in fact built.
42       
43extract.only            ${tetex_src}
44worksrcdir              tetex-src-${version}
45
46post-extract    { file mkdir ${tetex_texmftree}
47                  file mkdir ${destroot}${tetex_top}
48                  cd ${tetex_texmftree}
49                  system "tar vxfz ${distpath}/${tetex_texmf}"
50                }
51
52depends_lib             lib:libX11.6:XFree86
53depends_run             path:${prefix}/bin/info:texinfo                 \
54                        path:${prefix}/bin/texi2html:texi2html
55
56configure.args          --prefix=${destroot}${prefix}                   \
57                        --datadir=${destroot}${prefix}/share            \
58                        --infodir=${destroot}${prefix}/share/info       \
59                        --mandir=${destroot}${prefix}/share/man         \
60                        --without-texinfo                               \
61                        --without-texi2html                             \
62                        --disable-multiplatform
63
64variant nox11   { depends_lib-delete lib:libX11.6:XFree86
65                  configure.args-append --without-x11 \
66                                        --without-oxdvik \
67                                        --without-xdvik \
68                                        --with-mfw=no
69                }
70
71post-destroot   { # Delete the texi2pdf script: it will be provided
72                  # by the texinfo port.
73                  file delete ${destroot}${prefix}/bin/texi2pdf
74
75                  # Modify mktex.opt to force use of varfonts
76                  reinplace "s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g" ${destroot}/${tetex_top}/web2c/mktex.opt
77
78                  # happiness is ranlib.
79                  system "ranlib ${destroot}${prefix}/lib/libkpathsea.a"
80
81                  # Add a directory for local enhancements
82                  file mkdir ${destroot}${prefix}/share/texmf-local
83                  system "touch ${destroot}${prefix}/share/texmf-local/.turd"
84                }
85
86post-activate   { system "fmtutil --all" }
87
Note: See TracBrowser for help on using the repository browser.