# -*- 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 75461 2011-01-25 19:40:30Z snc@macports.org $

PortSystem          1.0

name                todotxt
version             2.7
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           sha1    f0e45040633a1fb15eae9a47733f8aed03b8f7f9 \
                    rmd160  d33ff76f4de815220133cc1182c6ca4abdcf7efa

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+)?)"
