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 44414 2008-12-28 05:42:53Z mcalhoun@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python25 1.0 |
---|
6 | |
---|
7 | name py25-pynifti |
---|
8 | version 0.20081017.1 |
---|
9 | categories python |
---|
10 | platforms darwin |
---|
11 | maintainers jameskyle@ucla.edu |
---|
12 | description PyNIfTI aims to provide easy access to NIfTI images from within Python. |
---|
13 | long_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. |
---|
14 | |
---|
15 | homepage http://niftilib.sourceforge.net/pynifti |
---|
16 | master_sites http://superb-east.dl.sourceforge.net/sourceforge/niftilib/ |
---|
17 | |
---|
18 | checksums md5 ba16ec77ed1a11c8ca0ef77609c0050a \ |
---|
19 | sha1 a03bfe228d937bbcf034d490ac9777caceae8d48 \ |
---|
20 | rmd160 f63d3bde0db3ccdfa24ac172b70bb47e141c5503 |
---|
21 | |
---|
22 | depends_lib-append port:py25-numpy \ |
---|
23 | port:nifticlib \ |
---|
24 | port:swig |
---|
25 | |
---|
26 | build.env CCFLAGS="-I${prefix}/include -L${prefix}/lib -I${prefix}/include/nifti" |
---|
27 | |
---|
28 | distfiles pynifti_${version}${extract.suffix} |
---|
29 | worksrcdir pynifti-${version} |
---|
30 | patchfiles patch-setup-py.diff |
---|
31 | |
---|
32 | pre-fetch { |
---|
33 | if {![llength [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} { |
---|
34 | ui_error "The python variant of swig is not installed. Please run" |
---|
35 | ui_error "the following commands:" |
---|
36 | ui_error "$ sudo port uninstall swig" |
---|
37 | ui_error "$ sudo port install swig +python" |
---|
38 | error "python variant of swig required" |
---|
39 | } |
---|
40 | } |
---|