homebrew-core/Formula/libdnet.rb

28 lines
672 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libdnet < Formula
homepage 'http://code.google.com/p/libdnet/'
2012-07-07 18:08:22 +00:00
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
sha1 '71302be302e84fc19b559e811951b5d600d976f8'
2012-07-07 18:08:22 +00:00
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