New port: math/py-levmar: Binding to levmar library (Levenberg-Marquardt optimization algorithm)

This commit is contained in:
Yuri Victorovich 2018-04-01 02:52:34 +00:00
parent 614bc97065
commit 75b160aeae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466113
4 changed files with 46 additions and 0 deletions

View File

@ -649,6 +649,7 @@
SUBDIR += py-igraph
SUBDIR += py-intspan
SUBDIR += py-keras
SUBDIR += py-levmar
SUBDIR += py-luminol
SUBDIR += py-mathdom
SUBDIR += py-matplotlib

35
math/py-levmar/Makefile Normal file
View File

@ -0,0 +1,35 @@
# $FreeBSD$
# levmar library (math/levmar) is bundled
PORTNAME= levmar
DISTVERSION= 0.2.2
CATEGORIES= math python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Binding to levmar library (Levenberg-Marquardt optimization algorithm)
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${FLAVOR} \
${PYNUMPY}
USES= python
USE_PYTHON= distutils autoplist
post-patch:
@${REINPLACE_CMD} -e 's|ö|o|' ${WRKSRC}/AUTHORS # breaks because of non-ascii chars
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_${PORTNAME}.so
do-test:
@cd ${WRKSRC}/levmar/tests && ${PYTHON_CMD} -m pytest --pyargs levmar
.include <bsd.port.mk>

3
math/py-levmar/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1522545759
SHA256 (levmar-0.2.2.tar.gz) = 9419f944345f0322079a2846327982cf50ed02e2a8c3de4456047891368d2c1b
SIZE (levmar-0.2.2.tar.gz) = 168605

7
math/py-levmar/pkg-descr Normal file
View File

@ -0,0 +1,7 @@
The levmar is GPL'ed ANSI C implementation of the Levenberg-Marquardt (LM)
optimization algorithm. The LM algorithm provides a numerical solution to the
problem of minimizing a function over a parameter space of a function. The
levmar library provides implementation of both unconstrained and constrained LM
algorithms (box, linear equation, and linear inequality constraints).
WWW: https://github.com/bjodah/levmar