blob: 0640ec2bc1fa156f8974cee89a630ea4205cfe13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require "formula"
class Libmodbus < Formula
homepage "http://libmodbus.org"
url "http://libmodbus.org/site_media/build/libmodbus-3.1.1.tar.gz"
sha1 "3878af4a93a01001dd3bb8db90d24d5180545b91"
bottle do
cellar :any
revision 1
sha1 "49132fcf200e02792b898857bce7630de3d4d3ce" => :yosemite
sha1 "a39c4927f9794f0a9af374249f2f4598c2d2f5d5" => :mavericks
sha1 "a4ef5c2d803aaddfbe8f79d819d13c148f5bda0c" => :mountain_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
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
end
|