Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2020 17:20:01 +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: r528425 - head/math/mlpack
Message-ID:  <202003141720.02EHK1ge003899@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Mar 14 17:20:01 2020
New Revision: 528425
URL: https://svnweb.freebsd.org/changeset/ports/528425

Log:
  math/mlpack: Add the 'test' target
  
  PR:		244805
  Approved by:	robert.ayrapetyan@gmail.com (maintainer)

Modified:
  head/math/mlpack/Makefile

Modified: head/math/mlpack/Makefile
==============================================================================
--- head/math/mlpack/Makefile	Sat Mar 14 17:11:42 2020	(r528424)
+++ head/math/mlpack/Makefile	Sat Mar 14 17:20:01 2020	(r528425)
@@ -3,7 +3,7 @@
 PORTNAME=	mlpack
 DISTVERSION=	3.2.2
 PORTREVISION=	1
-CATEGORIES=	math
+CATEGORIES=	math # machine-learning
 MASTER_SITES=	https://mlpack.org/files/
 
 MAINTAINER=	robert.ayrapetyan@gmail.com
@@ -23,5 +23,12 @@ USE_LDCONFIG=	yes
 
 CMAKE_ARGS=	-DSTB_IMAGE_INCLUDE_DIR=${LOCALBASE}/include/stb
 CMAKE_OFF=	BUILD_PYTHON_BINDINGS BUILD_TESTS BUILD_CLI_EXECUTABLES
+
+do-test: # 'clean' target below is a workaround for: https://github.com/mlpack/mlpack/issues/2300
+	@cd ${BUILD_WRKSRC} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} clean && \
+		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
 
 .include <bsd.port.mk>



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