Skip to content

Instantly share code, notes, and snippets.

@nuxlli
Created October 13, 2012 18:50
Show Gist options
  • Save nuxlli/3885736 to your computer and use it in GitHub Desktop.
Save nuxlli/3885736 to your computer and use it in GitHub Desktop.
Homebrew formula to install luvit
require 'formula'
class Luvit < Formula
homepage ''
url 'https://github.com/luvit/luvit-releases/raw/master/0.5.0/luvit-0.5.0.tar.gz'
sha1 'a448cd5ed8299d9f6f89e0aa88e1bdbf3e000a8d'
def install
ENV.j1 # if your formula's build system can't parallelize
ENV["PREFIX"] = prefix
system "./configure", "--prefix=#{prefix}", "--arch=x64"
system "make"
system "make install"
end
def test
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test luvit`.
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment