ports/math/py-openTSNE/Makefile
2024-11-07 22:37:31 -08:00

31 lines
1 KiB
Makefile

PORTNAME= openTSNE
DISTVERSION= 1.0.2
CATEGORIES= math python # statistics
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:tl}-${PORTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fast, parallel implementations of t-SNE
WWW= https://github.com/pavlin-policar/openTSNE
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS= libfftw3.so:math/fftw3
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scikit-learn>=0.20:science/py-scikit-learn@${PY_FLAVOR}
USES= compiler:c++14-lang localbase:ldflags python
USE_PYTHON= pep517 cython autoplist pytest # tests fail to run, see https://github.com/pavlin-policar/openTSNE/issues/237
TEST_WRKSRC= ${WRKSRC}/tests
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${FIND} ${STAGEDIR}${PREFIX} -name "*.so" | ${XARGS} ${STRIP_CMD}
.include <bsd.port.mk>