Files
ports/math/py-gau2grid/Makefile
Charlie Li d04d23ae37 python.mk: retire ${PYNUMPY}
With both math/py-numpy (2) and math/py-numpy1, the variable stopped
making sense. Also remove the upper version bound.
2026-04-03 16:52:43 -04:00

40 lines
1.1 KiB
Makefile

PORTNAME= gau2grid
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.7
PORTREVISION= 3
CATEGORIES= math python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fast computation of a gaussian and its derivative on a grid
WWW= https://github.com/dgasmith/gau2grid
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy1>=1.16:math/py-numpy1@${PY_FLAVOR} \
cmake:devel/cmake-core
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy1>=1.16:math/py-numpy1@${PY_FLAVOR}
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}
OPTIONS_DEFINE= NATIVE
NATIVE_CMAKE_BOOL= ENABLE_XHOST
post-install:
@${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/gau2grid/__pycache__
@${RM} -r ${STAGEDIR}${LOCALBASE}//lib/usr # LICENSE is installed under there
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
.include <bsd.port.mk>