Skip to content

Commit

Permalink
libproxy 0.4.12 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#47621.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
  • Loading branch information
andyetitmoves authored and dunn committed Jan 20, 2016
1 parent 835a74a commit f1bca3c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Formula/libproxy.rb
@@ -0,0 +1,30 @@
class Libproxy < Formula
desc "Library that provides automatic proxy configuration management"
homepage "https://libproxy.github.io/libproxy/"

head "https://github.com/libproxy/libproxy.git"

stable do
url "https://github.com/libproxy/libproxy/archive/0.4.12.tar.gz"
sha256 "add9c5e30767c17b00f842f6280d818ece1eb23ab92e1fc68661204c95d7e22b"
# Fix compilation errors with CLang on MacOSX
patch do
url "https://github.com/libproxy/libproxy/commit/48a441652edfd73654f0c21e51cc96c69d5070c3.diff"
sha256 "ac714f2cc010a5428556b4b66a42f4df043a6f42540269bba7da11a773f7529c"
end
end

depends_on "cmake" => :build

def install
mkdir "build" do
# The build tries to install to non-standard locations for Python bindings, hence avoid it..
system "cmake", "..", "-DWITH_PYTHON=no", *std_cmake_args
system "make", "install"
end
end

test do
system "#{bin}/proxy", "127.0.0.1"
end
end

0 comments on commit f1bca3c

Please sign in to comment.