libdnet: add --with-python switch to build module

This commit is contained in:
Adam Vandenberg 2012-03-12 20:55:07 -07:00
parent 1a4bd99161
commit 7d29878231

View file

@ -10,6 +10,10 @@ class Libdnet < Formula
depends_on "libtool" => :build
end
def options
[['--with-python', 'Build Python module too.']]
end
def install
# "manual" autoreconf to get '.dylib' extension on shared lib
system "aclocal --force -I config"
@ -18,9 +22,11 @@ class Libdnet < Formula
system "autoheader --force"
system "automake --add-missing --copy --force-missing"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"]
args << "--with-python" if ARGV.include? "--with-python"
system "./configure", *args
system "make install"
end
end