Ticket #18557: portfile.patch

File portfile.patch, 2.9 KB (added by jameskyle@…, 15 years ago)

Patch for current Portfile

  • Portfile

    old new  
    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
    2 # $Id: Portfile 46392 2009-02-04 03:47:35Z blb@macports.org $
     2# $Id: Portfile 44414 2008-12-28 05:42:53Z mcalhoun@macports.org $
    33
    44PortSystem              1.0
    55PortGroup               python25 1.0
    66
    77name                    py25-pymvpa
    8 version                 current
    9 #version                 0.4
     8version                 0.4.1
    109categories              python
    1110
    1211platforms               darwin
    13 maintainers             ucla.edu:jameskyle
     12maintainers             jameskyle@ucla.edu
    1413description             PyMVPA is a Python module intended to ease pattern classification analyses of large datasets.
    1514
    1615long_description        ${description}. In the neuroimaging contexts such analysis techniques are also known as decoding or MVPA analysis. PyMVPA provides high-level abstraction of typical processing steps and a number of implementations of some popular algorithms.
     
    1817homepage                http://www.pymvpa.org
    1918fetch.type              git
    2019git.url                 git://git.debian.org/git/pkg-exppsy/pymvpa.git
    21 #git.branch              origin/maint/0.4
     20git.branch              upstream/0.4.1
    2221
    2322depends_lib             port:py25-numpy \
    24                         port:git-core
     23                        port:git-core \
     24                        port:py25-setuptools
    2525configure.args                                 
    2626
    2727build.env               CFLAGS='-I${prefix}/include -L${prefix}/lib'
     
    2929patch.pre_args          -p1
    3030patchfiles              patch-mvpa.diff
    3131
    32 default_variants        +pywavelets +libsvm +hcluster +pynifti
     32default_variants        +pywavelet +libsvm +hcluster +pynifti +shogun +scipy
    3333
    3434variant scipy description {Add support for scipy libraries} {
    3535    depends_lib-append port:py25-scipy
     
    5858variant pywavelet description {include support for pywavelet module} {
    5959    depends_lib-append port:py25-pywavelets
    6060}
     61
     62variant shogun description {compile support for the py25-shogun classifiers} {
     63    depends_lib-append port:shogun
     64}
    6165build {
    6266    system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build_ext ${configure.args}"
    6367    system "cd ${worksrcpath} && ${build.env} python2.5 setup.py build ${configure.args}"
    6468}
     69
     70post-destroot {
     71  xinstall -m 755 -d "${destroot}${prefix}/share/doc/"
     72  file delete ${worksrcpath}/doc/todo.txt
     73  file delete ${worksrcpath}/doc/legal.txt
     74  file delete ${worksrcpath}/doc/changelog.txt
     75
     76  file copy ${worksrcpath}/TODO ${worksrcpath}/doc/
     77  file copy ${worksrcpath}/COPYING ${worksrcpath}/doc/
     78  file copy ${worksrcpath}/Changelog ${worksrcpath}/doc/
     79  file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/mvpa
     80}