2016-01-11 12:57:26 +00:00
|
|
|
class Eiffelstudio < Formula
|
2016-02-10 23:12:04 +00:00
|
|
|
desc "Development environment for the Eiffel language"
|
2016-01-11 12:57:26 +00:00
|
|
|
homepage "https://www.eiffel.com"
|
2016-07-09 10:28:23 +00:00
|
|
|
url "https://ftp.eiffel.com/pub/download/16.05/eiffelstudio-16.05.tar"
|
|
|
|
sha256 "7154ee73671b7b29892d7b6ac5ef3819dc2aec95c262e95e9482c6f35a897e25"
|
2016-01-11 12:57:26 +00:00
|
|
|
|
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-07-09 11:51:34 +00:00
|
|
|
sha256 "4231e0735d8a2db64e084e84bc9fe9eab31fd6cdc144f6519f07e5db87812dc8" => :el_capitan
|
|
|
|
sha256 "ee15c05e2f4410e479e338b7fb263fdccb03e55cf3dbceb3724140ea872cd058" => :yosemite
|
|
|
|
sha256 "2eda67f3856bb63209d0ca8292d47feea8fd3077fbfc345e7fc5bd03599d833e" => :mavericks
|
2016-01-11 12:57:26 +00:00
|
|
|
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
|
2016-07-09 10:28:23 +00:00
|
|
|
prefix.install Dir["Eiffel_16.05/*"]
|
2016-01-11 12:57:26 +00:00
|
|
|
bin.mkpath
|
|
|
|
env = { :ISE_EIFFEL => prefix, :ISE_PLATFORM => ise_platform }
|
2016-07-26 18:21:14 +00:00
|
|
|
(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)
|
2016-01-11 12:57:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
# More extensive testing requires the full test suite
|
|
|
|
# which is not part of this package.
|
2016-07-26 18:21:14 +00:00
|
|
|
system prefix/"studio/spec/#{ise_platform}/bin/ec", "-version"
|
2016-01-11 12:57:26 +00:00
|
|
|
end
|
|
|
|
end
|