1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

math/dbcsr: Update 1.0.0-rc.0-40 -> 1.1.0

* Add the 'test' target.

Reported by:	portscout
This commit is contained in:
Yuri Victorovich 2019-04-09 05:54:30 +00:00
parent b6d5eb49c3
commit 5697158c09
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498451
4 changed files with 29 additions and 10 deletions

View File

@ -2,9 +2,7 @@
PORTNAME= dbcsr
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.0-rc.0-40
PORTREVISION= 1
DISTVERSIONSUFFIX= -gd9c0dd54
DISTVERSION= 1.1.0
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
@ -20,6 +18,8 @@ USE_GITHUB= yes
GH_ACCOUNT= cp2k
USE_LDCONFIG= yes
LDFLAGS+= -lopenblas
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS"
@ -38,4 +38,10 @@ OPENMP_LIB_DEPENDS= libomp.so:devel/openmp
C_API_DESC= Build the C API library
C_API_CMAKE_BOOL= WITH_C_API
do-test: # tests are broken: https://github.com/cp2k/dbcsr/issues/150
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING: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>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1541005905
SHA256 (cp2k-dbcsr-v1.0.0-rc.0-40-gd9c0dd54_GH0.tar.gz) = 31ce9b790f3339c82a49993e0a8f483ccb1fac473e01a2694a44c8f0aeadd3d0
SIZE (cp2k-dbcsr-v1.0.0-rc.0-40-gd9c0dd54_GH0.tar.gz) = 764223
TIMESTAMP = 1554784384
SHA256 (cp2k-dbcsr-v1.1.0_GH0.tar.gz) = 59d6c5c4315ee6cc05093d815dce0e818c6df22a3e224015806c6e89fa255195
SIZE (cp2k-dbcsr-v1.1.0_GH0.tar.gz) = 1795447

View File

@ -0,0 +1,13 @@
--- CMakeLists.txt.orig 2019-04-09 04:46:02 UTC
+++ CMakeLists.txt
@@ -23,7 +23,9 @@ set(WITH_GPU "P100" CACHE STRING "Set th
set_property(CACHE WITH_GPU PROPERTY STRINGS K20X K40 K80 P100)
enable_language(Fortran)
-enable_testing() # enables the `make test` target
+if (BUILD_TESTING)
+ enable_testing() # enables the `make test` target
+endif()
if (WITH_C_API AND WITH_EXAMPLES)
enable_language(CXX)

View File

@ -1,8 +1,8 @@
%%C_API%%include/dbcsr.h
include/dbcsr_api.mod
%%C_API%%lib/dbcsr/DBCSRCTargets-%%CMAKE_BUILD_TYPE%%.cmake
%%C_API%%lib/dbcsr/DBCSRCTargets.cmake
lib/dbcsr/DBCSRTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/dbcsr/DBCSRTargets.cmake
lib/cmake/dbcsr/DBCSRConfig.cmake
lib/cmake/dbcsr/DBCSRConfigVersion.cmake
lib/cmake/dbcsr/DBCSRTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/dbcsr/DBCSRTargets.cmake
lib/libdbcsr.so
%%C_API%%lib/libdbcsr_c.so