Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2018 19:59:45 +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: r485253 - head/math/ecos
Message-ID:  <201811181959.wAIJxjn0092074@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Nov 18 19:59:45 2018
New Revision: 485253
URL: https://svnweb.freebsd.org/changeset/ports/485253

Log:
  math/ecos: Update 2.0.6 -> 2.0.7
  
  Port changes:
  * Add the 'test' target
  * Add the 'demos' target that runs the supplied demo problems
  * Add to description
  * Update WWW
  
  Reported by:	portscout

Modified:
  head/math/ecos/Makefile
  head/math/ecos/distinfo
  head/math/ecos/pkg-descr

Modified: head/math/ecos/Makefile
==============================================================================
--- head/math/ecos/Makefile	Sun Nov 18 19:32:55 2018	(r485252)
+++ head/math/ecos/Makefile	Sun Nov 18 19:59:45 2018	(r485253)
@@ -1,8 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	ecos
-DISTVERSIONPREFIX=	v
-DISTVERSION=	2.0.6
+DISTVERSION=	2.0.7
 CATEGORIES=	math
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -14,12 +13,28 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 USES=		gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	embotech
-ALL_TARGET=	shared
 USE_LDCONFIG=	yes
 
+ALL_TARGET=	shared
+
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/include/ecos
 	${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include/ecos
 	${INSTALL_LIB} ${WRKSRC}/libecos.so ${STAGEDIR}${PREFIX}/lib
+
+do-test: # some tests are known to fail: https://github.com/embotech/ecos/issues/170
+	@cd ${WRKSRC} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} test && \
+		${ECHO} "===> Running ${PORTNAME} tests: ecostester" && \
+		(./ecostester || true) && \
+		${ECHO} "===> Running ${PORTNAME} tests: ecos_bb_test" && \
+		./ecos_bb_test
+
+demos: build # runs the demo problems
+	@cd ${WRKSRC} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} demo && \
+		./runecos && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} runecosexp && \
+		./runecosexp
 
 .include <bsd.port.mk>

Modified: head/math/ecos/distinfo
==============================================================================
--- head/math/ecos/distinfo	Sun Nov 18 19:32:55 2018	(r485252)
+++ head/math/ecos/distinfo	Sun Nov 18 19:59:45 2018	(r485253)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1528436129
-SHA256 (embotech-ecos-v2.0.6_GH0.tar.gz) = ffc4b44e813a5c68abd464b638d216f09385d9b6e40cf487ac384289e6a27988
-SIZE (embotech-ecos-v2.0.6_GH0.tar.gz) = 1266378
+TIMESTAMP = 1542565003
+SHA256 (embotech-ecos-2.0.7_GH0.tar.gz) = bdb6a84f7d150820459bd0a796cb64ffbb019afb95dc456d22acc2dafb2e70e0
+SIZE (embotech-ecos-2.0.7_GH0.tar.gz) = 1277355

Modified: head/math/ecos/pkg-descr
==============================================================================
--- head/math/ecos/pkg-descr	Sun Nov 18 19:32:55 2018	(r485252)
+++ head/math/ecos/pkg-descr	Sun Nov 18 19:59:45 2018	(r485253)
@@ -7,4 +7,7 @@ s.t. A*x = b
 
 where the last inequality is generalized, i.e. h - G*x belongs to the cone K.
 
-WWW: https://github.com/embotech/ecos
+Convex optimization is used in fields as diverse as control and estimation,
+finance, signal processing and image reconstruction.
+
+WWW: https://www.embotech.com/ECOS



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