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

name                    seqan2
categories              science
platforms               any
supported_archs         noarch

license                 BSD
maintainers             {fu-berlin.de:rene.rahn @rrahn} openmaintainer

description             SeqAn - The C++ Sequence Analysis Library

long_description        SeqAn is an open source C++ library of efficient algorithms \
                        and data structures for the analysis of sequences with the \
                        focus on biological data.

homepage                https://www.seqan.de

github.setup            seqan seqan 2.5.0 seqan-v
github.tarball_from     releases
distname                ${github.project}-library-${github.version}
use_xz                  yes

checksums               rmd160  d40dfbea2362d7f01549ff25a059359f5b1e47f7 \
                        sha256  03a605e44d60e0a04b5822db4abd590f252012b2c579fd1167a09daeba758fce \
                        size    4950436

use_configure           no

set major               [lindex [split ${github.version} .] 0]

build {}

destroot {
    file copy ${worksrcpath}/include/seqan ${destroot}${prefix}/include
    file copy ${worksrcpath}/share/doc/seqan ${destroot}${prefix}/share/doc
    file copy ${worksrcpath}/share/pkgconfig/${github.project}-${major}.pc ${destroot}${prefix}/lib/pkgconfig/
    file mkdir ${destroot}${prefix}/lib/cmake/${github.project}
    file copy ${worksrcpath}/share/cmake/seqan/seqan-config.cmake ${destroot}${prefix}/lib/cmake/${github.project}/
}

livecheck.type          regex
livecheck.url           http://packages.seqan.de/
livecheck.regex         ${github.project}-library-(\[0-9.\]+)${extract.suffix}
