Ticket #14360: py-scientific.diff

File py-scientific.diff, 7.5 KB (added by ebgssth@…, 17 years ago)

patch for py-scientific and py25-scientific

  • py-scientific/files/customize.py-macosx

     
     1extra_compile_args = []
     2extra_link_args = []
     3include_dirs = []
     4
     5use_system_lapack = 1
     6lapack_library_dirs = []
     7lapack_libraries = []
     8lapack_extra_link_args = ['-framework', 'vecLib']
     9
     10use_dotblas = 1
     11use_system_blas = 1
     12dotblas_include_dirs = []
     13dotblas_cblas_header = '<vecLib/vBLAS.h>'
     14dotblas_library_dirs = lapack_library_dirs
     15dotblas_libraries = lapack_libraries
     16dotblas_extra_link_args = ['-framework', 'vecLib']
     17
  • py-scientific/files/customize.py-puredarwin

     
     1extra_compile_args = []
     2extra_link_args = []
     3include_dirs = []
     4
     5use_system_lapack = 1
     6lapack_library_dirs = []
     7lapack_libraries = []
     8lapack_extra_link_args = ['-framework', 'vecLib']
     9
     10use_dotblas = 0
     11use_system_blas = 0
     12dotblas_include_dirs = []
     13dotblas_cblas_header = '<vecLib/vBLAS.h>'
     14dotblas_library_dirs = lapack_library_dirs
     15dotblas_libraries = lapack_libraries
     16dotblas_extra_link_args = ['-framework', 'vecLib']
     17
  • py-scientific/Portfile

     
    44PortSystem       1.0
    55PortGroup        python24 1.0
    66name             py-scientific
    7 version          2.6
     7version          2.6.1
    88categories       python science
     9platforms        darwin
    910maintainers      openmaintainer jochen
    1011description      Scientific Python
    1112long_description ScientificPython is a collection of Python modules that \
    1213                 are useful for scientific computing.
    13 homepage         http://dirac.cnrs-orleans.fr/plone/software/scientificpython/
    14 master_sites     http://sourcesup.cru.fr/frs/download.php/1034 \
    15                  http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles
     14homepage         http://dirac.cnrs-orleans.fr/plone/software/scientificpython
     15master_sites     http://sourcesup.cru.fr/frs/download.php/1674/
    1616distname         ScientificPython-${version}
    17 checksums        md5 6ebd96fc8a4e015adab2c57826d52e9f \
    18                  sha1 db5b0d369e8254130312553a13a70888537e637e
    1917
     18checksums        md5 1b93026dd02529607131e5b0b83aeec4 \
     19                 sha1 81adf95e2c6060f64d3712dba8f4a5b43402e179 \
     20                 rmd160 83ddfa7123f33990b2baf293bdac4d37da8abeb6
     21
    2022depends_lib      port:netcdf \
    21                 port:py-numeric
     23                port:py-numeric
    2224
    2325build.env        CPPFLAGS="-I${prefix}/include/python2.4 \
    2426                 -I${worksrcpath}/Include" \
    25                  NETCDF_PREFIX=${prefix}                 
     27                 NETCDF_PREFIX=${prefix}
    2628
    27 variant mpi      {
    28         depends_lib-append port:lammpi
     29post-destroot {
     30    move ${destroot}${prefix}/bin/bsp_virtual \
     31        ${destroot}${prefix}/bin/bsp_virtual2.4
     32}
    2933
    30         post-build       {
    31                  reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python2.4 -I${worksrcpath}/Include|g" \
     34platform macosx {
     35    post-extract {
     36        copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
     37    }
     38}
     39
     40platform puredarwin {
     41    post-extract {
     42        copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py
     43    }
     44}
     45
     46variant mpi description {Enable lammpi support} {
     47    depends_lib-append  port:lammpi
     48    post-build {
     49        reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python2.4 -I${worksrcpath}/Include|g" \
    3250                        ${worksrcpath}/Src/MPI/compile.py
    33                 reinplace "s|-L%s -lpython%s|-L/Library/Frameworks/Python.framework/Versions/2.4/lib -L%s -lpython.%s|g" \
     51        reinplace "s|-L%s -lpython%s|-L/Library/Frameworks/Python.framework/Versions/2.4/lib -L%s -lpython.%s|g" \
    3452                        ${worksrcpath}/Src/MPI/compile.py
    35                 reinplace "s|cfgDict\\\[\'LINK|#cfgDict\\\[\'LINK|g" \
     53        reinplace "s|cfgDict\\\[\'LINK|#cfgDict\\\[\'LINK|g" \
    3654                        ${worksrcpath}/Src/MPI/compile.py
    37                  system "cd ${worksrcpath}/Src/MPI && python2.4 compile.py"
    38         }
     55        system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python2.4 compile.py"
     56    }
    3957
    40         post-destroot    {
    41                  xinstall -m 0755 -W ${worksrcpath}/Src/MPI mpipython ${destroot}${prefix}/bin
    42         }
     58    post-destroot {
     59        xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${prefix}/bin
     60    }
    4361}
     62
     63livecheck.check regex
     64livecheck.url   http://sourcesup.cru.fr/projects/scientific-py/
     65livecheck.regex {<td>(\d+(?:\.\d+)*)}
  • py25-scientific/Portfile

     
     1# -*- coding: utf-8; truncate-lines: t -*-
    12# $Id$
    23
    3 PortSystem      1.0
    4 PortGroup       python25 1.0
     4PortSystem       1.0
     5PortGroup        python25 1.0
     6name             py25-scientific
     7version          2.6.1
     8categories       python science
     9platforms        darwin
     10maintainers      nomaintainer
     11description      Scientific Python
     12long_description ScientificPython is a collection of Python modules that \
     13                 are useful for scientific computing.
     14homepage         http://dirac.cnrs-orleans.fr/plone/software/scientificpython
     15master_sites     http://sourcesup.cru.fr/frs/download.php/1674/
     16distname         ScientificPython-${version}
    517
    6 name            py25-scientific
    7 version         2.6.1
    8 set branch      [join [lrange [split ${version} .] 0 1] .]
    9 categories      python science
    10 platforms       darwin
    11 maintainers     nomaintainer
    12 description     Scientific Python
     18checksums        md5 1b93026dd02529607131e5b0b83aeec4 \
     19                 sha1 81adf95e2c6060f64d3712dba8f4a5b43402e179 \
     20                 rmd160 83ddfa7123f33990b2baf293bdac4d37da8abeb6
    1321
    14 long_description \
    15     ScientificPython is a collection of Python modules that \
    16     are useful for scientific computing.
     22depends_lib      port:netcdf \
     23                 port:py25-numeric
    1724
    18 homepage        http://dirac.cnrs-orleans.fr/ScientificPython/
    19 master_sites    http://sourcesup.cru.fr/frs/download.php/1034/
    20 distname        ScientificPython-${branch}
     25build.env        CPPFLAGS="-I${prefix}/include/python2.4 \
     26                 -I${worksrcpath}/Include" \
     27                 NETCDF_PREFIX=${prefix}
    2128
    22 checksums       md5 6ebd96fc8a4e015adab2c57826d52e9f \
    23                 sha1 db5b0d369e8254130312553a13a70888537e637e \
    24                 rmd160 5c9e8cba2373d722854cfe57e270803d7ed2bf2a
     29post-destroot {
     30    move ${destroot}${prefix}/bin/bsp_virtual \
     31        ${destroot}${prefix}/bin/bsp_virtual2.5
     32}
    2533
    26 depends_lib     port:netcdf \
    27                 port:py25-numeric
    28 
    29 build.env       CPPFLAGS="-I${prefix}/include/python2.5 \
    30                     -I${worksrcpath}/Include" \
    31                 NETCDF_PREFIX=${prefix}
    32 
    3334platform macosx {
    3435    post-extract {
    3536        copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
     
    4445
    4546variant mpi description {Enable lammpi support} {
    4647    depends_lib-append  port:lammpi
    47 
    4848    post-build {
    4949        reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python2.5 -I${worksrcpath}/Include|g" \
    5050                        ${worksrcpath}/Src/MPI/compile.py
     
    5252                        ${worksrcpath}/Src/MPI/compile.py
    5353        reinplace "s|cfgDict\\\[\'LINK|#cfgDict\\\[\'LINK|g" \
    5454                        ${worksrcpath}/Src/MPI/compile.py
    55 
    5655        system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python2.5 compile.py"
    5756    }
    5857