Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME?= mpi4py-openmpi2 |
4 |
PORTVERSION= 2.0.0 |
5 |
CATEGORIES= net parallel python |
6 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
|
8 |
MAINTAINER= mike.d.ft402@gmail.com |
9 |
COMMENT= MPI for Python - Python bindings for MPI |
10 |
|
11 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE.rst |
13 |
|
14 |
BUILD_DEPENDS= cython:lang/cython |
15 |
LIB_DEPENDS?= libmpi.so:net/openmpi2 |
16 |
|
17 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= mpi4py |
19 |
GH_PROJECT= mpi4py |
20 |
|
21 |
USES= python |
22 |
USE_PYTHON= autoplist distutils |
23 |
|
24 |
CONFLICTS_INSTALL?= py*-mpi4py-openmpi-* py*-mpi4py-mpich-* |
25 |
|
26 |
PORTDOCS= * |
27 |
PORTEXAMPLES= * |
28 |
|
29 |
.if (${PORTNAME} == "mpi4py-openmpi2") || (${PORTNAME} == "mpi4py-openmpi") |
30 |
do-patch: |
31 |
${CP} ${FILESDIR}/mpi.cfg ${WRKSRC}/ |
32 |
.endif |
33 |
|
34 |
do-install-DOCS-on: |
35 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
36 |
${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR} |
37 |
${COPYTREE_SHARE} ${WRKSRC}/docs ${STAGEDIR}${DOCSDIR} |
38 |
|
39 |
do-install-EXAMPLES-on: |
40 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
41 |
${COPYTREE_SHARE} ${WRKSRC}/examples ${STAGEDIR}${EXAMPLESDIR} |
42 |
|
43 |
do-test: |
44 |
cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
45 |
|
46 |
post-install: |
47 |
.for f in \ |
48 |
dl.so MPI.so lib-pmpi/libvt-hyb.so lib-pmpi/libvt.so lib-pmpi/libvt-mpi.so lib-pmpi/libmpe.so |
49 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/python2.7/site-packages/mpi4py/${f} |
50 |
.endfor |
51 |
|
52 |
.include <bsd.port.mk> |