New formula for ut-cache

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Kyle Fuller 2010-01-15 16:32:40 +00:00 committed by Adam Vandenberg
parent 156824c7ae
commit 09a18f1f9f
1 changed files with 33 additions and 0 deletions

33
Formula/ut-cache.rb Normal file
View File

@ -0,0 +1,33 @@
require 'formula'
class UtCache <Formula
head 'git://github.com/tanj/Unreal-Tournament-Cache.git'
homepage 'http://github.com/tanj/Unreal-Tournament-Cache'
def patches
DATA
end
def install
system "curl -o getdelim.c http://gist.github.com/raw/278167/26eae93b355d443693c1e8922a328d4a61b4a176/getdelim.c"
ENV['HOME'] = prefix
system "make"
system "mkdir #{prefix}/bin"
system "make install"
end
end
__END__
diff --git a/ut-cache.c b/ut-cache.c
index 70d61ea..9fd1621 100644
--- a/ut-cache.c
+++ b/ut-cache.c
@@ -7,6 +7,7 @@
the proper directory */
#include "ut-cache.h"
+#include "getdelim.c"
void usage(const char *err)
{