2010-04-04 19:17:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lolcode < Formula
|
2010-04-04 19:17:49 +00:00
|
|
|
homepage 'http://www.icanhaslolcode.org/'
|
2010-11-10 18:16:28 +00:00
|
|
|
url 'https://github.com/justinmeza/lci/tarball/v0.9.2'
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/justinmeza/lolcode.git'
|
2011-03-21 02:12:05 +00:00
|
|
|
md5 'bb757687aabea302351cbbce77e01c26'
|
2010-04-04 19:17:49 +00:00
|
|
|
|
|
|
|
def install
|
2010-10-26 21:39:16 +00:00
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
s.change_make_var! "prefix", prefix
|
|
|
|
end
|
|
|
|
|
2010-04-04 19:17:49 +00:00
|
|
|
system "make"
|
2010-10-26 21:39:16 +00:00
|
|
|
|
|
|
|
# v0.9.2 should use 'make install'.
|
|
|
|
# Later versions can just copy the 'lolcode' bin.
|
|
|
|
if ARGV.build_head?
|
|
|
|
bin.install 'lolcode'
|
|
|
|
else
|
|
|
|
bin.mkpath
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-04-04 19:17:49 +00:00
|
|
|
end
|
|
|
|
end
|