Compare commits

...

2 Commits

Author SHA1 Message Date
star9029 733b0618da add check 3 days ago
star9029 f8a046005f fix pacman 3 days ago
  1. 6
      packages/b/bison/xmake.lua
  2. 5
      packages/f/flex/xmake.lua
  3. 8
      packages/v/verilator/xmake.lua

@ -33,10 +33,10 @@ package("bison")
if package:is_library() then if package:is_library() then
package:set("kind", "library", {headeronly = true}) package:set("kind", "library", {headeronly = true})
end end
end)
on_install("@msys", function (package) if is_subhost("msys") and xmake:version():ge("2.9.7") then
import("package.manager.pacman.install_package")("", {pacmna = "bison"}) package:add("deps", "pacman::bison", {configs = {msystem = "msys"}})
end
end) end)
on_install("windows", function (package) on_install("windows", function (package)

@ -37,10 +37,13 @@ package("flex")
if package:is_library() then if package:is_library() then
package:set("kind", "library", {headeronly = true}) package:set("kind", "library", {headeronly = true})
end end
if is_subhost("msys") and xmake:version():ge("2.9.7") then
package:add("deps", "pacman::flex", {configs = {msystem = "msys"}})
end
end) end)
on_install("@msys", function (package) on_install("@msys", function (package)
import("package.manager.pacman.install_package")("", {pacmna = "flex"})
-- https://github.com/msys2/MSYS2-packages/issues/1911 -- https://github.com/msys2/MSYS2-packages/issues/1911
if package:is_library() then if package:is_library() then
local msys_dir = os.getenv("MINGW_PREFIX") local msys_dir = os.getenv("MINGW_PREFIX")

@ -11,6 +11,14 @@ package("verilator")
add_deps("cmake") add_deps("cmake")
if on_check then
on_check(function (package)
if is_subhost("msys") and xmake:version():lt("2.9.7") then
raise("package(verilator) requires xmake >= 2.9.7 on msys")
end
end)
end
on_load(function (package) on_load(function (package)
if not package:is_precompiled() then if not package:is_precompiled() then
package:add("deps", "flex", {kind = "library"}) package:add("deps", "flex", {kind = "library"})

Loading…
Cancel
Save