# -*- 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 105827 2013-05-07 14:35:14Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-marisa-trie
version             0.5
revision            0
categories-append   devel
platforms           darwin
license             LGPL

python.versions     26 27 31 32 33

maintainers         stromnov openmaintainer

description         Static memory-efficient & fast Trie structures for Python (based on marisa-trie C++ library)
long_description    ${description}

homepage            https://github.com/kmike/marisa-trie
master_sites        http://pypi.python.org/packages/source/m/marisa-trie/

distname            marisa-trie-${version}

checksums           rmd160  45aae7c8be36a849d6983208d4550c2c59b99d90 \
                    sha256  7463f19af2dcbbe91df7909cff5385ed1f8c11c218de15075157e9ffe923f6ac

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