Browse Source

update json-schema-validator to 2.3.0 (#3453)

* update json-schema-validator to 2.3.0

* try again

* revert ci

* add

* Update xmake.lua

---------

Co-authored-by: ruki <[email protected]>
c8ef 1 year ago
parent
commit
193a40a672
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/j/json-schema-validator/xmake.lua

+ 5 - 0
packages/j/json-schema-validator/xmake.lua

@@ -5,6 +5,7 @@ package("json-schema-validator")
     add_urls("https://github.com/pboettch/json-schema-validator/archive/refs/tags/$(version).tar.gz",
     add_urls("https://github.com/pboettch/json-schema-validator/archive/refs/tags/$(version).tar.gz",
              "https://github.com/pboettch/json-schema-validator.git")
              "https://github.com/pboettch/json-schema-validator.git")
     add_versions("2.1.0", "83f61d8112f485e0d3f1e72d51610ba3924b179926a8376aef3c038770faf202")
     add_versions("2.1.0", "83f61d8112f485e0d3f1e72d51610ba3924b179926a8376aef3c038770faf202")
+    add_versions("2.3.0", "2c00b50023c7d557cdaa71c0777f5bcff996c4efd7a539e58beaa4219fa2a5e1")
 
 
     add_deps("cmake", "nlohmann_json")
     add_deps("cmake", "nlohmann_json")
 
 
@@ -12,6 +13,10 @@ package("json-schema-validator")
         add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
         add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
     end
     end
 
 
+    if is_host("windows") then
+        set_policy("platform.longpaths", true)
+    end
+
     on_install("linux", "bsd", "windows", "macosx", "iphoneos", "mingw", "cross", function (package)
     on_install("linux", "bsd", "windows", "macosx", "iphoneos", "mingw", "cross", function (package)
         local configs = {}
         local configs = {}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))