# $Id: Portfile 56422 2009-08-27 10:19:26Z ryandesign@macports.org $

PortSystem              1.0

name                    winetricks
version                 20090826
categories              x11
maintainers             ryandesign
homepage                http://code.google.com/p/winezeug/
master_sites            http://www.kegel.com/wine/
platforms               darwin
distname                ${name}
dist_subdir             ${name}/${version}
extract.suffix
extract.mkdir           yes
use_configure           no
universal_variant       no
use_parallel_build      no

description \
    downloads and installs various redistributable runtime libraries

long_description \
    ${name} can help you prepare your system for Windows applications \
    that mistakenly assume all users' systems have all the needed \
    redistributable runtime libraries or fonts.

checksums \
    md5     c4adead32fdce94bb5bdeb227f316186 \
    sha1    006cefaeed5bd33e8cfe53ef31328eccd840e803 \
    rmd160  5fc1d29b0e7888f834b0c7a6dbba7f0b2aa5f8cb

depends_run \
    path:bin/xmessage:xmessage \
    path:bin/wine:wine \
    path:bin/cabextract:cabextract \
    path:bin/openssl:openssl \
    bin:curl:curl \
    bin:unzip:unzip

extract {
    copy ${distpath}/${name} ${worksrcpath}
}

build {}

destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
}


livecheck.check         regex
livecheck.url           [lindex ${master_sites} 0]${name}
livecheck.regex         {^VERSION=(\d+)}
