source: trunk/dports/python/py-pynifti/Portfile

Last change on this file was 125011, checked in by mf2k@…, 3 years ago

backuppc cextract gdchart newmat newran nifticlib py-chm py-chm2pdf py-hcluster py-ode py-psychopy py-pynifti py-pywavelets py26-pymvpa py26-tvdb py26-tvnamer py27-instapaperlib shogun uclatools xmedcon: Ports abandoned. (#44641)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 125011 2014-09-02 19:44:07Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    py-pynifti
8version                 0.20100607.1
9revision                1
10categories              python
11platforms               darwin
12license                 public-domain
13maintainers             nomaintainer
14description             PyNIfTI aims to provide easy access to NIfTI images from within Python.
15long_description        ${description}. It uses SWIG-generated wrappers for the NIfTI reference library and provides the NiftiImage class for Python-style access to the image data.
16
17homepage                http://sourceforge.net/projects/niftilib
18master_sites            sourceforge:project/niftilib/pynifti/${version}
19
20checksums               rmd160  f9337ca40681b76432ac362d088034d79ba28556 \
21                        sha256  d1607d330e94576d6b0f18690b5b94c75ed1a93722c573e9ea781580f555611a
22
23python.versions         26 27
24
25if {${name} ne ${subport}} {
26    depends_lib         port:py${python.version}-numpy \
27                        port:nifticlib \
28                        port:swig-python
29
30    build.env           CCFLAGS="-I${prefix}/include -L${prefix}/lib -I${prefix}/include/nifti"
31
32    distname            pynifti_${version}
33    worksrcdir          pynifti-${version}
34    patchfiles          patch-setup-py.diff
35    post-patch {
36        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
37    }
38
39    variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description {build with gcc 4.3} {
40        configure.compiler   macports-gcc-4.3
41    }
42
43    variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description {build with gcc 4.4} {
44        configure.compiler   macports-gcc-4.4
45    }
46
47    variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description {build with gcc 4.5} {
48        configure.compiler   macports-gcc-4.5
49    }
50
51    variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description {build with gcc 4.6} {
52        configure.compiler   macports-gcc-4.6
53    }
54
55    variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description {build with gcc 4.7} {
56        configure.compiler   macports-gcc-4.7
57    }
58
59    if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
60        default_variants +gcc47
61    }
62
63}
64
65livecheck.type      none
Note: See TracBrowser for help on using the repository browser.