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

github.setup        libsbmlsim libsbmlsim 1.4.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1
categories          science
maintainers         {@funasoul gmail.com:funasoul} openmaintainer
license             LGPL-2.1+

description         A library for simulating SBML models

long_description    LibSBMLSim is a library for simulating an SBML model which contains \
                    Ordinary Differential Equations (ODEs). LibSBMLSim provides simple \
                    command-line tool and several APIs to load an SBML model, perform \
                    numerical integration (simulate) and export its results. \
                    Both explicit and implicit methods are supported on libSBMLSim.

homepage            https://fun.bio.keio.ac.jp/software/libsbmlsim/

checksums           rmd160  8986883d5e604abe8b4bfa380e0e65f5f4c7c584 \
                    sha256  04ddf304d2a731a17b32fc4a2ca4ac07500f59ae36fa4440f169dd30daa74115 \
                    size    35000546

depends_lib-append  port:libsbml

variant csharp description {Generate C# language bindings.} {
    depends_build-append   port:swig port:swig-csharp
    configure.args-append  -DWITH_CSHARP:BOOL=ON
}

variant java description {Generate Java language bindings.} {
    depends_build-append   port:swig port:swig-java
    configure.args-append  -DWITH_JAVA:BOOL=ON
}

variant python27 conflicts python38 python39 description {Generate Python version 2.7 language bindings.} {
    depends_build-append  port:swig port:swig-python
    depends_lib-append      port:python27
    configure.args-append   -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7
}

variant python38 conflicts python27 python39 description {Generate Python version 3.8 language bindings.} {
    depends_build-append  port:swig port:swig-python
    depends_lib-append      port:python38
    configure.args-append   -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python3.8
}

variant python39 conflicts python27 python38 description {Generate Python version 3.9 language bindings.} {
    depends_build-append  port:swig port:swig-python
    depends_lib-append      port:python39
    configure.args-append   -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python3.9
}

variant ruby description {Generate Ruby language bindings.} {
    depends_build-append   port:swig port:swig-ruby
    configure.args-append  -DWITH_RUBY:BOOL=ON
}
