[44890] trunk/dports/python
akitada at macports.org
akitada at macports.org
Sun Jan 4 06:34:39 PST 2009
Revision: 44890
http://trac.macports.org/changeset/44890
Author: akitada at macports.org
Date: 2009-01-04 06:34:39 -0800 (Sun, 04 Jan 2009)
Log Message:
-----------
Added ScientificPython port for Python 2.6
Added Paths:
-----------
trunk/dports/python/py26-scientific/
trunk/dports/python/py26-scientific/Portfile
trunk/dports/python/py26-scientific/files/
trunk/dports/python/py26-scientific/files/customize.py-macosx
trunk/dports/python/py26-scientific/files/customize.py-puredarwin
Added: trunk/dports/python/py26-scientific/Portfile
===================================================================
--- trunk/dports/python/py26-scientific/Portfile (rev 0)
+++ trunk/dports/python/py26-scientific/Portfile 2009-01-04 14:34:39 UTC (rev 44890)
@@ -0,0 +1,70 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python26 1.0
+
+name py26-scientific
+version 2.6.1
+categories python science
+platforms darwin
+maintainers nomaintainer
+description Scientific Python
+
+long_description \
+ ScientificPython is a collection of Python modules that \
+ are useful for scientific computing.
+
+homepage http://dirac.cnrs-orleans.fr/ScientificPython/
+master_sites http://sourcesup.cru.fr/frs/download.php/1034/
+distname ScientificPython-${python.branch}
+
+checksums md5 6ebd96fc8a4e015adab2c57826d52e9f \
+ sha1 db5b0d369e8254130312553a13a70888537e637e \
+ rmd160 5c9e8cba2373d722854cfe57e270803d7ed2bf2a
+
+depends_lib port:netcdf \
+ port:py26-numeric
+
+build.env CPPFLAGS="-I${prefix}/include/python${python.branch} \
+ -I${worksrcpath}/Include" \
+ NETCDF_PREFIX=${prefix}
+
+post-destroot {
+ foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
+ ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
+ }
+}
+
+platform macosx {
+ post-extract {
+ copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
+ }
+}
+
+platform puredarwin {
+ post-extract {
+ copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py
+ }
+}
+
+variant mpi description {Enable lammpi support} {
+ depends_lib-append port:lammpi
+ post-build {
+ reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python${python.branch} -I${worksrcpath}/Include|g" \
+ ${worksrcpath}/Src/MPI/compile.py
+ reinplace "s|-L%s -lpython%s|-L/Library/Frameworks/Python.framework/Versions/${python.branch}/lib -L%s -lpython.%s|g" \
+ ${worksrcpath}/Src/MPI/compile.py
+ reinplace "s|cfgDict\\\[\'LINK|#cfgDict\\\[\'LINK|g" \
+ ${worksrcpath}/Src/MPI/compile.py
+ system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python${python.branch} compile.py"
+ }
+
+ post-destroot {
+ xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${prefix}/bin
+ }
+}
+
+livecheck.check regex
+livecheck.url http://sourcesup.cru.fr/projects/scientific-py/
+livecheck.regex {<td>(\d+(?:\.\d+)*)}
Property changes on: trunk/dports/python/py26-scientific/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py26-scientific/files/customize.py-macosx
===================================================================
--- trunk/dports/python/py26-scientific/files/customize.py-macosx (rev 0)
+++ trunk/dports/python/py26-scientific/files/customize.py-macosx 2009-01-04 14:34:39 UTC (rev 44890)
@@ -0,0 +1,17 @@
+extra_compile_args = []
+extra_link_args = []
+include_dirs = []
+
+use_system_lapack = 1
+lapack_library_dirs = []
+lapack_libraries = []
+lapack_extra_link_args = ['-framework', 'vecLib']
+
+use_dotblas = 1
+use_system_blas = 1
+dotblas_include_dirs = []
+dotblas_cblas_header = '<vecLib/vBLAS.h>'
+dotblas_library_dirs = lapack_library_dirs
+dotblas_libraries = lapack_libraries
+dotblas_extra_link_args = ['-framework', 'vecLib']
+
Added: trunk/dports/python/py26-scientific/files/customize.py-puredarwin
===================================================================
--- trunk/dports/python/py26-scientific/files/customize.py-puredarwin (rev 0)
+++ trunk/dports/python/py26-scientific/files/customize.py-puredarwin 2009-01-04 14:34:39 UTC (rev 44890)
@@ -0,0 +1,17 @@
+extra_compile_args = []
+extra_link_args = []
+include_dirs = []
+
+use_system_lapack = 1
+lapack_library_dirs = []
+lapack_libraries = []
+lapack_extra_link_args = ['-framework', 'vecLib']
+
+use_dotblas = 0
+use_system_blas = 0
+dotblas_include_dirs = []
+dotblas_cblas_header = '<vecLib/vBLAS.h>'
+dotblas_library_dirs = lapack_library_dirs
+dotblas_libraries = lapack_libraries
+dotblas_extra_link_args = ['-framework', 'vecLib']
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090104/4e5f09eb/attachment.html>
More information about the macports-changes
mailing list