opnsense-ports/math/py-PuLP/Makefile
Franco Fichtner 2f03c0cf40 */*: sync with upstream
Taken from: FreeBSD
2023-06-28 09:14:20 +02:00

32 lines
836 B
Makefile

PORTNAME= PuLP
DISTVERSION= 2.7.0
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= LP modeler written in python
WWW= https://github.com/coin-or/pulp
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}amply>=0.1.2:math/py-amply@${PY_FLAVOR} \
cbc:math/cbc \
glpsol:math/glpk
USES= cpe python
CPE_VENDOR= ${PORTNAME:tl}project
USE_PYTHON= distutils concurrent autoplist
NO_ARCH= yes
post-patch:
@${CP} ${WRKSRC}/pulp/pulp.cfg.linux ${WRKSRC}/pulp/pulp.cfg.freebsd
@${REINPLACE_CMD} -E 's/^(CplexPath|PulpCbcPath) = .*/#&/' ${WRKSRC}/pulp/pulp.cfg.freebsd
do-test: install # one test is known to fail: https://github.com/coin-or/pulp/issues/494
@cd ${TEST_WRKSRC} && py.test
.include <bsd.port.mk>