homebrew-core/Formula/owfs.rb
Brett Koonce c10588082c owfs 2.9p1
Closes Homebrew/homebrew#21250.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-07-16 13:46:23 -05:00

34 lines
1 KiB
Ruby

require 'formula'
class Owfs < Formula
homepage 'http://owfs.org/'
url 'http://downloads.sourceforge.net/project/owfs/owfs/2.9p1/owfs-2.9p1.tar.gz'
version '2.9p1'
sha1 'd431ae5b8eec6988f8ee1e401325eba845cf3696'
depends_on 'libusb-compat'
def install
# Fix include of getline and strsep to avoid crash
inreplace 'configure', '-D_POSIX_C_SOURCE=200112L', ''
# 'tac' command is missing in MacOSX
inreplace 'src/man/Makefile.am', 'tac', 'tail -r'
inreplace 'src/man/Makefile.in', 'tac', 'tail -r'
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