Ticket #49557: Portfile

File Portfile, 2.9 KB (added by dilawar.s.rajput@…, 8 years ago)

Added the tag branch id.

Line 
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
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    moose
8version                 3.0.2
9categories              science
10platforms               darwin
11maintainers             dilawars \
12                        ncbs.res.in:dilawars
13description             Neuronal modeling software spanning molecules, electrophysiology \
14                        and networks
15
16long_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
23homepage                http://moose.ncbs.res.in
24fetch.type              git
25fetch.ignore_sslcert    yes
26git.url                 https://github.com/BhallaLab/moose-full
27git.branch              56ab554
28license                 GPL-3
29
30
31depends_build           port:cmake \
32                        port:python27 \
33                        port:gsl  \
34                        port:hdf5 \
35
36depends_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
45set python_branch       2.7
46use_configure           yes
47
48
49configure.args          -DCMAKE_INSTALL_PREFIX=${prefix} ..
50configure.post_args     ""
51configure.pre_args      ""
52configure.cmd           mkdir -p _build && cd _build && cmake
53
54build.target            all
55
56build.cmd               cd _build && make
57
58test.run                yes
59test.cmd                cd _build && ctest --output-on-failure
60
61
62destroot.cmd            cd moose-core/python && ${python.bin} setup.py --no-user-cfg
63
64destroot.destdir        --prefix=${python.prefix} --root ${destroot}
65
66post-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