# -*- 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 108315 2013-07-19 09:55:36Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-datrie
version             0.6
revision            0
categories-append   devel
license             LGPL
platforms           darwin

python.versions     26 27 31 32 33

maintainers         stromnov openmaintainer

description         Super-fast, efficiently stored Trie for Python.
long_description    ${description}

homepage            https://github.com/kmike/datrie/
master_sites        http://pypi.python.org/packages/source/d/datrie/

distname            datrie-${version}

checksums           rmd160  2e0a63b5f48a764cd98ae7c9e4906fca981ed21d \
                    sha256  ca37aea5ea11e83427c43f4c1f89cc5746022d7ab82a0554dffdbc3f98cdadd3

if {$subport != $name} {
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "datrie-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
