From aaf8c10b09a9d6c002c9920c6e0f0322bbd198e6 Mon Sep 17 00:00:00 2001 From: Jon Hermansen Date: Mon, 18 Feb 2019 16:37:19 -0500 Subject: [PATCH] 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. --- Formula/eiffelstudio.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/eiffelstudio.rb b/Formula/eiffelstudio.rb index 22d683b54d..5a44d74cdd 100644 --- a/Formula/eiffelstudio.rb +++ b/Formula/eiffelstudio.rb @@ -21,7 +21,7 @@ class Eiffelstudio < Formula system "./make_images", "macosx-x86-64" prefix.install Dir["Eiffel_17.01/*"] 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/"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) @@ -35,6 +35,6 @@ class Eiffelstudio < Formula test do # More extensive testing requires the full test suite # which is not part of this package. - system prefix/"studio/spec/macosx-x86-64/bin/ec", "-version" + system bin/"ec", "-version" end end