Ticket #37226: 2.patch

File 2.patch, 3.4 KB (added by seanfarley (Sean Farley), 11 years ago)

py-pynifti: update to use python group

  • dports/python/py-pynifti/Portfile

    # HG changeset patch
    # User Sean Farley <sean.michael.farley@gmail.com>
    # Date 1354646118 21600
    # Node ID ce3f0abc9042338ff93d3faf02490c94cbef310a
    # Parent  fd44d4f4c83b2acf2652d7e9ea85435c09690fb4
    py-pynifti: update to use python group
    
    diff --git a/dports/python/py-pynifti/Portfile b/dports/python/py-pynifti/Portfile
    a b  
    11# -*- 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
    22# $Id$
    33
    44PortSystem              1.0
    5 PortGroup               python26 1.0
     5PortGroup               python 1.0
    66
    7 name                    py26-pynifti
     7name                    py-pynifti
    88version                 0.20100607.1
    99categories              python
    1010platforms               darwin
    1111maintainers             jameskyle
    1212description             PyNIfTI aims to provide easy access to NIfTI images from within Python.
     
    1616master_sites            sourceforge:project/niftilib/pynifti/${version}
    1717
    1818checksums               rmd160  f9337ca40681b76432ac362d088034d79ba28556 \
    1919                        sha256  d1607d330e94576d6b0f18690b5b94c75ed1a93722c573e9ea781580f555611a
    2020
    21 depends_lib             port:py26-numpy \
     21python.versions         25 26 27
     22python.default_version  27
     23
     24if {$subport != $name} {
     25    depends_lib         port:py${python.version}-numpy \
    2226                        port:nifticlib \
    2327                        port:swig-python
    2428
    25 build.env               CCFLAGS="-I${prefix}/include -L${prefix}/lib -I${prefix}/include/nifti"
     29    build.env           CCFLAGS="-I${prefix}/include -L${prefix}/lib -I${prefix}/include/nifti"
    2630
    27 distname                pynifti_${version}
    28 worksrcdir              pynifti-${version}
    29 patchfiles              patch-setup-py.diff
    30 post-patch {
    31   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
     31    distname            pynifti_${version}
     32    worksrcdir          pynifti-${version}
     33    patchfiles          patch-setup-py.diff
     34    post-patch {
     35        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
     36    }
     37
     38    variant gcc43 conflicts gcc44 gcc45 description {build with gcc 4.3} {
     39        depends_build-append port:gcc43
     40        configure.compiler   macports-gcc-4.3
     41    }
     42
     43    variant gcc44 conflicts gcc43 gcc45 description {build with gcc 4.4} {
     44        depends_build-append port:gcc44
     45        configure.compiler   macports-gcc-4.4
     46    }
     47
     48    variant gcc45 conflicts gcc43 gcc44 description {build with gcc 4.5} {
     49        depends_build-append port:gcc45
     50        configure.compiler   macports-gcc-4.5
     51    }
     52
     53    if {![variant_isset gcc43] && ![variant_isset gcc44]} {
     54        default_variants +gcc45
     55    }
     56
     57    livecheck.type      none
     58} else {
     59    livecheck.regex     {pynifti_([0-9.]+).tar.gz}
    3260}
    33 
    34 variant gcc43 conflicts gcc44 gcc45 description {build with gcc 4.3} {
    35     depends_build-append port:gcc43
    36     configure.compiler   macports-gcc-4.3
    37 }
    38 
    39 variant gcc44 conflicts gcc43 gcc45 description {build with gcc 4.4} {
    40     depends_build-append port:gcc44
    41     configure.compiler   macports-gcc-4.4
    42 }
    43 
    44 variant gcc45 conflicts gcc43 gcc44 description {build with gcc 4.5} {
    45     depends_build-append port:gcc45
    46     configure.compiler   macports-gcc-4.5
    47 }
    48 
    49 if {![variant_isset gcc43] && ![variant_isset gcc44]} {
    50     default_variants +gcc45
    51 }
    52 
    53 livecheck.regex {pynifti_([0-9.]+).tar.gz}