homebrew-core/Formula/lolcode.rb
2012-08-23 15:22:07 -07:00

26 lines
567 B
Ruby

require 'formula'
class Lolcode < Formula
homepage 'http://www.icanhaslolcode.org/'
url 'https://github.com/justinmeza/lci/tarball/v0.9.2'
md5 'bb757687aabea302351cbbce77e01c26'
head 'https://github.com/justinmeza/lolcode.git'
def install
inreplace 'Makefile' do |s|
s.change_make_var! "prefix", prefix
end
system "make"
# v0.9.2 should use 'make install'.
# Later versions can just copy the 'lolcode' bin.
if build.head?
bin.install 'lolcode'
else
bin.mkpath
system "make install"
end
end
end