From bbf80ce216aca407f2eec6402328b8cf0414d5d5 Mon Sep 17 00:00:00 2001 From: Erik Kallen Date: Thu, 2 Oct 2014 10:13:31 +0200 Subject: libmodbus: add HEAD. Closes #32865. Signed-off-by: Mike McQuaid --- Library/Formula/libmodbus.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Library') diff --git a/Library/Formula/libmodbus.rb b/Library/Formula/libmodbus.rb index 947f58e59..c4629d4b6 100644 --- a/Library/Formula/libmodbus.rb +++ b/Library/Formula/libmodbus.rb @@ -12,7 +12,18 @@ class Libmodbus < Formula sha1 "efc4d4d0873b838f6124440262afd44675e44f4d" => :lion end + head do + url 'https://github.com/stephane/libmodbus.git' + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + end + def install + if build.head? + system "./autogen.sh" + end system "./configure", "--prefix=#{prefix}" system "make install" end -- cgit v1.2.3