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

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

Build using "--without-texinfo" and add texinfo as a dependency. This
avoids conflicts between the teTeX and texinfo ports, both of which install
texinfo files to the same places. It also allows us to update texinfo
independently of teTeX.

The "texi2pdf" script has to be explicitly deleted in the post-destroot
phase because teTeX installs it even when "--without-texinfo" has been
specified.
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1# $Id: Portfile,v 1.23 2005/02/09 23:29:52 gwright Exp $
2
3PortSystem 1.0
4name                    teTeX
5version                 3.14159
6revision                1
7categories              print textproc
8maintainers             gwright@opendarwin.org
9description             TeX and METAFONT
10long_description        teTeX is a TeX distribution for UNIX compatible \
11                        systems.  It contains the latest versions of    \
12                        TeX & friends and nearly everything you need    \
13                        for happy TeX'ing.  For more information have   \
14                        a look at the lengthy FEATURES file of the      \
15                        distribution.
16platforms               darwin
17
18set tetex_src           tetex-src-2.0.2.tar.gz
19set tetex_texmf         tetex-texmf-2.0.2.tar.gz
20set tetex_top           ${prefix}/share/texmf
21set tetex_texmftree     ${destroot}/${tetex_top}
22
23master_sites            ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ \
24                        ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ \
25                        ftp://dante.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/
26
27distfiles               ${tetex_src} ${tetex_texmf}
28
29checksums               ${tetex_src}   md5 a16f6bba227d55e79aeee46fbbd82d28 \
30                        ${tetex_texmf} md5 d3bdb96f9077e43b2115d3cc471743b3
31
32extract.only            ${tetex_src}
33worksrcdir              tetex-src-2.0.2
34
35patchfiles              patch-fmtutil
36
37depends_lib             lib:libX11.6:XFree86
38depends_run             path:${prefix}/bin/info:texinfo
39
40pre-configure           { reinplace "s|fmtutil --all|fmtutil --all --cnffile ${destroot}/${tetex_top}/web2c/fmtutil.cnf|" ${workpath}/${worksrcdir}/Makefile.in
41
42                          reinplace "s|    \$(scriptdir)/texlinks|    \$(scriptdir)/texlinks --cnffile ${destroot}/${tetex_top}/web2c/fmtutil.cnf|" ${workpath}/${worksrcdir}/Makefile.in
43                        }
44
45configure.args          --prefix=${tetex_top}                           \
46                        --infodir=${destroot}/${prefix}/share/info      \
47                        --mandir=${destroot}/${prefix}/share/man        \
48                        --disable-multiplatform                         \
49                        --without-texinfo
50
51variant nox11   { depends_lib-delete lib:libX11.6:XFree86
52                  configure.args-append --without-x11 \
53                                        --without-oxdvik \
54                                        --without-xdvik \
55                                        --with-mfw=no
56                }
57
58pre-destroot    { file mkdir ${tetex_texmftree}
59                  cd ${tetex_texmftree}
60                  system "tar vxfz ${distpath}/${tetex_texmf}"
61
62                  # This file was evidently left out of the texmf package:
63                  file copy ${filespath}/listings.sty ${tetex_texmftree}/tex/latex/listings
64                }
65
66post-destroot   { # Delete the texi2pdf script: it will be provided
67                  # by the texinfo port.
68                  file delete ${destroot}${prefix}/bin/texi2pdf
69
70                  # Modify mktex.opt to force use of varfonts
71                  reinplace "s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g" ${destroot}/${tetex_top}/web2c/mktex.cnf
72
73                  # Repair infelicities in texmf.cnf
74                  reinplace "s|${prefix}/share/texmf/share/texmf|${prefix}/share/texmf|g" ${destroot}/${tetex_top}/web2c/texmf.cnf
75
76                  # happiness is ranlib.
77                  system "ranlib ${destroot}${prefix}/lib/libkpathsea.a"
78
79                  # Add a directory for local enhancements
80                  file mkdir ${destroot}${prefix}/share/texmf-local
81                  system "touch ${destroot}${prefix}/share/texmf-local/.turd"
82                }
83
84destroot.env            TEXMFCNF=${destroot}/${prefix}/share/texmf/web2c
85destroot.target         install strip
86destroot.destdir        prefix=${destroot}/${prefix}/ texmf=${destroot}/${tetex_top}/
87
88post-activate   { system "fmtutil --all" }
89
Note: See TracBrowser for help on using the repository browser.