# -*- 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 73901 2010-11-28 19:00:53Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                gcalcli
version             1.4
categories          office python devel
maintainers         nomaintainer
description         Google Calendar Command Line Interface
long_description \
    gcalcli is a Python application that allows you to access your Google Calendar \
    from a command line. It is easy to get your agenda, search for events and \
    quickly add new events. Additionally, gcalcli can be used as a reminder \
    service to execute any application you want.
license             MIT
platforms           darwin
homepage            http://code.google.com/p/gcalcli
master_sites        googlecode
extract.suffix 	    .tgz
use_configure 	    no
checksums           md5     6f01ff01750e06083857347e2a5f11f8 \
                    sha1    65edd3b1a825a178746485ca5d8321a40c400794 \
                    rmd160  0b75d0e549c40b9d5130f6cf5a1186dee121778d

depends_lib         port:py26-gdata \
                    port:py26-elementtree \
                    port:py26-dateutil

post-patch {
	reinplace "s|^#!/usr/bin/python|#!${prefix}/bin/python|" ${workpath}/gcalcli
}

build {}

destroot {
	xinstall -m 755 ${workpath}/gcalcli ${destroot}${prefix}/bin/$name
}

