Changeset 11011


Ignore:
Timestamp:
Feb 16, 2005, 3:44:39 PM (15 years ago)
Author:
gwright
Message:

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:

Location:
trunk/dports/print/teTeX
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/print/teTeX/Portfile

    r10893 r11011  
    1 # $Id: Portfile,v 1.23 2005/02/09 23:29:52 gwright Exp $
     1# $Id: Portfile,v 1.24 2005/02/16 15:44:38 gwright Exp $
    22
    33PortSystem 1.0
    44name                    teTeX
    5 version                 3.14159
    6 revision                1
     5version                 3.0
    76categories              print textproc
    87maintainers             gwright@opendarwin.org
     
    1615platforms               darwin
    1716
    18 set tetex_src           tetex-src-2.0.2.tar.gz
    19 set tetex_texmf         tetex-texmf-2.0.2.tar.gz
     17set tetex_src           tetex-src-${version}.tar.gz
     18set tetex_texmf         tetex-texmf-${version}.tar.gz
    2019set tetex_top           ${prefix}/share/texmf
    21 set tetex_texmftree     ${destroot}/${tetex_top}
     20set tetex_texmftree     ${destroot}${prefix}/share/texmf-dist
    2221
    2322master_sites            ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/ \
     
    2726distfiles               ${tetex_src} ${tetex_texmf}
    2827
    29 checksums               ${tetex_src}   md5 a16f6bba227d55e79aeee46fbbd82d28 \
    30                         ${tetex_texmf} md5 d3bdb96f9077e43b2115d3cc471743b3
     28checksums               ${tetex_src}   md5 944a4641e79e61043fdaf8f38ecbb4b3 \
     29                        ${tetex_texmf} md5 11aa15c8d3e28ee7815e0d5fcdf43fd4
    3130
     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       
    3243extract.only            ${tetex_src}
    33 worksrcdir              tetex-src-2.0.2
     44worksrcdir              tetex-src-${version}
    3445
    35 patchfiles              patch-fmtutil
     46post-extract    { file mkdir ${tetex_texmftree}
     47                  file mkdir ${destroot}${tetex_top}
     48                  cd ${tetex_texmftree}
     49                  system "tar vxfz ${distpath}/${tetex_texmf}"
     50                }
    3651
    3752depends_lib             lib:libX11.6:XFree86
    38 depends_run             path:${prefix}/bin/info:texinfo
     53depends_run             path:${prefix}/bin/info:texinfo                 \
     54                        path:${prefix}/bin/texi2html:texi2html
    3955
    40 pre-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 
    45 configure.args          --prefix=${tetex_top}                           \
    46                         --infodir=${destroot}/${prefix}/share/info      \
    47                         --mandir=${destroot}/${prefix}/share/man        \
    48                         --disable-multiplatform                         \
    49                         --without-texinfo
     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
    5063
    5164variant nox11   { depends_lib-delete lib:libX11.6:XFree86
     
    5669                }
    5770
    58 pre-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 
    6671post-destroot   { # Delete the texi2pdf script: it will be provided
    6772                  # by the texinfo port.
     
    6974
    7075                  # 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
     76                  reinplace "s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g" ${destroot}/${tetex_top}/web2c/mktex.opt
    7577
    7678                  # happiness is ranlib.
     
    8284                }
    8385
    84 destroot.env            TEXMFCNF=${destroot}/${prefix}/share/texmf/web2c
    85 destroot.target         install strip
    86 destroot.destdir        prefix=${destroot}/${prefix}/ texmf=${destroot}/${tetex_top}/
    87 
    8886post-activate   { system "fmtutil --all" }
    8987
Note: See TracChangeset for help on using the changeset viewer.