# $Id: Portfile 66654 2010-04-19 09:25:10Z ryandesign@macports.org $

PortSystem                  1.0

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

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}
}

if {[info exists supported_archs]} {
    supported_archs i386 ppc
}
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.]+)}
