# -*- 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
PortGroup active_variants 1.1
categories-append science
description Quantum Toolbox in Python
long_description QuTiP is open-source software for simulating the dynamics of open quantum systems.
homepage http://qutip.org/
master_sites http://qutip.org/downloads/${version}/
distname qutip-${version}
worksrcdir qutip-${version}
checksums rmd160 169eaaa6df3d8f5a62f172b89caab7c2f1ad4375 \
sha256 6db67ca5eb720e2cf5fb9651430c0d62a46198e2fe0c42c8d56ef11e2fc48cc6
# py-scipy is not universal
if {${name} ne ${subport}} {
compilers.choose fc f77 f90
compilers.setup require_fortran
depends_lib-append port:py${python.version}-cython \
port:py${python.version}-ipython \
port:py${python.version}-matplotlib \
port:py${python.version}-numpy \
port:py${python.version}-scipy
require_active_variants py${python.version}-ipython "notebook parallel"
require_active_variants py${python.version}-matplotlib latex
build.env-append CFLAGS="${configure.cc_archflags}" \
OBJCFLAGS="${configure.objc_archflags}" \
CXXFLAGS="${configure.cxx_archflags}" \
FFLAGS="${configure.f77_archflags}" \
F90FLAGS="${configure.f90_archflags}" \
FCFLAGS="${configure.fc_archflags}" \
LDFLAGS="-undefined dynamic_lookup -bundle ${configure.ld_archflags}"
livecheck.url ${homepage}
livecheck.regex {qutip-([0-9\.]+)\.tar\.gz}