diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-17 16:07:38 +0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-17 16:07:38 +0800 |
commit | eb0b973ac5742352887f86d956cac3e2e377eea2 (patch) | |
tree | b974e8571767b8d95833799ace55e845d80bf328 /math | |
parent | 61c0c110b709c14a76d1c40fa550c423ecfc152a (diff) | |
download | freebsd-ports-gnome-eb0b973ac5742352887f86d956cac3e2e377eea2.tar.gz freebsd-ports-gnome-eb0b973ac5742352887f86d956cac3e2e377eea2.tar.zst freebsd-ports-gnome-eb0b973ac5742352887f86d956cac3e2e377eea2.zip |
New port: math/py-pyipopt: Use ipopt (an optimization tool) via python
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/py-pyipopt/Makefile | 27 | ||||
-rw-r--r-- | math/py-pyipopt/distinfo | 3 | ||||
-rw-r--r-- | math/py-pyipopt/files/patch-setup.py | 16 | ||||
-rw-r--r-- | math/py-pyipopt/pkg-descr | 3 |
5 files changed, 50 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index e48488236e34..db567418c572 100644 --- a/math/Makefile +++ b/math/Makefile @@ -691,6 +691,7 @@ SUBDIR += py-pycosat SUBDIR += py-pygsl SUBDIR += py-pyhull + SUBDIR += py-pyipopt SUBDIR += py-pymc SUBDIR += py-pymc3 SUBDIR += py-pyneqsys diff --git a/math/py-pyipopt/Makefile b/math/py-pyipopt/Makefile new file mode 100644 index 000000000000..440e85525275 --- /dev/null +++ b/math/py-pyipopt/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= pyipopt +DISTVERSION= g20180409 +CATEGORIES= math python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Use ipopt (an optimization tool) via python + +LICENSE= BSD3CLAUSE + +BUILD_DEPENDS= ${PYNUMPY} +LIB_DEPENDS= libipopt.so:math/ipopt +RUN_DEPENDS= ${PYNUMPY} + +USES= dos2unix python +USE_GITHUB= yes +GH_ACCOUNT= xuy +GH_TAGNAME= 36bcb7f +DOS2UNIX_FILES= setup.py +USE_PYTHON= distutils autoplist + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pyipopt/pyipoptcore.so + +.include <bsd.port.mk> diff --git a/math/py-pyipopt/distinfo b/math/py-pyipopt/distinfo new file mode 100644 index 000000000000..38973a737e05 --- /dev/null +++ b/math/py-pyipopt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1523951951 +SHA256 (xuy-pyipopt-g20180409-36bcb7f_GH0.tar.gz) = 4315e9911fda864ce5613518bc2ce8d22d2173fa519e487ab895ff099659498b +SIZE (xuy-pyipopt-g20180409-36bcb7f_GH0.tar.gz) = 17677 diff --git a/math/py-pyipopt/files/patch-setup.py b/math/py-pyipopt/files/patch-setup.py new file mode 100644 index 000000000000..d8aafa7085ce --- /dev/null +++ b/math/py-pyipopt/files/patch-setup.py @@ -0,0 +1,16 @@ +--- setup.py.orig 2018-04-17 07:40:56 UTC ++++ setup.py +@@ -48,11 +48,11 @@ pyipopt_extension = Extension( + #extra_link_args=['-Wl,--rpath','-Wl,'+ IPOPT_LIB], + library_dirs=[IPOPT_LIB], + libraries=[ +- 'ipopt', 'coinblas', ++ 'ipopt', + #'coinhsl', + 'coinmumps', + 'coinmetis', +- 'coinlapack','dl','m', ++ 'm', + ], + include_dirs=[numpy_include, IPOPT_INC], + ) diff --git a/math/py-pyipopt/pkg-descr b/math/py-pyipopt/pkg-descr new file mode 100644 index 000000000000..893e4d4cafd9 --- /dev/null +++ b/math/py-pyipopt/pkg-descr @@ -0,0 +1,3 @@ +PyIpopt is a python module that allows you to use Ipopt in Python. + +WWW: https://github.com/xuy/pyipopt |