# -*- 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 106456 2013-05-27 12:34:25Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-DAWG
version             0.7.1
revision            0
categories-append   devel
license             MIT
platforms           darwin

python.versions     26 27 31 32 33

maintainers         stromnov openmaintainer

description         Fast and memory efficient DAWG for Python.
long_description    ${description}

homepage            https://github.com/kmike/DAWG/
master_sites        http://pypi.python.org/packages/source/D/DAWG/

distname            DAWG-${version}

checksums           rmd160  d48af8acb12cf4faf09cb173fed7dc34bb7c2201 \
                    sha256  e860133270b8b24d5fe748a830e971c7b2c35eaefcad020088bc42d1c3050f08

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