Permalink
Browse files

Add ut-cache from Homebrew-core

  • Loading branch information...
1 parent 72367a9 commit f470fc6fbf49c29b936d4b7af81a591400c00bad @adamv adamv committed Feb 10, 2012
Showing with 32 additions and 0 deletions.
  1. +32 −0 head-only/ut-cache.rb
View
@@ -0,0 +1,32 @@
+require 'formula'
+
+class UtCache < Formula
+ head 'https://github.com/tanj/Unreal-Tournament-Cache.git'
+ homepage 'https://github.com/tanj/Unreal-Tournament-Cache'
+
+ def patches
+ DATA
+ end
+
+ def install
+ system "curl -o getdelim.c https://gist.github.com/raw/278167/26eae93b355d443693c1e8922a328d4a61b4a176/getdelim.c"
+ bin.mkpath
+ 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)
+ {

0 comments on commit f470fc6

Please sign in to comment.