aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libdnet.rb9
1 files changed, 4 insertions, 5 deletions
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