# -*- 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 71090 2010-09-01 06:47:44Z ryandesign@macports.org $

PortSystem                  1.0

name                        cliclick
version                     1.3.1
platforms                   macosx
categories                  sysutils
maintainers                 ryandesign
license                     freeware
supported_archs             i386 ppc

description                 a command-line utility for simulating mouse clicks

long_description            ${name} emulates mouse clicks or series of mouse \
                            clicks (including double-clicks and Control-clicks) \
                            at arbitrary screen coordinates

homepage                    http://www.bluem.net/en/mac/cliclick/
master_sites                http://www.bluem.net/files/

use_dmg                     yes
distname                    ${name}
dist_subdir                 ${name}/${version}

checksums                   md5     acac7d3bc2f289a2cb397f048d421858 \
                            sha1    f1c5ea9db95c950fc1d3ccac7766935fa41c0a17 \
                            rmd160  ec57707aa3564889cbd77e3ce0f6623221f22e8a

use_configure               no

build {}

destroot {
    xinstall -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} {Read me.rtf} ${destroot}${prefix}/share/doc/${name}
}

default_variants +universal
variant universal {}
pre-fetch {
    if {![variant_isset universal]} {
        return -code error "${name} is only available in a universal version"
    }
}

livecheck.type              regex
livecheck.regex             {Version: ([0-9.]+)}
