homebrew-core/Formula/torsocks.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

24 lines
571 B
Ruby

require 'formula'
class Torsocks < Formula
homepage 'https://gitweb.torproject.org/torsocks.git/'
url 'https://git.torproject.org/torsocks.git', :tag => '1.3'
head 'https://git.torproject.org/torsocks.git', :branch => 'master'
depends_on :autoconf
depends_on :automake
depends_on :libtool
depends_on 'tor'
def install
system "./autogen.sh"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
test do
system "#{bin}/torsocks"
end
end