Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2018 02:52:35 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r466113 - in head/math: . py-levmar
Message-ID:  <201804010252.w312qZn2002964@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Apr  1 02:52:34 2018
New Revision: 466113
URL: https://svnweb.freebsd.org/changeset/ports/466113

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

Added:
  head/math/py-levmar/
  head/math/py-levmar/Makefile   (contents, props changed)
  head/math/py-levmar/distinfo   (contents, props changed)
  head/math/py-levmar/pkg-descr   (contents, props changed)
Modified:
  head/math/Makefile

Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile	Sun Apr  1 00:32:17 2018	(r466112)
+++ head/math/Makefile	Sun Apr  1 02:52:34 2018	(r466113)
@@ -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

Added: head/math/py-levmar/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-levmar/Makefile	Sun Apr  1 02:52:34 2018	(r466113)
@@ -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>

Added: head/math/py-levmar/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-levmar/distinfo	Sun Apr  1 02:52:34 2018	(r466113)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1522545759
+SHA256 (levmar-0.2.2.tar.gz) = 9419f944345f0322079a2846327982cf50ed02e2a8c3de4456047891368d2c1b
+SIZE (levmar-0.2.2.tar.gz) = 168605

Added: head/math/py-levmar/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-levmar/pkg-descr	Sun Apr  1 02:52:34 2018	(r466113)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804010252.w312qZn2002964>