From owner-svn-ports-head@freebsd.org Sun Sep 23 20:02:48 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48DE610969BE; Sun, 23 Sep 2018 20:02:48 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 00A7781162; Sun, 23 Sep 2018 20:02:48 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EFD5076AF; Sun, 23 Sep 2018 20:02:47 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8NK2lfe060536; Sun, 23 Sep 2018 20:02:47 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8NK2kem060531; Sun, 23 Sep 2018 20:02:46 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201809232002.w8NK2kem060531@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 23 Sep 2018 20:02:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r480530 - in head/math: . py-CyLP py-CyLP/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/math: . py-CyLP py-CyLP/files X-SVN-Commit-Revision: 480530 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Sep 2018 20:02:48 -0000 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@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 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