diff options
| author | Jack Nagel | 2012-08-13 16:04:55 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-13 16:04:55 -0500 |
| commit | 573270988afee438e05dd69801b55c22f2d14b73 (patch) | |
| tree | c09483220b24359372b0d22f3a2131def49034e8 /Library | |
| parent | 08214297cbd3ec18d2929dc23838b554f8c4f38e (diff) | |
| download | homebrew-573270988afee438e05dd69801b55c22f2d14b73.tar.bz2 | |
libdnet: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libdnet.rb | 6 |
1 files changed, 2 insertions, 4 deletions
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 |
