Ticket #35884: portfile.diff

File portfile.diff, 2.1 KB (added by khepler, 12 years ago)

optipng portfile version bump to 1.7.2

  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name            optipng
    6 version         0.6.5
     6version         0.7.2
    77categories      graphics
    88license         zlib
    99maintainers     nomaintainer
     
    2121homepage        http://optipng.sourceforge.net/
    2222master_sites    sourceforge:project/${name}/OptiPNG/${name}-${version}
    2323
    24 checksums       md5     9df5fa7bb45ae096ed6c6e0d8dc43dc7 \
    25                 sha1    91525748a0bbd9bbfa8355529da7c17a408173e5 \
    26                 rmd160  2b67ce48cba37e5c77ef13bdc285b37e919e2b01
     24checksums       md5     3bf5ff3e1dff99adb3c0b3dd9fd99f8a \
     25                sha1    06c294ca6fd767ff59f5ef9afdb32ae390b40989 \
     26                rmd160  7b578c8339cae5d5f5d687965aa33022c6dc5910
    2727
    2828# Doesn't depend on libpng or zlib since it uses its own, modified versions
    2929
     
    3131# backslash-newline sequence compatibility.
    3232depends_build   port:gmake
    3333
    34 # Avoid --prefix option (not supported by OptiPNG's configure script).
    35 configure.pre_args
     34configure.args  --mandir=${prefix}/share/man
    3635
    3736# Workaround for problem with MacPorts 1.8.0, which adds the
    3837# --disable-dependency-tracking configure option with the
     
    4241
    4342build.cmd       ${prefix}/bin/gmake
    4443
    45 destroot {
    46         xinstall -m 755 -d ${destroot}${prefix}/bin \
    47           ${destroot}${prefix}/share/doc/${name} \
    48           ${destroot}${prefix}/share/man/man1
    49         xinstall -m 755 -W ${worksrcpath}/src optipng ${destroot}${prefix}/bin
    50         eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
    51           ${worksrcpath}/README.txt ${destroot}${prefix}/share/doc/${name}
    52         xinstall -m 644 ${worksrcpath}/man/optipng.1 \
    53           ${destroot}${prefix}/share/man/man1
    54 }
    55 
    56 # The default SourceForge livecheck rule doesn't with OptiPNG.
     44# The default SourceForge livecheck rule doesn't work with OptiPNG.
    5745livecheck.type  regex
    5846livecheck.url   ${homepage}
    59 livecheck.regex "Latest version:.*<b>OptiPNG&nbsp;(\\d+\\.\\d+\\.\\d+)</b>"
     47livecheck.regex "<b>OptiPNG&nbsp;(\\d+\\.\\d+\\.\\d+)</b></font> \\(stable\\)"