diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2022-11-14 18:56:04 -0800 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2022-11-14 19:06:48 -0800 |
| commit | 45840dee36a382ca142d4c44d38ce9bb37b83938 (patch) | |
| tree | 9810a6e1a3c941eaa75d56ee7191ad72f6a490a0 | |
| parent | science/py-qcengine: Update 0.24.1 -> 0.25.0 (diff) | |
devel/test-drive: New port: Simple testing framework
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/test-drive/Makefile | 24 | ||||
| -rw-r--r-- | devel/test-drive/distinfo | 3 | ||||
| -rw-r--r-- | devel/test-drive/files/patch-CMakeLists.txt | 20 | ||||
| -rw-r--r-- | devel/test-drive/pkg-descr | 4 | ||||
| -rw-r--r-- | devel/test-drive/pkg-plist | 10 |
6 files changed, 62 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 202990547011..96e232915cd8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7325,6 +7325,7 @@ SUBDIR += termbox SUBDIR += termcolor SUBDIR += terminality + SUBDIR += test-drive SUBDIR += tevent SUBDIR += tex-kpathsea SUBDIR += tex-libtexlua diff --git a/devel/test-drive/Makefile b/devel/test-drive/Makefile new file mode 100644 index 000000000000..e775831a8687 --- /dev/null +++ b/devel/test-drive/Makefile @@ -0,0 +1,24 @@ +PORTNAME= test-drive +DISTVERSIONPREFIX= v +DISTVERSION= 0.4.0-7 +DISTVERSIONSUFFIX= -g2127360 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Simple testing framework +WWW= https://github.com/fortran-lang/test-drive + +LICENSE= APACHE20 MIT +LICENSE_COMB= dual +LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-Apache +LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT + +USES= cmake:testing fortran +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= fortran-lang + +CMAKE_ON= BUILD_SHARED_LIBS + +.include <bsd.port.mk> diff --git a/devel/test-drive/distinfo b/devel/test-drive/distinfo new file mode 100644 index 000000000000..c3ac077d62ad --- /dev/null +++ b/devel/test-drive/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1668480585 +SHA256 (fortran-lang-test-drive-v0.4.0-7-g2127360_GH0.tar.gz) = 5183bb9874b2a2602b3b360dda5fd3bae53ae59037cbbcc379554980ec744091 +SIZE (fortran-lang-test-drive-v0.4.0-7-g2127360_GH0.tar.gz) = 26664 diff --git a/devel/test-drive/files/patch-CMakeLists.txt b/devel/test-drive/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..d486695252f2 --- /dev/null +++ b/devel/test-drive/files/patch-CMakeLists.txt @@ -0,0 +1,20 @@ +--- CMakeLists.txt.orig 2022-11-15 02:51:11 UTC ++++ CMakeLists.txt +@@ -54,7 +54,7 @@ target_include_directories( + "${PROJECT_NAME}-lib" + PUBLIC + $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include> +- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${module-dir}> ++ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> + ) + target_compile_definitions( + "${PROJECT_NAME}-lib" +@@ -85,7 +85,7 @@ install( + install( + DIRECTORY + "${PROJECT_BINARY_DIR}/include/" +- DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${module-dir}" ++ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" + ) + # Package license files + install( diff --git a/devel/test-drive/pkg-descr b/devel/test-drive/pkg-descr new file mode 100644 index 000000000000..2b5e647f4d16 --- /dev/null +++ b/devel/test-drive/pkg-descr @@ -0,0 +1,4 @@ +This project offers a lightweight, procedural unit testing framework based on +nothing but standard Fortran. Integration with meson, cmake and Fortran package +manager (fpm) is available. Alternatively, the testdrive.F90 source file can be +redistributed in the project's testsuite as well. diff --git a/devel/test-drive/pkg-plist b/devel/test-drive/pkg-plist new file mode 100644 index 000000000000..99831a023aa9 --- /dev/null +++ b/devel/test-drive/pkg-plist @@ -0,0 +1,10 @@ +include/testdrive.mod +include/testdrive_version.mod +lib/cmake/test-drive/test-drive-config-version.cmake +lib/cmake/test-drive/test-drive-config.cmake +lib/cmake/test-drive/test-drive-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/test-drive/test-drive-targets.cmake +lib/libtest-drive.so +lib/libtest-drive.so.0 +lib/libtest-drive.so.0.4.0 +libdata/pkgconfig/test-drive.pc |
