ports/math/py-CyLP/Makefile
Po-Chuan Hsieh 150c0018fd
Mk/Uses/python.mk: Introduce USE_PYTHON=cython3{,_run,_test}
- Update USE_PYTHON=cython{,_run,_test}
- Convert all cython3 occurrence to USE_PYTHON=cython3*
- While I'm here, fix incorrect usage of combining cython3 in BUILD_DEPENDS and USE_PYTHON=cython

It is added to simplify the future transition from Cython 0.29 to 3.

The minimal version is set to 3.0.12 because it is required by devel/py-propcache.
The upper bound of version is set to 3.1 because it is limited by multiple ports.
2025-04-09 22:55:11 +08:00

45 lines
1.2 KiB
Makefile

PORTNAME= CyLP
DISTVERSIONPREFIX= v
DISTVERSION= 0.92.3
PORTREVISION= 1
CATEGORIES= math python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python interface to CLP, CBC, and CGL to solve LPs and MIPs
WWW= https://github.com/coin-or/CyLP
LICENSE= CPL10
LICENSE_NAME= Common Public License Version 1.0
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= auto-accept dist-mirror dist-sell pkg-mirror pkg-sell
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS= libblas.so:math/blas \
libCbc.so:math/cbc \
libCgl.so:math/cgl \
libClp.so:math/clp \
libCoinUtils.so:math/coinutils \
liblapack.so:math/lapack \
libOsi.so:math/osi
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>=0.10.0:science/py-scipy@${PY_FLAVOR}
USES= compiler:c++11-lang python
USE_PYTHON= autoplist cython3 pep517 pytest
USE_GITHUB= yes
GH_ACCOUNT= coin-or
MAKE_ENV= COIN_INSTALL_DIR=${LOCALBASE}
TEST_WRKSRC= ${WRKSRC}/cylp
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cylp/cy/Cy*.so
.include <bsd.port.mk>