Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME?= mpi4py-openmpi |
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/openmpi |
16 |
RUN_DEPENDS= ${PYNUMPY} \ |
17 |
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six |
18 |
|
19 |
USE_GITHUB= yes |
20 |
GH_ACCOUNT= mpi4py |
21 |
GH_PROJECT= mpi4py |
22 |
|
23 |
USES= python |
24 |
USE_PYTHON= autoplist distutils |
25 |
NO_ARCH= yes |
26 |
|
27 |
CONFLICTS?= py*-mpi4py-mpich-* |
28 |
|
29 |
PORTDOCS= * |
30 |
PORTEXAMPLES= * |
31 |
|
32 |
.if ${PORTNAME} == "mpi4py-openmpi" |
33 |
do-patch: |
34 |
${CP} ${FILESDIR}/mpi.cfg ${WRKSRC}/ |
35 |
.endif |
36 |
|
37 |
do-install-DOCS-on: |
38 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
39 |
${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR} |
40 |
${COPYTREE_SHARE} ${WRKSRC}/docs ${STAGEDIR}${DOCSDIR} |
41 |
|
42 |
do-install-EXAMPLES-on: |
43 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
44 |
${COPYTREE_SHARE} ${WRKSRC}/examples ${STAGEDIR}${EXAMPLESDIR} |
45 |
|
46 |
do-test: |
47 |
cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test |
48 |
|
49 |
.include <bsd.port.mk> |