1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name moose |
---|
8 | version 3.0.2 |
---|
9 | categories science |
---|
10 | platforms darwin |
---|
11 | maintainers dilawars \ |
---|
12 | ncbs.res.in:dilawars |
---|
13 | description Neuronal modeling software spanning molecules, electrophysiology \ |
---|
14 | and networks |
---|
15 | |
---|
16 | long_description MOOSE is designed to simulate neural systems ranging from \ |
---|
17 | subcellular components and biochemical reactions to \ |
---|
18 | complex models of single neurons, circuits, and large networks. \ |
---|
19 | MOOSE can operate at many levels of detail, from stochastic chemical \ |
---|
20 | computations, to multicompartment single-neuron models, to spiking neuron \ |
---|
21 | network models. |
---|
22 | |
---|
23 | homepage http://moose.ncbs.res.in |
---|
24 | fetch.type git |
---|
25 | fetch.ignore_sslcert yes |
---|
26 | git.url https://github.com/BhallaLab/moose-full |
---|
27 | git.branch 56ab554 |
---|
28 | license GPL-3 |
---|
29 | |
---|
30 | |
---|
31 | depends_build port:cmake \ |
---|
32 | port:python27 \ |
---|
33 | port:gsl \ |
---|
34 | port:hdf5 \ |
---|
35 | |
---|
36 | depends_lib port:gsl \ |
---|
37 | port:hdf5 \ |
---|
38 | port:py27-matplotlib \ |
---|
39 | port:py27-numpy \ |
---|
40 | port:py-suds-jurko \ |
---|
41 | port:py-pyqt4 \ |
---|
42 | port:py-networkx \ |
---|
43 | port:python27 \ |
---|
44 | |
---|
45 | set python_branch 2.7 |
---|
46 | use_configure yes |
---|
47 | |
---|
48 | |
---|
49 | configure.args -DCMAKE_INSTALL_PREFIX=${prefix} .. |
---|
50 | configure.post_args "" |
---|
51 | configure.pre_args "" |
---|
52 | configure.cmd mkdir -p _build && cd _build && cmake |
---|
53 | |
---|
54 | build.target all |
---|
55 | |
---|
56 | build.cmd cd _build && make |
---|
57 | |
---|
58 | test.run yes |
---|
59 | test.cmd cd _build && ctest --output-on-failure |
---|
60 | |
---|
61 | |
---|
62 | destroot.cmd cd moose-core/python && ${python.bin} setup.py --no-user-cfg |
---|
63 | |
---|
64 | destroot.destdir --prefix=${python.prefix} --root ${destroot} |
---|
65 | |
---|
66 | post-destroot { |
---|
67 | |
---|
68 | set guidir ${prefix}/lib/moose/gui |
---|
69 | xinstall -m 755 -d ${destroot}${guidir} |
---|
70 | |
---|
71 | # Replace the $GUIDIR with real path on MacOSX. |
---|
72 | # TODO: Turn gui subdirectory into a python module. |
---|
73 | reinplace -W ${worksrcpath}/package_data "s|\$GUIDIR|${guidir}|g" moosegui |
---|
74 | |
---|
75 | set exampledir ${prefix}/lib/moose/moose-examples |
---|
76 | xinstall -m 755 -d ${destroot}${exampledir} |
---|
77 | |
---|
78 | # xinstall does not work recursively. Use rsync to copy the directories. |
---|
79 | exec rsync -azv ${worksrcpath}/moose-gui/ ${destroot}${guidir} |
---|
80 | exec rsync -azv ${worksrcpath}/moose-examples/ ${destroot}${exampledir} |
---|
81 | |
---|
82 | xinstall -m 755 ${worksrcpath}/package_data/moosegui ${destroot}${prefix}/bin/moosegui |
---|
83 | } |
---|
84 | |
---|