# 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
|
|
1 | 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 | 2 | # $Id$ |
3 | 3 | |
4 | 4 | PortSystem 1.0 |
5 | | PortGroup python26 1.0 |
| 5 | PortGroup python 1.0 |
6 | 6 | |
7 | | name py26-pynifti |
| 7 | name py-pynifti |
8 | 8 | version 0.20100607.1 |
9 | 9 | categories python |
10 | 10 | platforms darwin |
11 | 11 | maintainers jameskyle |
12 | 12 | description PyNIfTI aims to provide easy access to NIfTI images from within Python. |
… |
… |
|
16 | 16 | master_sites sourceforge:project/niftilib/pynifti/${version} |
17 | 17 | |
18 | 18 | checksums rmd160 f9337ca40681b76432ac362d088034d79ba28556 \ |
19 | 19 | sha256 d1607d330e94576d6b0f18690b5b94c75ed1a93722c573e9ea781580f555611a |
20 | 20 | |
21 | | depends_lib port:py26-numpy \ |
| 21 | python.versions 25 26 27 |
| 22 | python.default_version 27 |
| 23 | |
| 24 | if {$subport != $name} { |
| 25 | depends_lib port:py${python.version}-numpy \ |
22 | 26 | port:nifticlib \ |
23 | 27 | port:swig-python |
24 | 28 | |
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" |
26 | 30 | |
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} |
32 | 60 | } |
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} |