# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
# $Id: Portfile 107149 2013-06-19 20:48:20Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

set my_name         Baker
name                py-[string tolower ${my_name}]
version             1.3
python.versions     26 27 32 33
maintainers         g5pw openmaintainer
license             Apache-2
description         Easy, powerful access to Python functions from the \
                    command line.
long_description    ${description}

platforms           darwin
supported_archs     noarch

homepage            http://pypi.python.org/pypi/${my_name}
master_sites        http://pypi.python.org/packages/source/B/${my_name}/

checksums           rmd160  9fe09881a78c1234979094d082fda204aa6d21eb \
                    sha256  2d81e99af7d7d6441297a0c13de023fe3f1510718e89d2baacea917ee09d154d

if {${name} != ${subport}} {
    depends_build       port:py${python.version}-setuptools
    distname            ${my_name}-${version}
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "${my_name}-(\\d+(\\.\\d+){1,2})${extract.suffix}"
}
