[104367] trunk/dports/python

sean at macports.org sean at macports.org
Sat Mar 23 18:56:04 PDT 2013


Revision: 104367
          https://trac.macports.org/changeset/104367
Author:   sean at macports.org
Date:     2013-03-23 18:56:04 -0700 (Sat, 23 Mar 2013)
Log Message:
-----------
py-pynifti: consolidate into one portfile; maintainer timeout

Added Paths:
-----------
    trunk/dports/python/py-pynifti/
    trunk/dports/python/py-pynifti/Portfile
    trunk/dports/python/py-pynifti/files/
    trunk/dports/python/py-pynifti/files/patch-setup-py.diff

Removed Paths:
-------------
    trunk/dports/python/py25-pynifti/
    trunk/dports/python/py26-pynifti/

Copied: trunk/dports/python/py-pynifti/Portfile (from rev 104366, trunk/dports/python/py26-pynifti/Portfile)
===================================================================
--- trunk/dports/python/py-pynifti/Portfile	                        (rev 0)
+++ trunk/dports/python/py-pynifti/Portfile	2013-03-24 01:56:04 UTC (rev 104367)
@@ -0,0 +1,63 @@
+# -*- 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               python26 1.0
+
+name                    py26-pynifti
+version                 0.20100607.1
+categories              python
+platforms               darwin
+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
+
+depends_lib             port:py26-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.regex {pynifti_([0-9.]+).tar.gz}

Copied: trunk/dports/python/py-pynifti/files/patch-setup-py.diff (from rev 104366, trunk/dports/python/py26-pynifti/files/patch-setup-py.diff)
===================================================================
--- trunk/dports/python/py-pynifti/files/patch-setup-py.diff	                        (rev 0)
+++ trunk/dports/python/py-pynifti/files/patch-setup-py.diff	2013-03-24 01:56:04 UTC (rev 104367)
@@ -0,0 +1,35 @@
+--- setup.py.orig	2010-07-06 10:29:56.000000000 -0500
++++ setup.py	2012-10-15 07:13:51.000000000 -0500
+@@ -21,7 +21,7 @@
+ # Common configuration #
+ ########################
+ 
+-extra_link_args = ['--Wl,--no-undefined']
++extra_link_args = []
+ include_dirs = []
+ library_dirs = []
+ defines = []
+@@ -45,11 +45,8 @@
+ else:
+     # try to look for nifticlibs in some place
+     if not sys.platform.startswith('win'):
+-        include_dirs += ['/usr/include/nifti',
+-                         '/usr/include/nifticlibs',
+-                         '/usr/local/include/nifti',
+-                         '/usr/local/include/nifticlibs',
+-                         '/usr/local/include']
++        include_dirs += ['@@PREFIX@@/include/nifti']
++        library_dirs.append('@@PREFIX@@/lib')
+     else:
+         # no clue on windows
+         pass
+@@ -64,9 +61,6 @@
+     os.environ['SWIG_FEATURES'] = '-DWIN32 ' + os.environ['SWIG_FEATURES']
+     defines.append(('WIN32', None))
+ 
+-# apple stuff
+-if sys.platform == "darwin":
+-    extra_link_args.append("-bundle")
+ 
+ 
+ ##############
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130323/ef0eb334/attachment.html>


More information about the macports-changes mailing list