# -*- 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 55430 2009-08-10 15:13:21Z snc@macports.org $

PortSystem          1.0

name                todotxt
version             2.4
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

fetch.type          git
git.url             git://github.com/ginatrapani/todo.txt-cli.git

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
}

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

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