From 573270988afee438e05dd69801b55c22f2d14b73 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 13 Aug 2012 16:04:55 -0500 Subject: libdnet: use options DSL Signed-off-by: Jack Nagel --- Library/Formula/libdnet.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/libdnet.rb b/Library/Formula/libdnet.rb index 6ebe93579..5da2d18bb 100644 --- a/Library/Formula/libdnet.rb +++ b/Library/Formula/libdnet.rb @@ -8,9 +8,7 @@ class Libdnet < Formula depends_on :automake depends_on :libtool - def options - [['--with-python', 'Build Python module.']] - end + option 'with-python', 'Build Python module' def install # autoreconf to get '.dylib' extension on shared lib @@ -22,7 +20,7 @@ class Libdnet < Formula --prefix=#{prefix} --mandir=#{man} ] - args << "--with-python" if ARGV.include? "--with-python" + args << "with-python" if build.include? "with-python" system "./configure", *args system "make install" end -- cgit v1.2.3