Ticket #14360: py-scientific.diff
File py-scientific.diff, 7.5 KB (added by ebgssth@…, 17 years ago) |
---|
-
py-scientific/files/customize.py-macosx
1 extra_compile_args = [] 2 extra_link_args = [] 3 include_dirs = [] 4 5 use_system_lapack = 1 6 lapack_library_dirs = [] 7 lapack_libraries = [] 8 lapack_extra_link_args = ['-framework', 'vecLib'] 9 10 use_dotblas = 1 11 use_system_blas = 1 12 dotblas_include_dirs = [] 13 dotblas_cblas_header = '<vecLib/vBLAS.h>' 14 dotblas_library_dirs = lapack_library_dirs 15 dotblas_libraries = lapack_libraries 16 dotblas_extra_link_args = ['-framework', 'vecLib'] 17 -
py-scientific/files/customize.py-puredarwin
1 extra_compile_args = [] 2 extra_link_args = [] 3 include_dirs = [] 4 5 use_system_lapack = 1 6 lapack_library_dirs = [] 7 lapack_libraries = [] 8 lapack_extra_link_args = ['-framework', 'vecLib'] 9 10 use_dotblas = 0 11 use_system_blas = 0 12 dotblas_include_dirs = [] 13 dotblas_cblas_header = '<vecLib/vBLAS.h>' 14 dotblas_library_dirs = lapack_library_dirs 15 dotblas_libraries = lapack_libraries 16 dotblas_extra_link_args = ['-framework', 'vecLib'] 17 -
py-scientific/Portfile
4 4 PortSystem 1.0 5 5 PortGroup python24 1.0 6 6 name py-scientific 7 version 2.6 7 version 2.6.1 8 8 categories python science 9 platforms darwin 9 10 maintainers openmaintainer jochen 10 11 description Scientific Python 11 12 long_description ScientificPython is a collection of Python modules that \ 12 13 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 14 homepage http://dirac.cnrs-orleans.fr/plone/software/scientificpython 15 master_sites http://sourcesup.cru.fr/frs/download.php/1674/ 16 16 distname ScientificPython-${version} 17 checksums md5 6ebd96fc8a4e015adab2c57826d52e9f \18 sha1 db5b0d369e8254130312553a13a70888537e637e19 17 18 checksums md5 1b93026dd02529607131e5b0b83aeec4 \ 19 sha1 81adf95e2c6060f64d3712dba8f4a5b43402e179 \ 20 rmd160 83ddfa7123f33990b2baf293bdac4d37da8abeb6 21 20 22 depends_lib port:netcdf \ 21 23 port:py-numeric 22 24 23 25 build.env CPPFLAGS="-I${prefix}/include/python2.4 \ 24 26 -I${worksrcpath}/Include" \ 25 NETCDF_PREFIX=${prefix} 27 NETCDF_PREFIX=${prefix} 26 28 27 variant mpi { 28 depends_lib-append port:lammpi 29 post-destroot { 30 move ${destroot}${prefix}/bin/bsp_virtual \ 31 ${destroot}${prefix}/bin/bsp_virtual2.4 32 } 29 33 30 post-build { 31 reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python2.4 -I${worksrcpath}/Include|g" \ 34 platform macosx { 35 post-extract { 36 copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py 37 } 38 } 39 40 platform puredarwin { 41 post-extract { 42 copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py 43 } 44 } 45 46 variant 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" \ 32 50 ${worksrcpath}/Src/MPI/compile.py 33 51 reinplace "s|-L%s -lpython%s|-L/Library/Frameworks/Python.framework/Versions/2.4/lib -L%s -lpython.%s|g" \ 34 52 ${worksrcpath}/Src/MPI/compile.py 35 53 reinplace "s|cfgDict\\\[\'LINK|#cfgDict\\\[\'LINK|g" \ 36 54 ${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 } 39 57 40 post-destroot{41 xinstall -m 0755 -W ${worksrcpath}/Src/MPImpipython ${destroot}${prefix}/bin42 58 post-destroot { 59 xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${prefix}/bin 60 } 43 61 } 62 63 livecheck.check regex 64 livecheck.url http://sourcesup.cru.fr/projects/scientific-py/ 65 livecheck.regex {<td>(\d+(?:\.\d+)*)} -
py25-scientific/Portfile
1 # -*- coding: utf-8; truncate-lines: t -*- 1 2 # $Id$ 2 3 3 PortSystem 1.0 4 PortGroup python25 1.0 4 PortSystem 1.0 5 PortGroup python25 1.0 6 name py25-scientific 7 version 2.6.1 8 categories python science 9 platforms darwin 10 maintainers nomaintainer 11 description Scientific Python 12 long_description ScientificPython is a collection of Python modules that \ 13 are useful for scientific computing. 14 homepage http://dirac.cnrs-orleans.fr/plone/software/scientificpython 15 master_sites http://sourcesup.cru.fr/frs/download.php/1674/ 16 distname ScientificPython-${version} 5 17 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 18 checksums md5 1b93026dd02529607131e5b0b83aeec4 \ 19 sha1 81adf95e2c6060f64d3712dba8f4a5b43402e179 \ 20 rmd160 83ddfa7123f33990b2baf293bdac4d37da8abeb6 13 21 14 long_description \ 15 ScientificPython is a collection of Python modules that \ 16 are useful for scientific computing. 22 depends_lib port:netcdf \ 23 port:py25-numeric 17 24 18 homepage http://dirac.cnrs-orleans.fr/ScientificPython/ 19 master_sites http://sourcesup.cru.fr/frs/download.php/1034/ 20 distname ScientificPython-${branch}25 build.env CPPFLAGS="-I${prefix}/include/python2.4 \ 26 -I${worksrcpath}/Include" \ 27 NETCDF_PREFIX=${prefix} 21 28 22 checksums md5 6ebd96fc8a4e015adab2c57826d52e9f \ 23 sha1 db5b0d369e8254130312553a13a70888537e637e \ 24 rmd160 5c9e8cba2373d722854cfe57e270803d7ed2bf2a 29 post-destroot { 30 move ${destroot}${prefix}/bin/bsp_virtual \ 31 ${destroot}${prefix}/bin/bsp_virtual2.5 32 } 25 33 26 depends_lib port:netcdf \27 port:py25-numeric28 29 build.env CPPFLAGS="-I${prefix}/include/python2.5 \30 -I${worksrcpath}/Include" \31 NETCDF_PREFIX=${prefix}32 33 34 platform macosx { 34 35 post-extract { 35 36 copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py … … 44 45 45 46 variant mpi description {Enable lammpi support} { 46 47 depends_lib-append port:lammpi 47 48 48 post-build { 49 49 reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python2.5 -I${worksrcpath}/Include|g" \ 50 50 ${worksrcpath}/Src/MPI/compile.py … … 52 52 ${worksrcpath}/Src/MPI/compile.py 53 53 reinplace "s|cfgDict\\\[\'LINK|#cfgDict\\\[\'LINK|g" \ 54 54 ${worksrcpath}/Src/MPI/compile.py 55 56 55 system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python2.5 compile.py" 57 56 } 58 57