PORTNAME= nlopt DISTVERSION= 2.9.0 CATEGORIES= math #MASTER_SITES= PYPI # https://github.com/DanielBok/nlopt-python/issues/15 PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Nonlinear optimization library WWW= https://github.com/DanielBok/nlopt-python LICENSE= LGPL21 MIT LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= cmake:devel/cmake-core \ swig:devel/swig \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} USES= python USE_PYTHON= distutils # autoplist is broken, see https://github.com/DanielBok/nlopt-python/issues/17 USE_GITHUB= yes GH_ACCOUNT= DanielBok GH_PROJECT= nlopt-python GH_TUPLE= stevengj:nlopt:75dd16e:nlopt/extern/nlopt #CMAKE_ARGS= -DFREEBSD_PYTHON_VER=${PYTHON_VER} MAKE_ENV= FREEBSD_PYTHON_VER=${PYTHON_VER} xpost-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/nlopt/_nlopt.so do-test: @${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${FILESDIR}/example.py .include