# -*- 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 107868 2013-07-08 02:53:18Z ryandesign@macports.org $

PortSystem              1.0

name                    winetricks
version                 20130707
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  6e2f493d237a6d43c093a20e09ecf6c75fefc036 \
                        sha256  020b43f9d3f5aaf41dc5c2ffe72dd257862386fbebfa7b3827f6f18cb1dfd97c

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})\\.
