From dbf3dde2928e362563800ec18085d27d34cc90bf Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 23 Aug 2012 15:22:07 -0700 Subject: lolcode: use new dsl --- Library/Formula/lolcode.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/lolcode.rb b/Library/Formula/lolcode.rb index 345b6b52b..4e347ac79 100644 --- a/Library/Formula/lolcode.rb +++ b/Library/Formula/lolcode.rb @@ -3,9 +3,10 @@ require 'formula' class Lolcode < Formula homepage 'http://www.icanhaslolcode.org/' url 'https://github.com/justinmeza/lci/tarball/v0.9.2' - head 'https://github.com/justinmeza/lolcode.git' md5 'bb757687aabea302351cbbce77e01c26' + head 'https://github.com/justinmeza/lolcode.git' + def install inreplace 'Makefile' do |s| s.change_make_var! "prefix", prefix @@ -15,7 +16,7 @@ class Lolcode < Formula # v0.9.2 should use 'make install'. # Later versions can just copy the 'lolcode' bin. - if ARGV.build_head? + if build.head? bin.install 'lolcode' else bin.mkpath -- cgit v1.2.3