From ce60bd0f885adc9259d0b9687ee49238fc7741f1 Mon Sep 17 00:00:00 2001 From: Stephen Montgomery-Smith Date: Thu, 28 Feb 2019 21:31:20 +0000 Subject: [PATCH] - New port math/quadprog Quadratic programming package for python. --- math/Makefile | 1 + math/py-quadprog/Makefile | 19 +++++++++++++++++++ math/py-quadprog/distinfo | 3 +++ math/py-quadprog/pkg-descr | 6 ++++++ 4 files changed, 29 insertions(+) create mode 100644 math/py-quadprog/Makefile create mode 100644 math/py-quadprog/distinfo create mode 100644 math/py-quadprog/pkg-descr diff --git a/math/Makefile b/math/Makefile index 4689fbe81a6e..f1fbd1f8d249 100644 --- a/math/Makefile +++ b/math/Makefile @@ -770,6 +770,7 @@ SUBDIR += py-pysym SUBDIR += py-python-louvain SUBDIR += py-pyvtk + SUBDIR += py-quadprog SUBDIR += py-random2 SUBDIR += py-rapi SUBDIR += py-roman diff --git a/math/py-quadprog/Makefile b/math/py-quadprog/Makefile new file mode 100644 index 000000000000..60ae07f9de4d --- /dev/null +++ b/math/py-quadprog/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +PORTNAME= quadprog +DISTVERSION= 0.1.6 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= stephen@FreeBSD.org +COMMENT= Quadratic programming package + +LICENSE= GPLv2+ + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.2,1:math/py-numpy@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist cython + +.include diff --git a/math/py-quadprog/distinfo b/math/py-quadprog/distinfo new file mode 100644 index 000000000000..c854a50d9b39 --- /dev/null +++ b/math/py-quadprog/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1551374538 +SHA256 (quadprog-0.1.6.tar.gz) = 5e161635fb7f2730edef0070448bdbe93784552202c12e15e0fbf640f0cef0f4 +SIZE (quadprog-0.1.6.tar.gz) = 107537 diff --git a/math/py-quadprog/pkg-descr b/math/py-quadprog/pkg-descr new file mode 100644 index 000000000000..84121961e2fe --- /dev/null +++ b/math/py-quadprog/pkg-descr @@ -0,0 +1,6 @@ +Solve a strictly convex quadratic program: + +Minimize 1/2 x^T G x - a^T x +Subject to C.T x >= b + +WWW: https://pypi.org/project/quadprog