Skip to content

Instantly share code, notes, and snippets.

@creationix
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save creationix/61222346fe849a0ecfe5 to your computer and use it in GitHub Desktop.
Save creationix/61222346fe849a0ecfe5 to your computer and use it in GitHub Desktop.
Homebrew
class Lit < Formula
desc "Toolkit for developing, sharing, and running luvit/lua programs and libraries."
homepage "https://github.com/luvit/lit"
url "https://lit.luvit.io/packages/luvit/lit/v2.2.4.zip"
sha256 "73216738ff9d25f14c53633c4b7786bd007a95c6e2aa536cafc846744cc0950f"
depends_on "luvi" => :build
def install
system "luvi", buildpath, "--", "make"
bin.install "lit"
end
test do
system "#{BIN}/lit"
end
end
class Luvi < Formula
desc "A project in-between luv and luvit, lua packages."
homepage "https://github.com/luvit/luvi"
url "https://github.com/luvit/luvi/releases/download/v2.1.8/luvi-src-v2.1.8.tar.gz"
sha256 "1ef449c6a76bcf7a03c8bbcdd5423b0366d63b10c52fd463ca2ba8aaf9248781"
depends_on "cmake" => :build
def install
system "make", "regular-asm"
system "make"
bin.install "build/luvi"
end
test do
system "make", "test"
end
end
class Luvit < Formula
desc "Asynchronous I/O for Lua (node.js style powered by luajit and libuv)"
homepage "https://luvit.io/"
url "https://lit.luvit.io/packages/luvit/luvit/v2.4.2.zip"
sha256 "f81cc4de2324c750aa65bd8fff588f9cd21dbeba731288dbe49a7006380c8aab"
depends_on "lit" => :build
def install
system "lit", "make", buildpath
bin.install "luvit"
end
test do
system "#{BIN}/luvit", "-v"
end
end
@creationix
Copy link
Author

Fixed and updated for luvi 0.7.1 and lit 0.10.0.

@creationix
Copy link
Author

Updated to luvi 2.1.7 and lit 2.1.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment