Compare commits

..

2 Commits

Author SHA1 Message Date
star9029 733b0618da add check 7 days ago
star9029 f8a046005f fix pacman 7 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
package:set("kind", "library", {headeronly = true})
end
end)
on_install("@msys", function (package)
import("package.manager.pacman.install_package")("", {pacmna = "bison"})
if is_subhost("msys") and xmake:version():ge("2.9.7") then
package:add("deps", "pacman::bison", {configs = {msystem = "msys"}})
end
end)
on_install("windows", function (package)

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

@ -11,6 +11,14 @@ package("verilator")
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)
if not package:is_precompiled() then
package:add("deps", "flex", {kind = "library"})

Loading…
Cancel
Save