freebsd-ports/math/py-gau2grid/Makefile
Yuri Victorovich 8fa7e780d0 math/py-gau2grid: Update 1.3.0 -> 1.3.1
Switch to cmake based on the upstream recommendation.

Reported by:	repology
2019-01-26 20:29:29 +00:00

34 lines
811 B
Makefile

# $FreeBSD$
PORTNAME= gau2grid
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.1
CATEGORIES= math python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fast computation of a gaussian and its derivative on a grid
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYNUMPY} \
cmake:devel/cmake
RUN_DEPENDS= ${PYNUMPY}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
USES= cmake compiler:c11 python
USE_GITHUB= yes
GH_ACCOUNT= dgasmith
USE_PYTHON= flavors
CMAKE_ON= INSTALL_PYMOD
CMAKE_ARGS= -DPYMOD_INSTALL_LIBDIR:STRING=${PYTHON_SITELIBDIR} -DFREEBSD_PYTHON_VER:STRING=${PYTHON_VER}
post-install:
@${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/gau2grid/__pycache__
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
.include <bsd.port.mk>