# -*- 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-pysam
version             0.22.0
revision            0

categories-append   science
license             MIT BSD
maintainers         {soap.za.net:git @SoapZA} openmaintainer

description         Python interface for the SAM/BAM sequence \
                    alignment and mapping format
long_description    Pysam is a python module for reading and manipulating \
                    Samfiles. It's a lightweight wrapper of the samtools C-API.

homepage            https://github.com/pysam-developers/pysam

checksums           md5 f5f8abbff6ba5bfdc15336d89c217f5a \
                    rmd160 3b682310be843f9d72b96e65b82772d29bc5a7f3 \
                    sha256 ab7a46973cf0ab8c6ac327f4c3fb67698d7ccbeef8631a716898c6ba01ef3e45 \
                    size   4631254

python.versions     37 38 39 310 311 312

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-cython

    depends_lib-append  port:htslib

    build.env-append    HTSLIB_MODE=external \
                        HTSLIB_LIBRARY_DIR=${prefix}/lib \
                        HTSLIB_INCLUDE_DIR=${prefix}/include
}
