Skip to content

Instantly share code, notes, and snippets.

@LnL7
Forked from nuxlli/luvit.rb
Last active December 28, 2017 12:36
Show Gist options
  • Save LnL7/5607692 to your computer and use it in GitHub Desktop.
Save LnL7/5607692 to your computer and use it in GitHub Desktop.
require 'formula'
class Luvit < Formula
homepage 'http://luvit.io'
url 'http://luvit.io/dist/latest/luvit-0.6.1.tar.gz'
sha1 'f5e49a33e0e32d8e75d5cdd843d54f213f6e508e'
head 'https://github.com/luvit/luvit.git'
def install
ENV.j1 # if your formula's build system can't parallelize
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 "make", "test"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment