# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup python 1.0 name moose categories-append science biology chemistry version 3.0.2 categories science platforms darwin maintainers dilawars \ ncbs.res.in:dilawars description Neuronal modeling software spanning molecules, electrophysiology \ and networks long_description MOOSE is designed to simulate neural systems ranging from \ subcellular components and biochemical reactions to \ complex models of single neurons, circuits, and large networks. \ MOOSE can operate at many levels of detail, from stochastic chemical \ computations, to multicompartment single-neuron models, to spiking neuron \ network models. homepage http://moose.ncbs.res.in fetch.type git fetch.ignore_sslcert yes git.url https://github.com/BhallaLab/moose-full git.branch master license GPL-3 depends_build port:cmake \ port:python27 \ port:gsl \ port:hdf5 \ depends_lib-append port:gsl \ port:hdf5 \ port:py27-numpy \ port:py-pyqt4 \ port:python27 \ depends_run-append port:py-suds-jurko \ port:py27-matplotlib \ port:python27 \ port:py-networkx \ set python_branch 2.7 use_configure yes configure.args -DCMAKE_INSTALL_PREFIX=${prefix} .. configure.post_args "" configure.pre_args "" configure.cmd mkdir -p _build && cd _build && cmake build.target all build.cmd cd _build && make test.run yes test.cmd cd _build && ctest --output-on-failure destroot.cmd cd moose-core/python && ${python.bin} setup.py --no-user-cfg destroot.destdir --prefix=${python.prefix} --root ${destroot} post-destroot { set guidir ${prefix}/lib/moose/gui xinstall -m 755 -d ${destroot}${guidir} # Replace the $GUIDIR with real path on MacOSX. # TODO: Turn gui subdirectory into a python module. reinplace -W ${worksrcpath}/package_data "s|\$GUIDIR|${guidir}|g" moosegui set exampledir ${prefix}/lib/moose/moose-examples xinstall -m 755 -d ${destroot}${exampledir} # xinstall does not work recursively. Use rsync to copy the directories. exec rsync -azv ${worksrcpath}/moose-gui/ ${destroot}${guidir} exec rsync -azv ${worksrcpath}/moose-examples/ ${destroot}${exampledir} xinstall -m 755 ${worksrcpath}/package_data/moosegui ${destroot}${prefix}/bin/moosegui }