Ignore:
Timestamp:
Jan 24, 2003, 6:28:15 AM (18 years ago)
Author:
landonf (Landon Fuller)
Message:

Commit teTeX destrooted. Still blocking on package pre/post runs

File:
1 edited

Legend:

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

    r1678 r1858  
    11PortSystem 1.0
    2 name            teTeX
    3 version         3.14159
    4 categories      print
    5 description     TeX and METAFONT
    6 long_description        teTeX is _the_ TeX distribution for UNIX compatible systems.  It \
    7                         contains the latest versions of TeX & friends and nearly everything \
    8                         you need for happy TeX'ing.  For more information have a look at \
     2name                    teTeX
     3version                 3.14159
     4categories              print textproc
     5description             TeX and METAFONT
     6long_description        teTeX is a TeX distribution for UNIX compatible \
     7                        systems.  It contains the latest versions of TeX & \
     8                        friends and nearly everything you need for happy \
     9                        TeX'ing.  For more information have a look at \
    910                        the lengthy FEATURES file of the distribution.
    10 platforms       darwin
    11 maintainers     landonf@opendarwin.org
     11platforms               darwin
     12maintainers             landonf@opendarwin.org
     13depends_lib             lib:libpng.3:libpng lib:libwwwcore.0:libwww
    1214
    1315set tetex_src           teTeX-src-1.0.7.tar.gz
    1416set tetex_texmf         teTeX-texmf-1.0.2.tar.gz
    15 set tetex_texmftree     ${prefix}/share/texmf
     17set tetex_texmftree     ${destroot}/${prefix}/share/texmf
    1618
    17 master_sites    ftp://wuarchive.wustl.edu/packages/TeX/systems/unix/teTeX/1.0/distrib/sources/  \
    18                 ftp://ftp.funet.fi/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/  \
    19                 ftp://ctan.unsw.edu.au/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
    20                 ftp://ftp.cise.ufl.edu/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
    21                 ftp://ftp.tex.ac.uk/tex-archive/systems/unix/teTeX/1.0/distrib/sources/  \
    22                 ftp://ftp.kddlabs.co.jp/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
    23                 ftp://sunsite.auc.dk/pub/tex/ctan/systems/unix/teTeX/1.0/distrib/sources/ \
    24                 ftp://ctan.tug.org/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
    25                 ftp://ftp.dante.de/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
    26                 ftp://ftp.dnsbalance.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
    27                 http://www.dnsbalance.ring.gr.jp/archives/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
    28                 ftp://ftp.chg.ru/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
    29                 http://www.opendarwin.org/projects/darwinports/distfiles/:lt
     19master_sites            ftp://wuarchive.wustl.edu/packages/TeX/systems/unix/teTeX/1.0/distrib/sources/  \
     20                        ftp://ftp.funet.fi/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/  \
     21                        ftp://ctan.unsw.edu.au/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
     22                        ftp://ftp.cise.ufl.edu/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
     23                        ftp://ftp.tex.ac.uk/tex-archive/systems/unix/teTeX/1.0/distrib/sources/  \
     24                        ftp://ftp.kddlabs.co.jp/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
     25                        ftp://sunsite.auc.dk/pub/tex/ctan/systems/unix/teTeX/1.0/distrib/sources/ \
     26                        ftp://ctan.tug.org/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
     27                        ftp://ftp.dante.de/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \
     28                        ftp://ftp.dnsbalance.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
     29                        http://www.dnsbalance.ring.gr.jp/archives/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
     30                        ftp://ftp.chg.ru/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \
     31                        http://www.opendarwin.org/projects/darwinports/distfiles/:lt
    3032
    31 dist_subdir     teTeX
    32 distfiles       ${tetex_src} ${tetex_texmf} ltconfig13:lt ltmain13:lt
    33 checksums       ${tetex_src} md5 2c6da2a45096c2fdc41b8de6a8af1a52 \
    34                 ${tetex_texmf} md5 7811ed356cca07b16ea8422f00c3cd34 \
    35                 ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
    36                 ltmain13 md5 e094ae92724c4015dbab97de151c2525
     33dist_subdir             teTeX
     34distfiles               ${tetex_src} ${tetex_texmf} ltconfig13:lt ltmain13:lt
     35checksums               ${tetex_src} md5 2c6da2a45096c2fdc41b8de6a8af1a52 \
     36                        ${tetex_texmf} md5 7811ed356cca07b16ea8422f00c3cd34 \
     37                        ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
     38                        ltmain13 md5 e094ae92724c4015dbab97de151c2525
    3739
    38 extract.only    ${tetex_src}
    39 worksrcdir      teTeX-1.0
     40extract.only            ${tetex_src}
     41worksrcdir              teTeX-1.0
    4042
    41 patchfiles      patch-autoconf
     43patchfiles              patch-autoconf
    4244
    43 post-patch { system "cp ${distpath}/ltconfig13 ${worksrcpath}/config/ltconfig"
    44              system "cp ${distpath}/ltmain13 ${worksrcpath}/config/ltmain.sh" }
     45post-patch {            system "cp ${distpath}/ltconfig13 ${worksrcpath}/config/ltconfig"
     46                        system "cp ${distpath}/ltmain13 ${worksrcpath}/config/ltmain.sh"
     47}
    4548
    46 configure.type  gnu
    47 configure.args  --disable-multiplatform --without-texinfo --without-dialog \
    48                 --with-system-ncurses --with-system-zlib --with-system-wwwlib \
    49                 --with-libwww-libdir=${prefix}/lib \
    50                 --with-libwww-include=${prefix}/include/w3c-libwww \
    51                 --with-system-pnglib --with-pnglib-libdir=${prefix}/lib \
    52                 --with-pnglib-include=${prefix}/include
     49configure.type          gnu
     50configure.args          --disable-multiplatform --without-texinfo --without-dialog \
     51                        --with-system-ncurses --with-system-zlib --with-system-wwwlib \
     52                        --with-libwww-libdir=${prefix}/lib \
     53                        --with-libwww-include=${prefix}/include/w3c-libwww \
     54                        --with-system-pnglib --with-pnglib-libdir=${prefix}/lib \
     55                        --with-pnglib-include=${prefix}/include
    5356# Apple gcc3 bug
    54 configure.env   CXXFLAGS=-fno-rtti
     57configure.env           CXXFLAGS=-fno-rtti CPPFLAGS=-no-cpp-precomp
    5558
    56 pre-install { file mkdir ${tetex_texmftree}; cd ${tetex_texmftree}
    57               system "tar xfz ${distpath}/${tetex_texmf}" }
     59pre-install {           file mkdir ${tetex_texmftree}; cd ${tetex_texmftree}
     60                        system "tar xfz ${distpath}/${tetex_texmf}"
     61}
    5862
    59 install.target  install strip
     63post-install {
     64                        # ranlib static library to keep darwin happy
     65                        system "ranlib ${destroot}/${prefix}/lib/libkpathsea.a"
     66                        # Modify mktex.opt to force use of varfonts
     67                        reinplace s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g' ${destroot}/${prefix}/share/texmf/web2c/mktex.opt
     68                        # Rename 'dialog' to 'tcdialog'
     69                        file move ${destroot}/${prefix}/man1/dialog.1 ${destroot}/${prefix}/man1/tcdialog.1
     70                        file move ${destroot}/${prefix}/bin/dialog ${destroot}/${prefix}/bin/tcdialog
    6071
    61 depends_lib     lib:libpng.3:libpng lib:libwwwcore.0:libwww
     72                        # Create a local texmf tree
     73                        file mkdir ${destroot}/${prefix}/share/texmf.local/web2c
    6274
    63 include         contents
     75                        # Create the texmf.macosx tree
     76                        file mkdir ${destroot}/${prefix}/share/texmf.macosx/web2c
     77}
     78
     79
     80install.target          install strip
     81install.destroot        prefix=${destroot}/${prefix}/ texmf=${destroot}/${prefix}/
Note: See TracChangeset for help on using the changeset viewer.