# -*- 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 91732 2012-04-09 09:12:33Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-kyotocabinet
version             1.17
revision            0
categories-append   databases
license             GPL
platforms           darwin

maintainers         stromnov openmaintainer

description         Python 2.x Binding of Kyoto Cabinet
long_description    ${description}

homepage            http://fallabs.com/kyotocabinet/
master_sites        http://fallabs.com/kyotocabinet/pythonlegacypkg/

distname            kyotocabinet-python-legacy-${version}

checksums           rmd160  5abf039934c1ff442ca56e12e34690bb39eaee24 \
                    sha256  552c47a24b74a5201a7e637dc08fff99f1ddb6ac31a5964da76756d2e2860181

python.default_version  27
python.versions     26 27

if {$subport != $name} {
    depends_lib-append  port:kyotocabinet \
                        port:zlib
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "kyotocabinet-python-legacy-(\\d+(?:\\.\\d+)*)${extract.suffix}"
