2010-08-17 06:09:20 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Polipo < Formula
|
2011-03-24 11:44:05 +00:00
|
|
|
url 'http://freehaven.net/~chrisd/polipo/polipo-1.0.4.1.tar.gz'
|
2010-08-17 06:09:20 +00:00
|
|
|
homepage 'http://www.pps.jussieu.fr/~jch/software/polipo/'
|
2011-03-23 20:57:59 +00:00
|
|
|
head 'git://git.wifi.pps.jussieu.fr/polipo'
|
2011-03-24 11:44:05 +00:00
|
|
|
md5 'bfc5c85289519658280e093a270d6703'
|
2010-08-17 06:09:20 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
cache_root = (var + "cache/polipo").mkpath
|
2011-03-23 20:57:59 +00:00
|
|
|
make_opts = "PREFIX=#{prefix} LOCAL_ROOT=#{share}/polipo/www DISK_CACHE_ROOT=#{cache_root} MANDIR=#{man} INFODIR=#{info} PLATFORM_DEFINES=-DHAVE_IPv6"
|
2010-08-17 06:09:20 +00:00
|
|
|
system "make all #{make_opts}"
|
|
|
|
system "make install #{make_opts}"
|
|
|
|
end
|
|
|
|
end
|