From c5abc21048679869e0d7c34fbd4242bb74e1990a Mon Sep 17 00:00:00 2001 From: Conscat Date: Thu, 23 May 2024 11:30:01 -0500 Subject: [PATCH] Add `plf_hive` package (#3752) * Add `plf::hive` * Fix failing tests for C++20. * >.< Forgot header. * Update xmake.lua --------- Co-authored-by: star9029 --- packages/p/plf_hive/xmake.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/p/plf_hive/xmake.lua diff --git a/packages/p/plf_hive/xmake.lua b/packages/p/plf_hive/xmake.lua new file mode 100644 index 00000000000..5dbba3c2633 --- /dev/null +++ b/packages/p/plf_hive/xmake.lua @@ -0,0 +1,16 @@ +package("plf_hive") + set_kind("library", {headeronly = true}) + set_homepage("https://plflib.org/colony.htm") + set_description("plf::hive is a fork of plf::colony to match the current C++ standards proposal.") + set_license("zlib") + + add_urls("https://github.com/mattreecebentley/plf_hive.git") + add_versions("2024.04.21", "7689475b1fa2a95228cf0f44db9c209d7e430748") + + on_install(function (package) + os.cp("plf_hive.h", package:installdir("include")) + end) + + on_test(function (package) + assert(package:has_cxxtypes("plf::hive", {configs = {languages = "c++20"}, includes = "plf_hive.h"})) + end)