pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

doctest: add new package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Wed Mar 13 07:35:21 2024 +0100
Changeset:	c20f353a2bff5712d31d67b45d068c15d22e28e0

Modified Files:
	Makefile
Added Files:
	doctest/DESCR
	doctest/Makefile
	doctest/PLIST
	doctest/buildlink3.mk
	doctest/distinfo
	doctest/patches/patch-examples_executable__dll__and__plugin_CMakeLists.txt

Log Message:
doctest: add new package

For notcurses.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c20f353a2bff5712d31d67b45d068c15d22e28e0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                                |  1 +
 doctest/DESCR                                           |  6 ++++++
 doctest/Makefile                                        | 17 +++++++++++++++++
 doctest/PLIST                                           | 11 +++++++++++
 doctest/buildlink3.mk                                   | 14 ++++++++++++++
 doctest/distinfo                                        |  6 ++++++
 ...examples_executable__dll__and__plugin_CMakeLists.txt | 16 ++++++++++++++++
 7 files changed, 71 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 9ae805f7b9..92f158bcaa 100644
--- a/Makefile
+++ b/Makefile
@@ -695,6 +695,7 @@ SUBDIR+=	docker-cli
 SUBDIR+=	docker-compose
 SUBDIR+=	docker-compose-cli
 SUBDIR+=	docker-machine
+SUBDIR+=	doctest
 SUBDIR+=	docviewer
 SUBDIR+=	dokuwiki
 SUBDIR+=	dolfin
diff --git a/doctest/DESCR b/doctest/DESCR
new file mode 100644
index 0000000000..9be3b0c1c8
--- /dev/null
+++ b/doctest/DESCR
@@ -0,0 +1,6 @@
+doctest is a new C++ testing framework but is by far the fastest
+both in compile times (by orders of magnitude) and runtime compared
+to other feature-rich alternatives. It brings the ability of compiled
+languages such as D / Rust / Nim to have tests written directly in
+the production code thanks to a fast, transparent and flexible test
+runner with a clean interface.
diff --git a/doctest/Makefile b/doctest/Makefile
new file mode 100644
index 0000000000..29cbdebfbf
--- /dev/null
+++ b/doctest/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+DISTNAME=	doctest-2.4.11
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=doctest/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/doctest/doctest/
+COMMENT=	Fastest feature-rich C++11/14/17/20/23 single-header testing framework
+LICENSE=	mit
+
+USE_LANGUAGES=	c++
+
+.include "../../devel/cmake/build.mk"
+#.include "../../devel/meson/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/doctest/PLIST b/doctest/PLIST
new file mode 100644
index 0000000000..8d2c680091
--- /dev/null
+++ b/doctest/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+include/doctest/doctest.h
+include/doctest/extensions/doctest_mpi.h
+include/doctest/extensions/doctest_util.h
+include/doctest/extensions/mpi_reporter.h
+include/doctest/extensions/mpi_sub_comm.h
+lib/cmake/doctest/doctest.cmake
+lib/cmake/doctest/doctestAddTests.cmake
+lib/cmake/doctest/doctestConfig.cmake
+lib/cmake/doctest/doctestConfigVersion.cmake
+lib/cmake/doctest/doctestTargets.cmake
diff --git a/doctest/buildlink3.mk b/doctest/buildlink3.mk
new file mode 100644
index 0000000000..4c4e096d5d
--- /dev/null
+++ b/doctest/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	doctest
+
+.if !defined(DOCTEST_BUILDLINK3_MK)
+DOCTEST_BUILDLINK3_MK:=
+
+BUILDLINK_DEPMETHOD.doctest?=	build
+
+BUILDLINK_API_DEPENDS.doctest+=	doctest>=2.4.11
+BUILDLINK_PKGSRCDIR.doctest?=	../../wip/doctest
+.endif	# DOCTEST_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-doctest
diff --git a/doctest/distinfo b/doctest/distinfo
new file mode 100644
index 0000000000..cb53c3c6c8
--- /dev/null
+++ b/doctest/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (doctest-2.4.11.tar.gz) = bd9ec768e3a70c479c9b9075b68f044f3292066d708aac38eecf9ef1270f321c
+SHA512 (doctest-2.4.11.tar.gz) = 04425686057079d3f1a6f767c487f1953050f553dbff9fc42b42dde1358fe26e46bf6219881bbfce625f15cb9c229474d82688120eb2cb2b1d8138db0cc91b3c
+Size (doctest-2.4.11.tar.gz) = 2183312 bytes
+SHA1 (patch-examples_executable__dll__and__plugin_CMakeLists.txt) = d708e0d5ef320682d99b12cf0366722691d83243
diff --git a/doctest/patches/patch-examples_executable__dll__and__plugin_CMakeLists.txt b/doctest/patches/patch-examples_executable__dll__and__plugin_CMakeLists.txt
new file mode 100644
index 0000000000..004a1fa306
--- /dev/null
+++ b/doctest/patches/patch-examples_executable__dll__and__plugin_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Use cmake variable for libdl.
+https://github.com/doctest/doctest/pull/848
+
+--- examples/executable_dll_and_plugin/CMakeLists.txt.orig	2023-03-15 12:35:44.000000000 +0000
++++ examples/executable_dll_and_plugin/CMakeLists.txt
+@@ -12,7 +12,7 @@ target_link_libraries(executable_dll_and
+ target_link_libraries(executable_dll_and_plugin implementation)
+ 
+ if(NOT WIN32)
+-    target_link_libraries(executable_dll_and_plugin dl)
++    target_link_libraries(executable_dll_and_plugin ${CMAKE_DL_LIBS})
+ endif()
+ 
+ # have the executable depend on the plugin so it gets built as well when building/starting only the executable


Home | Main Index | Thread Index | Old Index