Skip to content

Instantly share code, notes, and snippets.

@tzudot
Forked from creationix/lit.rb
Last active August 29, 2015 14:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzudot/dd956165cca423d57d71 to your computer and use it in GitHub Desktop.
Save tzudot/dd956165cca423d57d71 to your computer and use it in GitHub Desktop.
Homebrew
require "formula"
class Lit < Formula
homepage "https://github.com/luvit/lit"
url "https://lit.luvit.io/packages/luvit/lit/v2.1.11.zip"
sha1 "be0904957a4867bf1284d0ebd7b04e6ec521b85a"
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.7/luvi-src.tar.gz"
sha256 "8a4bd488a00747e01bb3ab3adcc2ceb938035549bf1b9ecea80b177504002e7d"
depends_on "cmake" => :build
def install
system "make", "regular-asm"
system "make"
bin.install "build/luvi"
end
test do
system "make", "test"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment