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")
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")
end)
on_install("windows", function (package)
-- handled by winflexbison
end)
on_install("macosx", "linux", "bsd", function (package)
on_install(function (package)
if package:is_plat("windows") then
-- handled by winflexbison
return
end
import("package.tools.autoconf").install(package)
os.rm(package:installdir("share", "doc"))
end)

Loading…
Cancel
Save