49 lines
1.9 KiB
Ruby
49 lines
1.9 KiB
Ruby
class Eiffelstudio < Formula
|
|
desc "Development environment for the Eiffel language"
|
|
homepage "https://www.eiffel.com"
|
|
url "https://ftp.eiffel.com/pub/download/17.01/eiffelstudio-17.01.9.9700.tar"
|
|
sha256 "610344e8e4bbb4b8ccedc22e57b6ffa6b8fd7b9ffee05edad15fc1aa2b1259a1"
|
|
revision 1
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "f491bb0dca20ea532084e78b82319111cfc5d981a10edf53ff20109d75772b79" => :high_sierra
|
|
sha256 "27e2c1b87f4b191003c8bc4b8fc205495efe22207634967555cc87b64a39cf39" => :sierra
|
|
sha256 "989ed927f5438496827a9d1a1e068773b4f5f543d6d6f0374b1520449fa3aafb" => :el_capitan
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gtk+"
|
|
|
|
def ise_platform
|
|
if Hardware::CPU.ppc?
|
|
"macosx-ppc"
|
|
elsif MacOS.prefer_64_bit?
|
|
"macosx-x86-64"
|
|
else
|
|
"macosx-x86"
|
|
end
|
|
end
|
|
|
|
def install
|
|
system "./compile_exes", ise_platform
|
|
system "./make_images", ise_platform
|
|
prefix.install Dir["Eiffel_17.01/*"]
|
|
bin.mkpath
|
|
env = { :ISE_EIFFEL => prefix, :ISE_PLATFORM => ise_platform }
|
|
(bin/"ec").write_env_script(prefix/"studio/spec/#{ise_platform}/bin/ec", env)
|
|
(bin/"ecb").write_env_script(prefix/"studio/spec/#{ise_platform}/bin/ecb", env)
|
|
(bin/"estudio").write_env_script(prefix/"studio/spec/#{ise_platform}/bin/estudio", env)
|
|
(bin/"finish_freezing").write_env_script(prefix/"studio/spec/#{ise_platform}/bin/finish_freezing", env)
|
|
(bin/"compile_all").write_env_script(prefix/"tools/spec/#{ise_platform}/bin/compile_all", env)
|
|
(bin/"iron").write_env_script(prefix/"tools/spec/#{ise_platform}/bin/iron", env)
|
|
(bin/"syntax_updater").write_env_script(prefix/"tools/spec/#{ise_platform}/bin/syntax_updater", env)
|
|
(bin/"vision2_demo").write_env_script(prefix/"vision2_demo/spec/#{ise_platform}/bin/vision2_demo", env)
|
|
end
|
|
|
|
test do
|
|
# More extensive testing requires the full test suite
|
|
# which is not part of this package.
|
|
system prefix/"studio/spec/#{ise_platform}/bin/ec", "-version"
|
|
end
|
|
end
|