[104370] trunk/dports/python
sean at macports.org
sean at macports.org
Sat Mar 23 18:56:28 PDT 2013
Revision: 104370
https://trac.macports.org/changeset/104370
Author: sean at macports.org
Date: 2013-03-23 18:56:27 -0700 (Sat, 23 Mar 2013)
Log Message:
-----------
py-nibabel: new port copied from py-pynifti
Added Paths:
-----------
trunk/dports/python/py-nibabel/
trunk/dports/python/py-nibabel/Portfile
Copied: trunk/dports/python/py-nibabel/Portfile (from rev 104369, trunk/dports/python/py-pynifti/Portfile)
===================================================================
--- trunk/dports/python/py-nibabel/Portfile (rev 0)
+++ trunk/dports/python/py-nibabel/Portfile 2013-03-24 01:56:27 UTC (rev 104370)
@@ -0,0 +1,70 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+
+name py-pynifti
+version 0.20100607.1
+categories python
+platforms darwin
+license public-domain
+maintainers jameskyle
+description PyNIfTI aims to provide easy access to NIfTI images from within Python.
+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.
+
+homepage http://sourceforge.net/projects/niftilib
+master_sites sourceforge:project/niftilib/pynifti/${version}
+
+checksums rmd160 f9337ca40681b76432ac362d088034d79ba28556 \
+ sha256 d1607d330e94576d6b0f18690b5b94c75ed1a93722c573e9ea781580f555611a
+
+python.versions 25 26 27
+python.default_version 27
+
+if {$subport != $name} {
+ depends_lib port:py${python.version}-numpy \
+ port:nifticlib \
+ port:swig-python
+
+ build.env CCFLAGS="-I${prefix}/include -L${prefix}/lib -I${prefix}/include/nifti"
+
+ distname pynifti_${version}
+ worksrcdir pynifti-${version}
+ patchfiles patch-setup-py.diff
+ post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
+ }
+
+ variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description {build with gcc 4.3} {
+ depends_build-append port:gcc43
+ configure.compiler macports-gcc-4.3
+ }
+
+ variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description {build with gcc 4.4} {
+ depends_build-append port:gcc44
+ configure.compiler macports-gcc-4.4
+ }
+
+ variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description {build with gcc 4.5} {
+ depends_build-append port:gcc45
+ configure.compiler macports-gcc-4.5
+ }
+
+ variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description {build with gcc 4.6} {
+ depends_build-append port:gcc46
+ configure.compiler macports-gcc-4.6
+ }
+
+ variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description {build with gcc 4.7} {
+ depends_build-append port:gcc47
+ configure.compiler macports-gcc-4.7
+ }
+
+ if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
+ default_variants +gcc47
+ }
+
+}
+
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130323/bcb37fda/attachment-0001.html>
More information about the macports-changes
mailing list