git: 45840dee36a3 - main - devel/test-drive: New port: Simple testing framework
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Nov 2022 03:06:54 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=45840dee36a382ca142d4c44d38ce9bb37b83938 commit 45840dee36a382ca142d4c44d38ce9bb37b83938 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-11-15 02:56:04 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-11-15 03:06:48 +0000 devel/test-drive: New port: Simple testing framework --- devel/Makefile | 1 + devel/test-drive/Makefile | 24 ++++++++++++++++++++++++ devel/test-drive/distinfo | 3 +++ devel/test-drive/files/patch-CMakeLists.txt | 20 ++++++++++++++++++++ devel/test-drive/pkg-descr | 4 ++++ devel/test-drive/pkg-plist | 10 ++++++++++ 6 files changed, 62 insertions(+) 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