37 lines
1.4 KiB
Ruby
37 lines
1.4 KiB
Ruby
class Owfs < Formula
|
|
desc "Monitor and control physical environment using Dallas/Maxim 1-wire system"
|
|
homepage "http://owfs.org/"
|
|
url "https://downloads.sourceforge.net/project/owfs/owfs/3.1p1/owfs-3.1p1.tar.gz"
|
|
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/o/owfs/owfs_3.1p1.orig.tar.gz"
|
|
version "3.1p1"
|
|
sha256 "e69421ae534565c1f8530a2447f583401f4d0d4b1cf3cb8cf399a57133ed7f81"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "f3c9411be6ada67d8812d1989a588be032ff776db726c71a638662868de0d6f7" => :el_capitan
|
|
sha256 "ef581bfe553455f79a5fcf93ca247f1d7ad0915e3854ad2a9885b8bac3515bcb" => :yosemite
|
|
sha256 "6462c010b2307c488678673bec8772466baf7aafcb8917732f0606889ccadd90" => :mavericks
|
|
end
|
|
|
|
depends_on "libusb-compat"
|
|
|
|
def install
|
|
# Fix include of getline and strsep to avoid crash
|
|
inreplace "configure", "-D_POSIX_C_SOURCE=200112L", ""
|
|
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-swig",
|
|
"--disable-owfs",
|
|
"--disable-owtcl",
|
|
"--disable-zero",
|
|
"--disable-owpython",
|
|
"--disable-owperl",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/owserver", "--version"
|
|
end
|
|
end
|