[116403] trunk/dports/python

sean at macports.org sean at macports.org
Thu Jan 23 12:16:28 PST 2014


Revision: 116403
          https://trac.macports.org/changeset/116403
Author:   sean at macports.org
Date:     2014-01-23 12:16:28 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
py-petsc4py: add new port to provide python bindings for petsc

Added Paths:
-----------
    trunk/dports/python/py-petsc4py/
    trunk/dports/python/py-petsc4py/Portfile

Added: trunk/dports/python/py-petsc4py/Portfile
===================================================================
--- trunk/dports/python/py-petsc4py/Portfile	                        (rev 0)
+++ trunk/dports/python/py-petsc4py/Portfile	2014-01-23 20:16:28 UTC (rev 116403)
@@ -0,0 +1,50 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python 1.0
+PortGroup           bitbucket 1.0
+PortGroup           mpi 1.0
+
+mpi.setup           require
+
+bitbucket.setup     petsc petsc4py 3.4
+name                py-petsc4py
+categories-append   math
+platforms           darwin
+universal_variant   no
+description         PETSc for Python - Python bindings for PETSc
+long_description    PETSc is a suite of data structures and routines for the scalable \
+                    (parallel) solution of scientific applications modeled by partial \
+                    differential equations. It employs the MPI standard for all \
+                    message-passing communication.
+
+maintainers         sean openmaintainer
+
+checksums           rmd160  d777cefad7e0d6d4a8feffa18a0873043ace78ac \
+                    sha256  96db5574e54804f1737f65f9f1037c7a32f0871c1ef3c77e3458d6768e0cf9d9
+
+python.versions     26 27 32 33
+
+build.env-append    PETSC_DIR=${prefix}/lib/petsc
+destroot.env-append PETSC_DIR=${prefix}/lib/petsc
+
+if {![mpi_variant_isset]} {
+    default_variants +mpich
+}
+
+if {${subport} ne ${name}} {
+    mpi.enforce_variant \
+                    py${python.version}-mpi4py
+
+    depends_build-append \
+                    port:py${python.version}-setuptools \
+                    port:py${python.version}-cython
+
+    depends_lib-append \
+                    port:petsc \
+                    port:py${python.version}-mpi4py \
+                    port:py${python.version}-numpy
+
+    livecheck.type  none
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/c3232916/attachment-0001.html>


More information about the macports-changes mailing list