# -*- 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

PortSystem                  1.0

name                        utimer
version                     0.4
revision                    0
set branch                  [join [lrange [split ${version} .] 0 1] .]
categories                  sysutils
platforms                   darwin
maintainers                 {ryandesign @ryandesign} openmaintainer

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                    https://launchpad.net/utimer
master_sites                https://launchpad.net/utimer/${branch}/${version}/+download/

checksums                   rmd160  046be734e2f1aaa2af13cbfc2236059c484965dc \
                            sha256  07a9d28e15155a10b7e6b22af05c84c878d95be782b6b0afaadec2f7884aa0f7 \
                            size    144408

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

depends_build               port:intltool \
                            port:pkgconfig

patchfiles                  patch-remove-intltool-perl-hack.diff \
                            implicit.patch

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

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