Skip to content

Commit

Permalink
Add plf_hive package (#3752)
Browse files Browse the repository at this point in the history
* Add `plf::hive`

* Fix failing tests for C++20.

* >.< Forgot <version> header.

* Update xmake.lua

---------

Co-authored-by: star9029 <[email protected]>
  • Loading branch information
Cons-Cat and star-hengxing committed May 23, 2024
1 parent 8b9e339 commit c5abc21
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/p/plf_hive/xmake.lua
Original file line number Diff line number Diff line change
@@ -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<int>", {configs = {languages = "c++20"}, includes = "plf_hive.h"}))
end)

0 comments on commit c5abc21

Please sign in to comment.