# -*- 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                        utimer
version                     0.4
set branch                  [join [lrange [split ${version} .] 0 1] .]
categories                  sysutils
platforms                   darwin
maintainers                 ryandesign

description                 multifunction command-line timer

long_description            µTimer (\"utimer\", pronounced \"micro-timer\") \
                            is a multifunction timer (command-line only). \
                            It provides a timer (e.g. count from 0 to 4 \
                            minutes), a countdown (e.g. count from 10 minutes \
                            to 0), and a stopwatch.

homepage                    http://utimer.codealpha.net/
master_sites                http://launchpad.net/utimer/${branch}/${version}/+download/

checksums                   md5     5fc82bcea449bdc3527a6833a1196641 \
                            sha1    b9590ef4ff6bb8ecf64bb703f50f1bfeddf3fbdd \
                            rmd160  046be734e2f1aaa2af13cbfc2236059c484965dc

depends_build               port:pkgconfig

depends_lib                 path:lib/pkgconfig/glib-2.0.pc:glib2 \
                            port:intltool

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        ChangeLog \
        README \
        ${docdir}
}

livecheck.type              regex
livecheck.url               http://launchpad.net/utimer/+download
livecheck.regex             ${name}-(\[0-9.\]+)\\.tar
