# -*- 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 117532 2014-03-03 05:53:38Z ryandesign@macports.org $

PortSystem              1.0

name                    winetricks
version                 20140302
categories              x11
maintainers             ryandesign
license                 LGPL-2+
homepage                http://www.winetricks.org/
master_sites            ${homepage}download/releases/
platforms               darwin
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  ecf6bdb4823982f4f21cbdc817649ae54f6cb859 \
                        sha256  c14972845a935c3b0f49ae70471f5f2ca0e76db18a59ca178416bef031d2e8c5

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.args           PREFIX=${prefix}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 ${worksrcpath}/src/COPYING ${destroot}${docdir}
}

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