Ticket #13195: dialog-dist_subdir.diff

File dialog-dist_subdir.diff, 878 bytes (added by ryandesign (Ryan Carsten Schmidt), 17 years ago)

a much simpler way to do it

  • Portfile

     
    1919homepage        http://www.invisible-island.net/dialog/
    2020master_sites    ftp://invisible-island.net/dialog/
    2121distname        ${name}
     22dist_subdir     ${name}/${version}
    2223worksrcdir      ${name}-${version}
    2324
    24 pre-fetch {
    25     if {[file exists ${distpath}/${distname}-${version}.tar.gz]} {
    26         file rename ${distpath}/${distname}-${version}.tar.gz ${distpath}/${distname}.tar.gz
    27     }
    28 }
    29 
    3025checksums       sha1 1d290e3c3fb38403fc183ced29b4faae4491169f \
    3126    rmd160 d3ab49bfb3a16a106f219689f4a513eb6a02e892
    3227
     
    5752        ${destroot}${prefix}/share/doc/${name}/examples
    5853}
    5954
    60 post-build {
    61     file rename  ${distpath}/${distname}.tar.gz  ${distpath}/${distname}-${version}.tar.gz
    62 }
    63 
    6455platform darwin 8 {
    6556    configure.compiler  gcc-4.0
    6657}