Ignore:
Timestamp:
Aug 6, 2009, 6:34:53 PM (10 years ago)
Author:
toby@…
Message:

#20557 (tth package has been updated on the download site, md5 nolonger matches)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/tth/Portfile

    r34969 r55085  
    11# $Id$
    22
    3 PortSystem      1.0
     3PortSystem 1.0
     4
    45name            tth
    5 version         3.80
     6version         3.85
    67categories      textproc print
    7 maintainers     nomaintainer
     8maintainers     toby
    89description     a TeX to HTML transaltor
    9 long_description        \
    10         TTH translates TEX, the predominant mark-up language for        \
    11         expressing mathematics, into HTML, the language of              \
    12         world-wide-web browsers. It thereby enables mathematical        \
    13         documents to be made available on the web. Document structure,  \
    14         using either the Plain or LaTeX macro packages, is also         \
    15         translated and incorporated in the form of hyperlinks.
     10long_description \
     11    TTH translates TEX, the predominant mark-up language for    \
     12    expressing mathematics, into HTML, the language of          \
     13    world-wide-web browsers. It thereby enables mathematical    \
     14    documents to be made available on the web. Document structure,      \
     15    using either the Plain or LaTeX macro packages, is also     \
     16    translated and incorporated in the form of hyperlinks.
    1617platforms       darwin freebsd
    1718homepage        http://hutchinson.belmont.ma.us/tth/
    1819
    19 dist_subdir     ${name}/${version}
    20 
    21 master_sites    http://hutchinson.belmont.ma.us/tth/tth-noncom/
    22 # This port is prone to breakage because the author doesn't see fit to make old
    23 # versions available, or even put a version number in the tarball's name. Sigh.
    24 checksums       md5 54d0a9fbbe67d7f198288a8cf2c32ad3
     20master_sites    ${homepage}tth-noncom/
    2521distname        ${name}_C
    2622extract.suffix  .tgz
    2723
    28 use_configure   no
     24dist_subdir     ${name}/${version}
    2925
    30 build           {
    31         system "cd ${workpath}/${distname} && cc -o ${name} ${name}.c"
     26# This port is prone to breakage because the author doesn't see fit to make old
     27# versions available, or even put a version number in the tarball's name. Sigh.
     28checksums       md5 11575669b8e932e459800a7417278981 \
     29                sha1 0925eba8801267a43b2572db31c2f4f3b20b7f07 \
     30                rmd160 bc9376a1ff4e34a518c645f7d282f758eb05814b
     31
     32# sigh
     33configure {}
     34set mycflags ${configure.cflags}
     35if {[variant_isset universal]} {
     36    set mycflags "$mycflags ${configure.universal_cflags}"
     37} else {
     38    set mycflags "$mycflags ${configure.cc_archflags}"
    3239}
    3340
    34 destroot        {
    35         xinstall -m 755 ${workpath}/${distname}/tth ${destroot}${prefix}/bin
    36         xinstall -m 755 ${workpath}/${distname}/latex2gif ${destroot}${prefix}/bin
    37         xinstall -m 755 ${workpath}/${distname}/ps2gif ${destroot}${prefix}/bin
    38         xinstall -m 755 ${workpath}/${distname}/ps2png ${destroot}${prefix}/bin
    39         xinstall -m 644 ${workpath}/${distname}/tth.1 ${destroot}${prefix}/share/man/man1
     41build.cmd       ${configure.cc}
     42build.pre_args
     43build.args      $mycflags ${name}.c -o ${name}
     44
     45destroot {
     46    xinstall -m 755 ${worksrcpath}/tth ${destroot}${prefix}/bin
     47    xinstall -m 755 ${worksrcpath}/latex2gif ${destroot}${prefix}/bin
     48    xinstall -m 755 ${worksrcpath}/ps2gif ${destroot}${prefix}/bin
     49    xinstall -m 755 ${worksrcpath}/ps2png ${destroot}${prefix}/bin
     50    xinstall -m 644 ${worksrcpath}/tth.1 ${destroot}${prefix}/share/man/man1
    4051}
     52
     53livecheck.url   ${homepage}Version
     54livecheck.regex \"(.*)\"
Note: See TracChangeset for help on using the changeset viewer.