aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Dippery2010-10-26 17:39:16 -0400
committerAdam Vandenberg2010-10-27 11:49:00 -0700
commite3661b8a46da7ed7edcf6123db786f3e4c7fcf57 (patch)
tree2c8f4fe3ed90b7024e585c2eb956f843979b3436
parenta18c7560eee94113212bc52d5e7a67850d7dc286 (diff)
downloadhomebrew-e3661b8a46da7ed7edcf6123db786f3e4c7fcf57.tar.bz2
lolcode: Add direct download for v0.9.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/lolcode.rb37
1 files changed, 36 insertions, 1 deletions
diff --git a/Library/Formula/lolcode.rb b/Library/Formula/lolcode.rb
index abd1add25..bb12ac012 100644
--- a/Library/Formula/lolcode.rb
+++ b/Library/Formula/lolcode.rb
@@ -2,10 +2,45 @@ require 'formula'
class Lolcode <Formula
homepage 'http://www.icanhaslolcode.org/'
+ url 'http://github.com/justinmeza/lci/tarball/v0.9.2'
head 'git://github.com/justinmeza/lolcode.git'
+ md5 '04493a3e491723d2928eb37cd90bbf54'
+
+ # Makefile 'lci' target depends on the compiler flag '-lm'
+ def patches
+ DATA
+ end unless ARGV.build_head?
def install
+ inreplace 'Makefile' do |s|
+ s.change_make_var! "prefix", prefix
+ end
+
system "make"
- bin.install 'lolcode'
+
+ # 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
end
end
+
+
+__END__
+diff --git a/Makefile b/Makefile
+index ff3df8c..5fdedb5 100644
+--- a/Makefile
++++ b/Makefile
+@@ -11,7 +11,7 @@ testdir = ./test
+
+ all: $(TARGET)
+
+-$(TARGET): $(OBJS) $(LIBS)
++$(TARGET): $(OBJS)
+ $(CC) $(CPPFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
+
+ pedantic: $(OBJS) $(LIBS)