mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 00:46:27 -04:00
30 lines
984 B
Makefile
30 lines
984 B
Makefile
PORTNAME= openTSNE
|
|
DISTVERSION= 1.0.1
|
|
CATEGORIES= math python # statistics
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
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>
|