# $Id: Portfile 68188 2010-05-28 19:32:23Z ryandesign@macports.org $

PortSystem              1.0

name                    winetricks
version                 20100526
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
if {[info exists supported_archs]} {
    supported_archs noarch
}
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     c7e5e756a9c11de046ee16e7ab35a0d3 \
                        sha1    e6920133c3ea631bb522c27819f31875d1032f6f \
                        rmd160  0bd56c9f1217a0864d28bcc6a0f5d2473df59ed6

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.type          regex
livecheck.url           [lindex ${master_sites} 0]${name}
livecheck.regex         {^VERSION=(\d+)}
