From 755d2b00ef22423d8edcc249bc2c69645dabab27 Mon Sep 17 00:00:00 2001 From: Lilian Gooch Date: Tue, 9 Apr 2024 17:31:59 -0500 Subject: [PATCH] Add `plf::hive` --- packages/p/plf_hive/xmake.lua | 21 +++++++++++++++++++++ 1 file changed, 21 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 000000000..1e19b2bbf --- /dev/null +++ b/packages/p/plf_hive/xmake.lua @@ -0,0 +1,21 @@ +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("latest", "bebd22a4fa017c09bfa0100603e5c7ff4af6c01e") + + on_install(function (package) + os.cp("plf_hive.h", package:installdir("include")) + end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + #include + void test() { + plf::hive i_hive; + } + ]]}, {configs = {languages = "c++20"}})) + end)