# -*- 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.21
revision                0
checksums               rmd160  60c4dcbde4accb678975643d864a76524e7985a6 \
                        sha256  05724b083a6b6f0305fcae5243a056cc36cf826309c3cb9347a6b89ee3fc5ada \
                        size    9149284

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
