homebrew-core/Formula/libdnet.rb
Ian Rahimi b56c17d40b Fixed libdnet failing to build when --with-python is supplied to brew install
Closes Homebrew/homebrew#14352.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-21 13:53:37 -07:00

27 lines
663 B
Ruby

require 'formula'
class Libdnet < Formula
homepage 'http://code.google.com/p/libdnet/'
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
md5 '9253ef6de1b5e28e9c9a62b882e44cc9'
depends_on :automake
depends_on :libtool
option 'with-python', 'Build Python module'
def install
# autoreconf to get '.dylib' extension on shared lib
ENV['ACLOCAL'] = 'aclocal -I config'
system 'autoreconf', '-ivf'
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--mandir=#{man}
]
args << "--with-python" if build.include? "with-python"
system "./configure", *args
system "make install"
end
end