[104368] trunk/dports/python/py-pynifti/Portfile
sean at macports.org
sean at macports.org
Sat Mar 23 18:56:12 PDT 2013
Revision: 104368
https://trac.macports.org/changeset/104368
Author: sean at macports.org
Date: 2013-03-23 18:56:12 -0700 (Sat, 23 Mar 2013)
Log Message:
-----------
py-pynifti: update to use python group; maintainer timeout
Modified Paths:
--------------
trunk/dports/python/py-pynifti/Portfile
Modified: trunk/dports/python/py-pynifti/Portfile
===================================================================
--- trunk/dports/python/py-pynifti/Portfile 2013-03-24 01:56:04 UTC (rev 104367)
+++ trunk/dports/python/py-pynifti/Portfile 2013-03-24 01:56:12 UTC (rev 104368)
@@ -2,12 +2,13 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
-name py26-pynifti
+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.
@@ -18,46 +19,53 @@
checksums rmd160 f9337ca40681b76432ac362d088034d79ba28556 \
sha256 d1607d330e94576d6b0f18690b5b94c75ed1a93722c573e9ea781580f555611a
-depends_lib port:py26-numpy \
+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"
+ 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
-}
+ 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 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 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 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 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
-}
+ 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
+ if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
+ default_variants +gcc47
+ }
+
+ livecheck.type none
+} else {
+ livecheck.regex {pynifti_([0-9.]+).tar.gz}
}
-
-livecheck.regex {pynifti_([0-9.]+).tar.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130323/526f6a40/attachment.html>
More information about the macports-changes
mailing list