Changeset 98768


Ignore:
Timestamp:
Oct 15, 2012, 12:27:40 PM (12 years ago)
Author:
ryandesign@…
Message:

py25-pynifti, py26-pynifti:

  • update to 0.20100607.1
  • rewrite master_sites to avoid redirects
  • set distname instead of distfiles
  • fix "ld: unknown option: --no-undefined" error (#35443)
  • remove unneeded check for swig python capability
  • fix livecheck
Location:
trunk/dports/python
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py25-pynifti/Portfile

    r97763 r98768  
    66
    77name                    py25-pynifti
    8 version                 0.20090303.1
    9 revision                1
     8version                 0.20100607.1
    109categories              python
    1110platforms               darwin
     
    1514
    1615homepage                http://sourceforge.net/projects/niftilib
    17 master_sites            sourceforge:niftilib
     16master_sites            sourceforge:project/niftilib/pynifti/${version}
    1817
    19 checksums           md5     6625c0db0ba4776c14327affa5c0098a \
    20                     sha1    96072c1b79c882a7a14461c9b48366a34f211e05 \
    21                     rmd160  b6e10b401f8e6585126426d207c9d6e9e393f382
     18checksums               rmd160  f9337ca40681b76432ac362d088034d79ba28556 \
     19                        sha256  d1607d330e94576d6b0f18690b5b94c75ed1a93722c573e9ea781580f555611a
    2220
    2321depends_lib             port:py25-numpy \
     
    2725build.env               CCFLAGS="-I${prefix}/include -L${prefix}/lib -I${prefix}/include/nifti"
    2826
    29 distfiles               pynifti_${version}${extract.suffix}
     27distname                pynifti_${version}
    3028worksrcdir              pynifti-${version}
    3129patchfiles              patch-setup-py.diff
    3230post-patch {
    3331  reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
    34 }
    35 
    36 pre-fetch {
    37   if {![llength [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} {
    38     ui_error "The python variant of swig is not installed. Please run"
    39     ui_error "the following commands:"
    40     ui_error "$ sudo port uninstall swig"
    41     ui_error "$ sudo port install swig +python"
    42     error "python variant of swig required"
    43   }
    4432}
    4533
     
    6351}
    6452
    65 livecheck.url http://sourceforge.net/export/rss2_projfiles.php?project=niftilib
    6653livecheck.regex {pynifti_([0-9.]+).tar.gz}
  • trunk/dports/python/py25-pynifti/files/patch-setup-py.diff

    r53084 r98768  
    1 --- setup.py.orig       2009-06-20 11:37:59.000000000 -0700
    2 +++ setup.py    2009-06-20 11:38:38.000000000 -0700
     1--- setup.py.orig       2010-07-06 10:29:56.000000000 -0500
     2+++ setup.py    2012-10-15 07:13:51.000000000 -0500
     3@@ -21,7 +21,7 @@
     4 # Common configuration #
     5 ########################
     6 
     7-extra_link_args = ['--Wl,--no-undefined']
     8+extra_link_args = []
     9 include_dirs = []
     10 library_dirs = []
     11 defines = []
    312@@ -45,11 +45,8 @@
    413 else:
     
    1524         # no clue on windows
    1625         pass
     26@@ -64,9 +61,6 @@
     27     os.environ['SWIG_FEATURES'] = '-DWIN32 ' + os.environ['SWIG_FEATURES']
     28     defines.append(('WIN32', None))
     29 
     30-# apple stuff
     31-if sys.platform == "darwin":
     32-    extra_link_args.append("-bundle")
     33 
     34 
     35 ##############
  • trunk/dports/python/py26-pynifti/Portfile

    r97763 r98768  
    66
    77name                    py26-pynifti
    8 version                 0.20090303.1
    9 revision                1
     8version                 0.20100607.1
    109categories              python
    1110platforms               darwin
     
    1514
    1615homepage                http://sourceforge.net/projects/niftilib
    17 master_sites            sourceforge:niftilib
     16master_sites            sourceforge:project/niftilib/pynifti/${version}
    1817
    19 checksums           md5     6625c0db0ba4776c14327affa5c0098a \
    20                     sha1    96072c1b79c882a7a14461c9b48366a34f211e05 \
    21                     rmd160  b6e10b401f8e6585126426d207c9d6e9e393f382
     18checksums               rmd160  f9337ca40681b76432ac362d088034d79ba28556 \
     19                        sha256  d1607d330e94576d6b0f18690b5b94c75ed1a93722c573e9ea781580f555611a
    2220
    2321depends_lib             port:py26-numpy \
     
    2725build.env               CCFLAGS="-I${prefix}/include -L${prefix}/lib -I${prefix}/include/nifti"
    2826
    29 distfiles               pynifti_${version}${extract.suffix}
     27distname                pynifti_${version}
    3028worksrcdir              pynifti-${version}
    3129patchfiles              patch-setup-py.diff
    3230post-patch {
    3331  reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
    34 }
    35 
    36 pre-fetch {
    37   if {![llength [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} {
    38     ui_error "The python variant of swig is not installed. Please run"
    39     ui_error "the following commands:"
    40     ui_error "$ sudo port uninstall swig"
    41     ui_error "$ sudo port install swig +python"
    42     error "python variant of swig required"
    43   }
    4432}
    4533
     
    6351}
    6452
    65 livecheck.url http://sourceforge.net/export/rss2_projfiles.php?project=niftilib
    6653livecheck.regex {pynifti_([0-9.]+).tar.gz}
  • trunk/dports/python/py26-pynifti/files/patch-setup-py.diff

    r94605 r98768  
    1 --- setup.py.orig       2009-03-04 03:13:23.000000000 +1100
    2 +++ setup.py    2012-06-25 12:54:38.000000000 +1000
     1--- setup.py.orig       2010-07-06 10:29:56.000000000 -0500
     2+++ setup.py    2012-10-15 07:13:51.000000000 -0500
    33@@ -21,7 +21,7 @@
    44 # Common configuration #
     
    66 
    77-extra_link_args = ['--Wl,--no-undefined']
    8 +extra_link_args = ['-Wl,--no-undefined']
     8+extra_link_args = []
    99 include_dirs = []
    1010 library_dirs = []
     
    2424         # no clue on windows
    2525         pass
     26@@ -64,9 +61,6 @@
     27     os.environ['SWIG_FEATURES'] = '-DWIN32 ' + os.environ['SWIG_FEATURES']
     28     defines.append(('WIN32', None))
     29 
     30-# apple stuff
     31-if sys.platform == "darwin":
     32-    extra_link_args.append("-bundle")
     33 
     34 
     35 ##############
Note: See TracChangeset for help on using the changeset viewer.