2014-12-21 11:18:39 +00:00
|
|
|
class Chapel < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Emerging programming language designed for parallel computing"
|
2014-12-21 11:18:39 +00:00
|
|
|
homepage "http://chapel.cray.com/"
|
2016-06-15 20:56:38 +00:00
|
|
|
url "https://github.com/chapel-lang/chapel/releases/download/1.13.1/chapel-1.13.1.tar.gz"
|
|
|
|
sha256 "9745c313548df610da2a6a3e920526baba92f11737c38fbeffd4de7bef5c011f"
|
2014-12-21 11:18:39 +00:00
|
|
|
head "https://github.com/chapel-lang/chapel.git"
|
|
|
|
|
2015-01-07 18:26:38 +00:00
|
|
|
bottle do
|
2016-06-15 21:34:41 +00:00
|
|
|
sha256 "72d30fe0fb3c325bb6792dcc3cf52eecc9ce8d61d5d9664e4b48c0e2c17277d2" => :el_capitan
|
|
|
|
sha256 "8d202021042a3a738547a238051e8435a48b03d6f73b715dd28abb24ce736f35" => :yosemite
|
|
|
|
sha256 "fcd061dd0d1f4ebd5fd17d805f5c573dd12ead6fb770e927b932204cf9057fcf" => :mavericks
|
2015-01-07 18:26:38 +00:00
|
|
|
end
|
|
|
|
|
2014-12-21 11:18:39 +00:00
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
# Chapel uses this ENV to work out where to install.
|
|
|
|
ENV["CHPL_HOME"] = libexec
|
|
|
|
|
|
|
|
# Must be built from within CHPL_HOME to prevent build bugs.
|
2016-06-16 15:55:39 +00:00
|
|
|
# https://github.com/Homebrew/legacy-homebrew/pull/35166
|
2014-12-21 11:18:39 +00:00
|
|
|
cd libexec do
|
2015-04-02 05:22:57 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "chpldoc"
|
2014-12-21 11:18:39 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
prefix.install_metafiles
|
|
|
|
|
2015-04-02 05:22:57 +00:00
|
|
|
# Install chpl and other binaries (e.g. chpldoc) into bin/ as exec scripts.
|
|
|
|
bin.install Dir[libexec/"bin/darwin/*"]
|
|
|
|
bin.env_script_all_files libexec/"bin/darwin/", :CHPL_HOME => libexec
|
2014-12-21 11:18:39 +00:00
|
|
|
man1.install_symlink Dir["#{libexec}/man/man1/*.1"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-04-07 20:17:59 +00:00
|
|
|
ENV["CHPL_HOME"] = libexec
|
|
|
|
cd libexec do
|
|
|
|
system "make", "check"
|
|
|
|
end
|
2014-12-21 11:18:39 +00:00
|
|
|
end
|
|
|
|
end
|