Ticket #17933: Portfile

File Portfile, 1.7 KB (added by krunk7@…, 16 years ago)

Portfile

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 44414 2008-12-28 05:42:53Z mcalhoun@macports.org $
3
4PortSystem              1.0
5PortGroup               python25 1.0
6
7name                    py25-pynifti
8version                 0.20081017.1
9categories              python
10platforms               darwin
11maintainers             jameskyle@ucla.edu
12description             PyNIfTI aims to provide easy access to NIfTI images from within Python.
13long_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
15homepage                http://niftilib.sourceforge.net/pynifti
16master_sites            http://superb-east.dl.sourceforge.net/sourceforge/niftilib/
17
18checksums               md5 ba16ec77ed1a11c8ca0ef77609c0050a \
19                        sha1 a03bfe228d937bbcf034d490ac9777caceae8d48 \
20                        rmd160 f63d3bde0db3ccdfa24ac172b70bb47e141c5503
21
22depends_lib-append      port:py25-numpy \
23                        port:nifticlib \
24                        port:swig
25
26build.env               CCFLAGS="-I${prefix}/include -L${prefix}/lib -I${prefix}/include/nifti"
27
28distfiles               pynifti_${version}${extract.suffix}
29worksrcdir              pynifti-${version}
30patchfiles              patch-setup-py.diff
31
32pre-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}