2013-05-19 14:22:59 +00:00
|
|
|
class Luvit < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Asynchronous I/O for Lua"
|
2015-03-06 22:53:43 +00:00
|
|
|
homepage "https://luvit.io"
|
|
|
|
url "https://luvit.io/dist/latest/luvit-0.8.2.tar.gz"
|
|
|
|
sha256 "c2639348d1716c38ac3cd66ea4c4ff1c8a72f4610dbd6e50cf31426d3956c5ff"
|
|
|
|
head "https://github.com/luvit/luvit.git"
|
|
|
|
revision 1
|
2013-05-19 14:22:59 +00:00
|
|
|
|
2015-03-07 00:17:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "3c7250314f67d320d8bc36f14e8d055860a2098bf5528b53eb58ff7d93244881" => :yosemite
|
|
|
|
sha256 "1f4616aa1be7802088900bcec2f284e8a85a4b82ee6fc9873a4c20d30ac6ac47" => :mavericks
|
|
|
|
sha256 "ef23e4e0cf252074738d85b1b2b2e02fd58e3a5239e00362d6f1e4dc2c58862c" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-03-06 22:53:43 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "luajit"
|
|
|
|
depends_on "openssl"
|
2013-11-20 09:48:53 +00:00
|
|
|
|
2013-05-19 14:22:59 +00:00
|
|
|
def install
|
2015-03-06 22:53:43 +00:00
|
|
|
ENV["USE_SYSTEM_SSL"] = "1"
|
|
|
|
ENV["USE_SYSTEM_LUAJIT"] = "1"
|
|
|
|
ENV["PREFIX"] = prefix
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"luvit", "--cflags", "--libs"
|
2013-05-19 14:22:59 +00:00
|
|
|
end
|
|
|
|
end
|