# $Id: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem      1.0
PortGroup       python 1.0

name            py-rtm
version         0.4.1
revision        1
categories-append     devel
platforms       darwin
supported_archs noarch
maintainers     ram openmaintainer
license         MIT

description     Python interface for Remember The Milk API.
long_description ${description}

homepage        http://pypi.python.org/pypi/pyrtm
master_sites    http://pypi.python.org/packages/source/p/pyrtm/
distname        pyrtm-${version}
use_bzip2       yes

python.versions 27 31 32
python.default_version 27

if {${subport} != ${name}} {
  depends_lib-append port:py${python.version}-setuptools
}

checksums       rmd160 7328c9d118f07fe05b3764d6eb2d7bb5b44728da \
                sha256 93daee65367d81163903fd1c3697e85709846686202766a328470458fe1b4ec9

if {${name} == ${subport}} {
  livecheck.type  regex
  livecheck.url   ${master_sites}
  livecheck.regex {pyrtm-(\d+(?:\.\d+)*).tar.bz2}
} else {
  livecheck.type  none
}
