svn commit: r528425 - head/math/mlpack

Yuri Victorovich yuri at FreeBSD.org
Sat Mar 14 17:20:02 UTC 2020


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 at 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 at 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>


More information about the svn-ports-head mailing list