# -*- 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-pyvcf
set realname        PyVCF
version             0.6.8
categories-append   science
platforms           darwin
license             MIT BSD
maintainers         @SoapZA

description         Python interface for the VCF variant file \
                    common in sequence analysis
long_description    PyVCF is a library to read and write VCF 4.0 \
                    and 4.1 files with ease.

homepage            https://pypi.python.org/pypi/${realname}

master_sites        pypi:P/${realname}
distname            ${realname}-${version}

checksums           rmd160  26b3f906f30aed38cc1fc8440cd41fc1e94e9182 \
                    sha256  e9d872513d179d229ab61da47a33f42726e9613784d1cb2bac3f8e2642f6f9d9

python.versions     27 34 35 36

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools \
                        port:py${python.version}-cython
    depends_lib-append  port:htslib
    livecheck.type      none
} else {
    livecheck.name      PyVCF
    livecheck.regex     PyVCF-(\\d+(\\.\\d+)+)${extract.suffix}
}