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

github.setup        srnas barnaba 0.1.7
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-barnaba

# this is due to a harmless stealth update
# https://trac.macports.org/wiki/PortfileRecipes#stealth-updates
dist_subdir   ${name}/${version}_1
# here's the diff between previous and newer untarred directories:
# diff -r mp/srnas-barnaba-1d02ca7/.git_archival.txt gh/srnas-barnaba-1d02ca7/.git_archival.txt
# 1c1
# < ref-names: HEAD -> master, tag: 0.1.7
# ---
# > ref-names: tag: 0.1.7

categories-append   science
license             GPL-3
maintainers         {gmail.com:giovanni.bussi @GiovanniBussi} openmaintainer

description         BaRNAba is a tool for analyzing RNA three-dimensional structures and simulations.
long_description    {*}${description} \
                    BaRNAba uses MDtraj to read/write topology and trajectory files, as such it \
                    supports several formats including pdb, xtc, trr, dcd, binpos, netcdf, mdcrd, \
                    prmtop, and more. See ${homepage} for more information.

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  e57a589dbcaf231e992f0e252517e602495443b6 \
                    sha256  217904208a5efb4dbd04d23910fad1ffe201c3dd7607a8adb08b9583bdd08c58 \
                    size    30260069

python.versions     39 310

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

    depends_lib-append      port:py${python.version}-future \
                            port:py${python.version}-mdtraj \
                            port:py${python.version}-numpy \
                            port:py${python.version}-pandas \
                            port:py${python.version}-scikit-learn \
                            port:py${python.version}-scipy

    test.run                yes
    python.test_framework   nose
}