2010-01-15 16:32:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class UtCache < Formula
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/tanj/Unreal-Tournament-Cache.git'
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/tanj/Unreal-Tournament-Cache'
|
2010-01-15 16:32:40 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2010-11-10 18:16:28 +00:00
|
|
|
system "curl -o getdelim.c https://gist.github.com/raw/278167/26eae93b355d443693c1e8922a328d4a61b4a176/getdelim.c"
|
2010-08-08 17:20:15 +00:00
|
|
|
bin.mkpath
|
2010-01-15 16:32:40 +00:00
|
|
|
ENV['HOME'] = prefix
|
|
|
|
system "make"
|
|
|
|
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)
|
|
|
|
{
|