eiffelstudio: Restore ISE_PLATFORM env var
Per Eiffel Studio documentation, this environment variable should be set. Without it, running `brew test` throws a warning message. Also enhanced the formula test to run from bin/ instead of prefix/ Fixes #37077.
This commit is contained in:
parent
6298226c84
commit
aaf8c10b09
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class Eiffelstudio < Formula
|
||||||
system "./make_images", "macosx-x86-64"
|
system "./make_images", "macosx-x86-64"
|
||||||
prefix.install Dir["Eiffel_17.01/*"]
|
prefix.install Dir["Eiffel_17.01/*"]
|
||||||
bin.mkpath
|
bin.mkpath
|
||||||
env = { :ISE_EIFFEL => prefix, :"macosx-x86-64" => "macosx-x86-64" }
|
env = { :ISE_EIFFEL => prefix, :ISE_PLATFORM => "macosx-x86-64" }
|
||||||
(bin/"ec").write_env_script(prefix/"studio/spec/macosx-x86-64/bin/ec", env)
|
(bin/"ec").write_env_script(prefix/"studio/spec/macosx-x86-64/bin/ec", env)
|
||||||
(bin/"ecb").write_env_script(prefix/"studio/spec/macosx-x86-64/bin/ecb", env)
|
(bin/"ecb").write_env_script(prefix/"studio/spec/macosx-x86-64/bin/ecb", env)
|
||||||
(bin/"estudio").write_env_script(prefix/"studio/spec/macosx-x86-64/bin/estudio", env)
|
(bin/"estudio").write_env_script(prefix/"studio/spec/macosx-x86-64/bin/estudio", env)
|
||||||
|
@ -35,6 +35,6 @@ class Eiffelstudio < Formula
|
||||||
test do
|
test do
|
||||||
# More extensive testing requires the full test suite
|
# More extensive testing requires the full test suite
|
||||||
# which is not part of this package.
|
# which is not part of this package.
|
||||||
system prefix/"studio/spec/macosx-x86-64/bin/ec", "-version"
|
system bin/"ec", "-version"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue