blob: b50c100492dc0a5988ad0a089c9ac68ccfbe449b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
PORTNAME= ipyopt
DISTVERSION= 0.12.7
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python interface to Ipopt
WWW= https://gitlab.com/g-braeunlich/ipyopt
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
PY_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
LIB_DEPENDS= libipopt.so:math/ipopt
RUN_DEPENDS= ${PY_DEPENDS}
USES= compiler:c++17-lang pkgconfig python
USE_PYTHON= distutils autoplist pytest
CXXFLAGS+= $(pkg-config --cflags ipopt)
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/${PORTNAME}.cpython-*.so
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest
.include <bsd.port.mk>
|