# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-libnamebench
set real_name       namebench
version             1.3.1
platforms           {darwin any}
license             Apache-2
maintainers         nomaintainer

description         DNS speed benchmark tool (CLI)
long_description    namebench hunts down the fastest DNS servers \
                    available for your computer. namebench runs a fair \
                    and thorough benchmark using your web browser \
                    history, tcpdump output, or standardized datasets \
                    in order to provide an individualized recommendation. \
                    This port only installs the command line interface -- \
                    for the Cocoa GUI interface, install the "namebench" port.
homepage            https://code.google.com/p/namebench/

supported_archs     noarch

master_sites        googlecode:${real_name}
distname            ${real_name}-${version}-source
extract.suffix      .tgz
# store file in namebench port distfiles dir: both ports use the same file
dist_subdir         ${real_name}
checksums           rmd160  93d1186caf2a214ecf1966ee798f01d329ecfd64 \
                    sha256  30ccf9e870c1174c6bf02fca488f62bba280203a0b1e8e4d26f3756e1a5b9425

worksrcdir          ${real_name}-${version}

python.versions     27

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-dnspython \
                        port:py${python.version}-graphy \
                        port:py${python.version}-httplib2 \
                        port:py${python.version}-jinja2
    build.env-append    NO_THIRD_PARTY=true
    destroot.env-append NO_THIRD_PARTY=true
}