# -*- 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               github 1.0
PortGroup               legacysupport 1.1

# strnlen
legacysupport.newest_darwin_requires_legacy 10

github.setup            samtools samtools 1.22.1
revision                0
checksums               rmd160  c0f25de2226e2ed29b04c199793a65b25cd3f0e3 \
                        sha256  02aa5cd0ba52e06c2080054e059d7d77a885dfe9717c31cd89dfe7a4047eda0e \
                        size    9269357

categories              science
maintainers             {ryandesign @ryandesign} openmaintainer
license                 MIT

description             Tools for alignments in the SAM format

long_description        SAM (Sequence Alignment/Map) Tools provide various \
                        utilities for manipulating alignments in the SAM \
                        format, including sorting, merging, indexing and \
                        generating alignments in a per-position format.

homepage                https://www.htslib.org
github.tarball_from     releases
use_bzip2               yes

depends_lib             port:htslib \
                        port:ncurses \
                        port:zlib

configure.args          --with-htslib=system

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} \
        AUTHORS LICENSE NEWS.md README \
        ${destroot}${prefix}/share/doc/${name}
}

test.run                yes
test.target             check
