forked from BhallaLab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPortfile
87 lines (63 loc) · 3.01 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# -*- 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
}