# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 90561 2012-03-09 01:49:10Z ryandesign@macports.org $

PortSystem              1.0

name                    winetricks
version                 20120308
categories              x11
maintainers             ryandesign
license                 LGPL-2+
homepage                http://www.winetricks.org/
master_sites            ${homepage}download/releases/
platforms               darwin
extract.suffix          .tgz
extract.mkdir           yes
supported_archs         noarch
use_configure           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               rmd160  3f964cd524ca99fb94398c9c143479268f53afd8 \
                        sha256  98af70ba736021706c4d27009bafb67f062331c2a6132d5835080bf6f7dc1ff9

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

build {}

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

livecheck.type          regex
livecheck.url           [lindex ${master_sites} 0]
livecheck.regex         ${name}-(\\d{8})\\.
