Created
October 13, 2012 18:50
-
-
Save nuxlli/3885736 to your computer and use it in GitHub Desktop.
Homebrew formula to install luvit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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