homebrew-core/Formula/luvit.rb
2018-10-17 02:36:00 +08:00

30 lines
900 B
Ruby

class Luvit < Formula
desc "Asynchronous I/O for Lua"
homepage "https://luvit.io"
url "https://github.com/luvit/luvit/archive/2.15.0.tar.gz"
sha256 "1a4a57d7d01f86e0c9cee3bcf113e2f7c2a666955d000fce8a1c40b8b83093c3"
head "https://github.com/luvit/luvit.git"
bottle do
cellar :any_skip_relocation
sha256 "a7a03a64fe8644ad9a0f6ae5b3695b541a34c8965e27d25e4d502052c6e60a5d" => :mojave
sha256 "c3e8ffa00996e69f69959a6d245658e26f7f1347644fbd4c560495fff13b1e35" => :high_sierra
sha256 "c3e8ffa00996e69f69959a6d245658e26f7f1347644fbd4c560495fff13b1e35" => :sierra
end
depends_on "pkg-config" => :build
depends_on "luajit"
depends_on "openssl"
def install
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"
end
end