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

Last change on this file since 3915 was 3915, checked in by gwright, 17 years ago

Moved ranlib from port-install to post-destroot, as Landon suggested.
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1# $Id: Portfile,v 1.16 2003/11/09 23:17:06 gwright Exp $
2
3PortSystem 1.0
4name                    teTeX
5version                 3.14159
6categories              print textproc
7maintainers             gwright@comcast.net
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-2.0.2.tar.gz
18set tetex_texmf         tetex-texmf-2.0.2.tar.gz
19set tetex_top           ${prefix}/share/texmf
20set tetex_texmftree     ${destroot}/${tetex_top}
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 a16f6bba227d55e79aeee46fbbd82d28 \
29                        ${tetex_texmf} md5 d3bdb96f9077e43b2115d3cc471743b3
30
31extract.only            ${tetex_src}
32worksrcdir              tetex-src-2.0.2
33
34patchfiles              patch-fmtutil
35
36pre-configure           { reinplace "s|fmtutil --all|fmtutil --all --cnffile ${destroot}/${tetex_top}/web2c/fmtutil.cnf|" ${workpath}/${worksrcdir}/Makefile.in
37                          reinplace "s|    \$(scriptdir)/texlinks|    \$(scriptdir)/texlinks --cnffile ${destroot}/${tetex_top}/web2c/fmtutil.cnf|" ${workpath}/${worksrcdir}/Makefile.in }
38
39configure.args          --prefix=${tetex_top}   \
40                        --disable-multiplatform
41
42pre-destroot    { file mkdir ${tetex_texmftree}
43                  cd ${tetex_texmftree}
44                  system "tar vxfz ${distpath}/${tetex_texmf}"
45                }
46
47post-destroot   { # Modify mktex.opt to force use of varfonts
48                  reinplace "s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g" ${destroot}/${tetex_top}/web2c/mktex.cnf
49
50                  # Repair infelicities in texmf.cnf
51                  reinplace "s|${prefix}/share/texmf/share/texmf|${prefix}/share/texmf|g" ${destroot}/${tetex_top}/web2c/texmf.cnf
52
53                  # happiness is ranlib.
54                  system "ranlib ${prefix}/lib/libkpathsea.a"
55                }
56
57destroot.env            TEXMFCNF=${destroot}/${prefix}/share/texmf/web2c
58destroot.target         install strip
59destroot.destdir        prefix=${destroot}/${prefix}/ texmf=${destroot}/${tetex_top}/
60
61post-install    { system "fmtutil --all" }
62
Note: See TracBrowser for help on using the repository browser.