# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; # indent-tabs-mod e: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 89885 2012-02-14 03:51:32Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-ntplib
version             0.1.9
python.versions     26 27
python.default_version  27
platforms           darwin
maintainers         maiar.org:jason-macports
license             LGPL
supported_archs     noarch
description         Simple interface to query NTP servers from Python.
long_description    This module offers a simple interface to query NTP \
                    servers from Python.  It also provides utility \
                    text (mode, leap indicator, ...). Since it's pure \
                    work on any platform with a decent Python implementation.


homepage            http://pypi.python.org/pypi/ntplib
master_sites        http://pypi.python.org/packages/source/n/ntplib/
distname            ntplib-${version}
checksums           rmd160   83238c60d29346d0335083dda5b46ea5f3725888 \
                    sha256   e0cfe76b4ca40d92c10be84818e48ca1e39946c24fd019f16de79bc2d673bee1

if {$subport != $name} {
    depends_lib         port:py${python.version}-distribute
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     ntplib (\\d+(\\.\\d+)+)
}
