# -*- 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 67583 2010-05-13 12:04:52Z snc@macports.org $

PortSystem          1.0

name                todotxt
version             2.6
categories          office
license             GPL
maintainers         snc openmaintainer

description         Simple, extensible shell script to manage your todo file.
long_description    A simple and extensible shell script for managing your \
                    todo.txt file.

homepage            http://ginatrapani.github.com/todo.txt-cli/

platforms           darwin

master_sites        http://github.com/downloads/ginatrapani/todo.txt-cli
distname            todo.txt_cli-${version}
checksums           md5     1395ed8cdce96ef630c25522a7a11998 \
                    sha1    ed6491141ac6e55addc06733485f2fe1ff064515 \
                    rmd160  f54ce343ad6bcf0a3725e9cea0f2a2b23feda7fb

use_configure       no

build {}

destroot {
    xinstall -m 755 ${worksrcpath}/todo.sh ${destroot}${prefix}/bin/$name
    xinstall -m 644 ${worksrcpath}/todo.cfg ${destroot}${prefix}/etc/todo.cfg
}

notes \
"You will need to copy and then edit the default configuration
(${prefix}/etc/todo.cfg) in your home directory."

livecheck.type      regex
livecheck.url       http://github.com/ginatrapani/todo.txt-cli/downloads
livecheck.regex     "todo\\.txt_cli-(\\d+\\.\\d+(\\.\\d+)?)"
