semver: add package (#2489)

pull/2490/head
star9029 1 year ago committed by GitHub
parent 6fbaf9e181
commit 02b66dfa20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      packages/s/semver/xmake.lua

@ -0,0 +1,20 @@
package("semver")
set_homepage("https://github.com/Neargye/semver")
set_description("Semantic Versioning for modern C++")
set_license("MIT")
add_urls("https://github.com/Neargye/semver.git")
add_versions("2023.05.27", "492ba1beb1da6a4f150b8ca45985290f152396ed")
on_install(function (package)
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <semver.hpp>
void test() {
constexpr semver::version v1{1, 4, 3};
}
]]}, {configs = {languages = "c++17"}}))
end)
Loading…
Cancel
Save