svn commit: r480530 - in head/math: . py-CyLP py-CyLP/files
Yuri Victorovich
yuri at FreeBSD.org
Sun Sep 23 20:02:48 UTC 2018
Author: yuri
Date: Sun Sep 23 20:02:46 2018
New Revision: 480530
URL: https://svnweb.freebsd.org/changeset/ports/480530
Log:
New port: math/py-CyLP: Python interface to CLP, CBC, and CGL to solve LPs and MIPs
Added:
head/math/py-CyLP/
head/math/py-CyLP/Makefile (contents, props changed)
head/math/py-CyLP/distinfo (contents, props changed)
head/math/py-CyLP/files/
head/math/py-CyLP/files/patch-setup.py (contents, props changed)
head/math/py-CyLP/pkg-descr (contents, props changed)
Modified:
head/math/Makefile
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Sun Sep 23 19:44:36 2018 (r480529)
+++ head/math/Makefile Sun Sep 23 20:02:46 2018 (r480530)
@@ -658,6 +658,7 @@
SUBDIR += pspp
SUBDIR += pure-mpfr
SUBDIR += pure-rational
+ SUBDIR += py-CyLP
SUBDIR += py-Diofant
SUBDIR += py-GridDataFormats
SUBDIR += py-PuLP
Added: head/math/py-CyLP/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-CyLP/Makefile Sun Sep 23 20:02:46 2018 (r480530)
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME= cylp
+DISTVERSION= 0.7.2-30
+DISTVERSIONSUFFIX= -g65a985b
+CATEGORIES= math python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri at FreeBSD.org
+COMMENT= Python interface to CLP, CBC, and CGL to solve LPs and MIPs
+
+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= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>=0.10.0:science/py-scipy@${FLAVOR}
+LIB_DEPENDS= libblas.so:math/blas \
+ libCbc.so:math/cbc \
+ libCgl.so:math/cgl \
+ libClp.so:math/clp \
+ liblapack.so:math/lapack
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+USES= python:2.7 # 3.X support is still in the pull request: https://github.com/coin-or/CyLP/pull/28
+USE_GITHUB= yes
+GH_ACCOUNT= coin-or
+GH_PROJECT= CyLP
+USE_PYTHON= distutils cython autoplist
+
+MAKE_ENV= COIN_INSTALL_DIR=${LOCALBASE}
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cylp/cy/Cy*.so
+
+.include <bsd.port.mk>
Added: head/math/py-CyLP/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-CyLP/distinfo Sun Sep 23 20:02:46 2018 (r480530)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1537731308
+SHA256 (coin-or-CyLP-0.7.2-30-g65a985b_GH0.tar.gz) = 9a611fe5e530b61ac4d9c496d7cae88f25491bb571cb3ce3c37ebcb785ee1870
+SIZE (coin-or-CyLP-0.7.2-30-g65a985b_GH0.tar.gz) = 10514134
Added: head/math/py-CyLP/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-CyLP/files/patch-setup.py Sun Sep 23 20:02:46 2018 (r480530)
@@ -0,0 +1,11 @@
+--- setup.py.orig 2014-02-14 17:25:06 UTC
++++ setup.py
+@@ -108,7 +108,7 @@ ext_modules = []
+
+ if operatingSystem == 'mac':
+ extra_link_args = ['-Wl,-framework', '-Wl,Accelerate', '-headerpad_max_install_names']
+-elif operatingSystem == 'linux':
++elif operatingSystem == 'linux' or operatingSystem.startswith('freebsd'):
+ extra_link_args = ['-lrt']
+ else:
+ # Assuming Windows
Added: head/math/py-CyLP/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-CyLP/pkg-descr Sun Sep 23 20:02:46 2018 (r480530)
@@ -0,0 +1,7 @@
+CyLP is a Python interface to COIN-OR's Linear and mixed-integer program solvers
+(CLP, CBC, and CGL). CyLP's unique feature is that you can use it to alter the
+solution process of the solvers from within Python. For example, you may define
+cut generators, branch-and-bound strategies, and primal/dual Simplex pivot rules
+completely in Python.
+
+WWW: https://github.com/coin-or/CyLP
More information about the svn-ports-head
mailing list