source: trunk/dports/python/py26-pymvpa/Portfile @ 110109

Last change on this file since 110109 was 110109, checked in by jeremyhu@…, 7 years ago

py26-pymvpa: Use fortran recipe to fix build on Mavericks. Replace no_shogun variant with shogun variant (default on).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- 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
2# $Id: Portfile 110109 2013-08-26 08:51:50Z jeremyhu@macports.org $
3
4PortSystem              1.0
5PortGroup               python26 1.0
6
7name                    py26-pymvpa
8version                 0.4
9revision                2
10epoch                   1
11categories              python
12
13platforms               darwin
14maintainers             jameskyle
15
16description             PyMVPA is a Python module intended to ease pattern classification analyses of large datasets.
17
18long_description        ${description}. In the neuroimaging contexts such analysis techniques are also known as decoding or MVPA analysis. PyMVPA provides high-level abstraction of typical processing steps and a number of implementations of some popular algorithms.
19
20homepage                http://www.pymvpa.org
21fetch.type              git
22git.url                 https://github.com/PyMVPA/PyMVPA.git
23git.branch              maint/${version}
24
25depends_lib             port:py26-numpy \
26                        port:git-core \
27                        port:py26-setuptools \
28                        port:py26-scipy \
29                        port:py26-pynifti \
30                        port:py26-hcluster \
31                        port:libsvm \
32                        port:swig-python \
33                        port:py26-pywavelets \
34                        port:shogun \
35                        port:py26-matplotlib \
36                        port:py26-lxml
37
38depends_build           port:git-core
39
40# py26-scipy is not universal
41universal_variant       no
42
43configure.args          --with-system-libsvm
44build.args              --with-system-libsvm
45build.target            build
46
47pre-fetch {
48    if {[file exists ${prefix}/share/doc/mvpa]} {
49        ui_error "It appears the 2.5 version of mvpa is installed"
50        ui_error "Only one version of pymvpa can be installed at one time"
51        return -code error "multiple mvpa installs detected"
52    }
53
54
55    if {[variant_isset shogun]} {
56      if {![file exists ${python.pkgd}/sg.so]} {
57        ui_error "To install pymvpa with the shogun variant, shogun must be installed with the python variant."
58        return -code error "incompatible shogun installation"
59      }
60    }
61
62}
63
64variant shogun description {Do not build shogun} {
65    depends_lib-delete port:shogun
66}
67default_variants-append +shogun
68
69configure.env           CC=${configure.cc} \
70                        CPP=${configure.cxx}
71
72build.env-append        CC=${configure.cc} \
73                        CPP=${configure.cxx} \
74                        CCFLAGS="${configure.cppflags} ${configure.cflags}" \
75                        CPPFLAGS="${configure.cppflags} ${configure.cxxflags}"
76
77destroot.env-append     CC=${configure.cc} \
78                        CPP=${configure.cxx} \
79                        CCFLAGS="${configure.cppflags} ${configure.cflags}" \
80                        CPPFLAGS="${configure.cppflags} ${configure.cxxflags}"
81
82post-destroot {
83  xinstall -m 755 -d "${destroot}${prefix}/share/doc/"
84  file delete ${worksrcpath}/doc/todo.txt
85  file delete ${worksrcpath}/doc/legal.txt
86  file delete ${worksrcpath}/doc/changelog.txt
87
88  file copy ${worksrcpath}/TODO ${worksrcpath}/doc/
89  file copy ${worksrcpath}/COPYING ${worksrcpath}/doc/
90  file copy ${worksrcpath}/Changelog ${worksrcpath}/doc/
91  file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/mvpa
92}
93
94livecheck.url   http://git.debian.org/?p=pkg-exppsy/pymvpa.git
95livecheck.regex {upstream\/([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.