bison: add more platforms. (#1047)

pull/1050/head
Chen Yufei 3 years ago committed by GitHub
parent 4359f03bcc
commit 8fd5b5d2cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      packages/b/bison/xmake.lua

@ -19,15 +19,19 @@ package("bison")
add_deps("m4") add_deps("m4")
end end
on_load("macosx", "linux", "bsd", function (package) on_load(function (package)
if package:is_plat("windows") then
-- handled by winflexbison
return
end
package:addenv("PATH", "bin") package:addenv("PATH", "bin")
end) end)
on_install("windows", function (package) on_install(function (package)
-- handled by winflexbison if package:is_plat("windows") then
end) -- handled by winflexbison
return
on_install("macosx", "linux", "bsd", function (package) end
import("package.tools.autoconf").install(package) import("package.tools.autoconf").install(package)
os.rm(package:installdir("share", "doc")) os.rm(package:installdir("share", "doc"))
end) end)

Loading…
Cancel
Save