2015-05-15 10:57:38 +00:00
|
|
|
class Ponyc < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Object-oriented, actor-model, capabilities-secure programming language"
|
2015-05-15 10:57:38 +00:00
|
|
|
homepage "http://www.ponylang.org"
|
2015-06-15 21:13:54 +00:00
|
|
|
url "http://www.ponylang.org/releases/source/ponyc-0.1.6.tar.bz2"
|
|
|
|
sha256 "28592dd60320e1a587d256e08e7053e42975f8dc3dd5fb5eb0fd57baae5dc01e"
|
2015-05-15 10:57:38 +00:00
|
|
|
|
2015-05-15 11:47:05 +00:00
|
|
|
bottle do
|
2015-06-16 07:57:08 +00:00
|
|
|
sha256 "c5d4837fdcdcb8abff9faef03002b64ea589e53cb10cfcd703eee505483f5fed" => :yosemite
|
|
|
|
sha256 "9b96cf934f39d9f61170704ba1165b718b868bd56bc089a343970a9ef0ca8d3d" => :mavericks
|
|
|
|
sha256 "49e11ccb179955ad14703e5ce2c965b28519d2937b82b4b93379c8356aac4925" => :mountain_lion
|
2015-05-15 11:47:05 +00:00
|
|
|
end
|
|
|
|
|
2015-05-19 01:28:41 +00:00
|
|
|
depends_on "llvm" => "with-rtti"
|
2015-05-15 10:57:38 +00:00
|
|
|
needs :cxx11
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.cxx11
|
2015-05-19 01:28:41 +00:00
|
|
|
system "make", "install", "config=release", "destdir=#{prefix}"
|
2015-05-15 10:57:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ponyc", "-rexpr", "#{prefix}/packages/builtin"
|
|
|
|
end
|
|
|
|
end
|