[85603] trunk/dports/python
jmr at macports.org
jmr at macports.org
Fri Oct 14 22:56:48 PDT 2011
Revision: 85603
http://trac.macports.org/changeset/85603
Author: jmr at macports.org
Date: 2011-10-14 22:56:46 -0700 (Fri, 14 Oct 2011)
Log Message:
-----------
New port: py26-scientific-devel (#27397)
Added Paths:
-----------
trunk/dports/python/py26-scientific-devel/
trunk/dports/python/py26-scientific-devel/Portfile
trunk/dports/python/py26-scientific-devel/files/
trunk/dports/python/py26-scientific-devel/files/customize.py-macosx
trunk/dports/python/py26-scientific-devel/files/customize.py-puredarwin
trunk/dports/python/py26-scientific-devel/files/patch-Src-MPI-compile.py.diff
Added: trunk/dports/python/py26-scientific-devel/Portfile
===================================================================
--- trunk/dports/python/py26-scientific-devel/Portfile (rev 0)
+++ trunk/dports/python/py26-scientific-devel/Portfile 2011-10-15 05:56:46 UTC (rev 85603)
@@ -0,0 +1,66 @@
+# -*- 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-devel
+version 2.9.0
+categories python science
+platforms darwin
+maintainers gmail.com:danmichaelo+macports openmaintainer
+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/2372/
+distname ScientificPython-${version}
+
+checksums md5 babbbb708d235094d75478bdeb8d4c7f \
+ sha1 60fb1ec7c31c86b7e7a068ccda780197e1e95ad8 \
+ rmd160 2533879b64fcb17027b11784fc0cff4351284c98
+
+depends_lib port:netcdf \
+ port:py26-numpy
+
+conflicts py26-scientific
+
+build.args --numpy
+
+build.env CPPFLAGS="-I${python.include} \
+ -I${worksrcpath}/Include" \
+ NETCDF_PREFIX=${prefix}
+
+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
+ patchfiles-append patch-Src-MPI-compile.py.diff
+ post-build {
+ reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Src/MPI/compile.py
+ reinplace "s|@worksrcpath@|${worksrcpath}|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}${python.prefix}/bin
+ ln -s ${python.prefix}/bin/mpipython ${destroot}${prefix}/bin/mpipython-${python.branch}
+ }
+}
+
+
+livecheck.type regex
+livecheck.url http://sourcesup.cru.fr/projects/scientific-py/
+livecheck.regex {<strong>Development Releases</strong></td><td>(\d+(?:\.\d+)*)}
Property changes on: trunk/dports/python/py26-scientific-devel/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py26-scientific-devel/files/customize.py-macosx
===================================================================
--- trunk/dports/python/py26-scientific-devel/files/customize.py-macosx (rev 0)
+++ trunk/dports/python/py26-scientific-devel/files/customize.py-macosx 2011-10-15 05:56:46 UTC (rev 85603)
@@ -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-devel/files/customize.py-puredarwin
===================================================================
--- trunk/dports/python/py26-scientific-devel/files/customize.py-puredarwin (rev 0)
+++ trunk/dports/python/py26-scientific-devel/files/customize.py-puredarwin 2011-10-15 05:56:46 UTC (rev 85603)
@@ -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']
+
Added: trunk/dports/python/py26-scientific-devel/files/patch-Src-MPI-compile.py.diff
===================================================================
--- trunk/dports/python/py26-scientific-devel/files/patch-Src-MPI-compile.py.diff (rev 0)
+++ trunk/dports/python/py26-scientific-devel/files/patch-Src-MPI-compile.py.diff 2011-10-15 05:56:46 UTC (rev 85603)
@@ -0,0 +1,42 @@
+--- Src/MPI/compile.py.orig 2009-10-13 18:42:27.000000000 +0400
++++ Src/MPI/compile.py 2009-10-13 18:42:40.000000000 +0400
+@@ -5,7 +5,6 @@
+ import distutils
+ import distutils.sysconfig
+ import os, sys
+-from Scientific import N
+
+ cfgDict = distutils.sysconfig.get_config_vars()
+
+@@ -14,11 +13,10 @@
+ sources='mpipython.c Scientific_mpi.c'
+
+ extra_compile_args = ""
+-if N.package == "NumPy":
+- arrayobject_h_include = os.path.join(sys.prefix,
+- "lib/python%s.%s/site-packages/numpy/core/include"
+- % sys.version_info [:2])
+- extra_compile_args = "-DNUMPY=1 -I"+arrayobject_h_include
++arrayobject_h_include = os.path.join(sys.prefix,
++ "lib/python%s.%s/site-packages/numpy/core/include"
++ % sys.version_info [:2])
++extra_compile_args = "-DNUMPY=1 -I"+arrayobject_h_include
+
+ linkforshared = cfgDict['LINKFORSHARED']
+ if sys.platform == 'darwin':
+@@ -32,14 +30,12 @@
+ items[i] = os.path.join(frameworkdir[0], items[i])
+ linkforshared = ' '.join(items)
+
+-cmd = '%s %s -o mpipython -I%s %s %s -L%s -lpython%s %s %s' % \
++cmd = '%s %s -o mpipython -Wl,-search_paths_first @prefix@/lib/libmpi.a @prefix@/lib/liblam.a -I at worksrcpath@/Include -I%s %s %s %s %s' % \
+ (mpicompiler,
+ linkforshared,
+ cfgDict['INCLUDEPY'],
+ extra_compile_args,
+ sources,
+- cfgDict['LIBPL'],
+- cfgDict['VERSION'],
+ cfgDict['LIBS'],
+ cfgDict['LIBM'])
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111014/d6a49eb5/attachment-0001.html>
More information about the macports-changes
mailing list