From 742906c8c9794bc87c0494b7ba135d204fa5cda7 Mon Sep 17 00:00:00 2001 From: yuri Date: Mon, 26 Mar 2018 07:18:44 +0000 Subject: New port: math/py-cvxopt: Python software for convex optimization --- math/Makefile | 1 + math/py-cvxopt/Makefile | 30 ++++++++++++++++++++++++++++++ math/py-cvxopt/distinfo | 3 +++ math/py-cvxopt/pkg-descr | 9 +++++++++ 4 files changed, 43 insertions(+) create mode 100644 math/py-cvxopt/Makefile create mode 100644 math/py-cvxopt/distinfo create mode 100644 math/py-cvxopt/pkg-descr (limited to 'math') diff --git a/math/Makefile b/math/Makefile index c56bfe971c6..b24a5855152 100644 --- a/math/Makefile +++ b/math/Makefile @@ -631,6 +631,7 @@ SUBDIR += py-cdecimal SUBDIR += py-colormath SUBDIR += py-cryptominisat + SUBDIR += py-cvxopt SUBDIR += py-fastcluster SUBDIR += py-ffc SUBDIR += py-fiat diff --git a/math/py-cvxopt/Makefile b/math/py-cvxopt/Makefile new file mode 100644 index 00000000000..c94d37e21fd --- /dev/null +++ b/math/py-cvxopt/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= cvxopt +DISTVERSION= 1.1.9 +CATEGORIES= math python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python software for convex optimization + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libblas.so:math/blas \ + liblapack.so:math/lapack \ + libumfpack.so:math/suitesparse + +USES= python +USE_GITHUB= yes +USE_PYTHON= distutils autoplist + +CFLAGS+= -I${LOCALBASE}/include/suitesparse + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cvxopt/*.so + # workaround: empty directory is installed: https://github.com/cvxopt/cvxopt/issues/111 + @${RMDIR} ${STAGEDIR}${PREFIX}/cvxopt + @${REINPLACE_CMD} -e 's|${PREFIX}/cvxopt||' ${_PYTHONPKGLIST} + +.include diff --git a/math/py-cvxopt/distinfo b/math/py-cvxopt/distinfo new file mode 100644 index 00000000000..42df7397411 --- /dev/null +++ b/math/py-cvxopt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1522033973 +SHA256 (cvxopt-cvxopt-1.1.9_GH0.tar.gz) = 09997fec809179c9bb9fe8cdd202ad6ecb675f890658219022f492e0797122ee +SIZE (cvxopt-cvxopt-1.1.9_GH0.tar.gz) = 1872932 diff --git a/math/py-cvxopt/pkg-descr b/math/py-cvxopt/pkg-descr new file mode 100644 index 00000000000..00208a0ad4f --- /dev/null +++ b/math/py-cvxopt/pkg-descr @@ -0,0 +1,9 @@ +CVXOPT is a free software package for convex optimization based on the Python +programming language. It can be used with the interactive Python interpreter, +on the command line by executing Python scripts, or integrated in other software +via Python extension modules. Its main purpose is to make the development of +software for convex optimization applications straightforward by building on +Python's extensive standard library and on the strengths of Python as a +high-level programming language. + +WWW: https://github.com/cvxopt/cvxopt -- cgit