| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/science/py-gpaw/ |
Upload File : |
PORTNAME= gpaw
DISTVERSION= 22.1.0
CATEGORIES= science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= DFT and beyond within the projector-augmented wave method in chemistry
WWW= https://wiki.fysik.dtu.dk/gpaw/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= libblas.so:math/blas \
libmpich.so:net/mpich \
libopenblas.so:math/openblas \
libxc.so:science/libxc
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ase>0:science/py-ase@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR} \
gpaw-setups>0:science/gpaw-setups
USES= gettext-runtime localbase python:3.7+ shebangfix
USE_PYTHON= distutils concurrent autoplist
SHEBANG_FILES= tools/*
LDFLAGS= -lmpi # otherwise: ImportError: /usr/local/lib/python3.8/site-packages/_gpaw.cpython-38.so: Undefined symbol "MPI_Comm_rank"
post-patch:
@${REINPLACE_CMD} "s|'/usr/local/|'${LOCALBASE}/|" ${WRKSRC}/gpaw/__init__.py
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_gpaw*.so
do-test: install
@${ECHO} "== Performing a test calculation on one CPU =="
@gpaw test
@${ECHO} "== Performing a test calculation on 8 CPUs =="
@gpaw -P 8 test
.include <bsd.port.mk>