diff options
| author | Vasily Korytov | 2014-12-27 23:26:26 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-28 09:26:29 +0000 |
| commit | 00b2e7bc6513323f5987ce97c93403b182734009 (patch) | |
| tree | 3431eb72bd11302a81936702d3a3e5320b05bca8 /Library | |
| parent | 25b922331f6f3617ba60df17dd77ef1a2058c1c8 (diff) | |
| download | homebrew-00b2e7bc6513323f5987ce97c93403b182734009.tar.bz2 | |
polipo: introduce --with-large-chunks for 16k size
Closes #35293.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/polipo.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/polipo.rb b/Library/Formula/polipo.rb index 0dfb5cb64..8a68287a9 100644 --- a/Library/Formula/polipo.rb +++ b/Library/Formula/polipo.rb @@ -13,6 +13,8 @@ class Polipo < Formula sha1 "e293417dcc1d1708cdef6cc5476445741ee97bb4" => :mountain_lion end + option 'with-large-chunks', 'Set chunk size to 16k (more RAM, but more performance)' + def install cache_root = (var + "cache/polipo") cache_root.mkpath @@ -22,6 +24,7 @@ class Polipo < Formula MANDIR=#{man} INFODIR=#{info} PLATFORM_DEFINES=-DHAVE_IPv6] + args << 'EXTRA_DEFINES="-DCHUNK_SIZE=16384"' if build.with? "large-chunks" system "make", "all", *args system "make", "install", *args |
