aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-12 20:55:07 -0700
committerAdam Vandenberg2012-03-12 20:55:07 -0700
commit82199058f3efea47f00d8047558fac6fc0873309 (patch)
treed37cd1e500699b8a3aaafec2c0edf6eb4d68a908 /Library
parent658cf51a2c60028b43953c59b423e619fbfffdfb (diff)
downloadhomebrew-82199058f3efea47f00d8047558fac6fc0873309.tar.bz2
libdnet: add --with-python switch to build module
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libdnet.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Formula/libdnet.rb b/Library/Formula/libdnet.rb
index 9c1bfbbab..17d9fcf4b 100644
--- a/Library/Formula/libdnet.rb
+++ b/Library/Formula/libdnet.rb
@@ -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