aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/polipo.rb
diff options
context:
space:
mode:
authorhryk2010-08-17 15:09:20 +0900
committerAdam Vandenberg2010-08-17 10:05:47 -0700
commitfc0f5e2a82349fcab2294940f9805fdfd942a3a8 (patch)
tree4381471d973df49e8ba4d2a93bebfa66c138200c /Library/Formula/polipo.rb
parent60c7ef208c4ec8c99883305aae866c1abf6e2b9b (diff)
downloadhomebrew-fc0f5e2a82349fcab2294940f9805fdfd942a3a8.tar.bz2
Polipo is a small and fast caching web proxy.
Fixed CACHE_ROOT of polipo. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/polipo.rb')
-rw-r--r--Library/Formula/polipo.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/polipo.rb b/Library/Formula/polipo.rb
new file mode 100644
index 000000000..0727a305a
--- /dev/null
+++ b/Library/Formula/polipo.rb
@@ -0,0 +1,15 @@
+require 'formula'
+
+class Polipo <Formula
+ url 'http://freehaven.net/~chrisd/polipo/polipo-1.0.4.tar.gz'
+ homepage 'http://www.pps.jussieu.fr/~jch/software/polipo/'
+ head 'git://git.torproject.org/git/polipo'
+ md5 'defdce7f8002ca68705b6c2c36c4d096'
+
+ def install
+ cache_root = (var + "cache/polipo").mkpath
+ make_opts = "PREFIX=#{prefix} LOCAL_ROOT=#{share}/polipo/www DISK_CACHE_ROOT=#{cache_root} MANDIR=#{man}"
+ system "make all #{make_opts}"
+ system "make install #{make_opts}"
+ end
+end