[27693] trunk/dports/python

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 22:02:06 PDT 2007


Revision: 27693
          http://trac.macosforge.org/projects/macports/changeset/27693
Author:   jochen at macports.org
Date:     2007-08-11 22:02:06 -0700 (Sat, 11 Aug 2007)

Log Message:
-----------
Provide new port of ScientificPython for python25,
this is necessary for py25-ipython

Added Paths:
-----------
    trunk/dports/python/py25-scientific/
    trunk/dports/python/py25-scientific/Portfile

Added: trunk/dports/python/py25-scientific/Portfile
===================================================================
--- trunk/dports/python/py25-scientific/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-scientific/Portfile	2007-08-12 05:02:06 UTC (rev 27693)
@@ -0,0 +1,41 @@
+# $Id$
+
+PortSystem       1.0
+PortGroup        python25 1.0
+name             py25-scientific
+version          2.6
+categories       python science
+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/plone/software/scientificpython/
+master_sites	 http://sourcesup.cru.fr/frs/download.php/1034
+distname         ScientificPython-${version}
+checksums        md5 6ebd96fc8a4e015adab2c57826d52e9f
+
+depends_lib      port:netcdf \
+		 port:py25-numeric
+
+build.env    	 CPPFLAGS="-I${prefix}/include/python2.5 \
+		 -I${worksrcpath}/Include" \
+		 NETCDF_PREFIX=${prefix}		 
+
+variant mpi      {
+        depends_lib-append port:lammpi
+
+        post-build	 {
+		 reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python2.5 -I${worksrcpath}/Include|g" \
+			${worksrcpath}/Src/MPI/compile.py
+		 reinplace "s|-L%s -lpython%s|-L/Library/Frameworks/Python.framework/Versions/2.5/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 && python2.5 compile.py"
+        }
+
+        post-destroot    {
+		 cd ${worksrcpath}/Src/MPI
+		 xinstall -m 0755 mpipython ${destroot}${prefix}/bin
+        }
+}


Property changes on: trunk/dports/python/py25-scientific/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070811/42f32216/attachment.html


More information about the macports-changes mailing list