blob: 9435289a63e24e7b5233188fb08e5df9b0475cfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
PORTNAME= petsc4py
DISTVERSION= 3.18.3
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= PETSc for Python
WWW= https://bitbucket.org/petsc/petsc4py
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= libpetsc.so:science/PETSc
RUN_DEPENDS= ${PYNUMPY}
USES= python:3.6+
USE_PYTHON= distutils autoplist pytest # tests fail to run, see https://gitlab.com/petsc/petsc/-/issues/1301
MAKE_ENV= PETSC_DIR=${LOCALBASE}
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= MPICH OPENMPI
OPTIONS_DEFAULT= MPICH
MPICH_USES= mpi:mpich
OPENMPI_USES= mpi:openmpi
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/petsc4py/lib/PETSc${PYTHON_EXT_SUFFIX}.so
.include <bsd.port.mk>
|