From 33b794d70f98f8bb334fbf9b4f29553ea6c5b7b6 Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Wed, 18 Mar 2015 00:10:25 -0700 Subject: libdnet: bottle python bindings Closes #37826. --- Library/Formula/libdnet.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/libdnet.rb b/Library/Formula/libdnet.rb index 68e8ddf00..491a873d1 100644 --- a/Library/Formula/libdnet.rb +++ b/Library/Formula/libdnet.rb @@ -1,7 +1,5 @@ -require 'formula' - class Libdnet < Formula - homepage 'http://code.google.com/p/libdnet/' + homepage 'https://code.google.com/p/libdnet/' url 'https://libdnet.googlecode.com/files/libdnet-1.12.tgz' sha1 '71302be302e84fc19b559e811951b5d600d976f8' @@ -13,10 +11,11 @@ class Libdnet < Formula sha1 "e1570018c6ace49b52f2d77a660c7720e6250660" => :mountain_lion end + option "without-python", "Build without python support" + depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build - depends_on :python => :optional def install # autoreconf to get '.dylib' extension on shared lib @@ -30,6 +29,6 @@ class Libdnet < Formula ] args << "--with-python" if build.with? "python" system "./configure", *args - system "make install" + system "make", "install" end end -- cgit v1.2.3