homebrew-core/Formula/owfs.rb

35 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Owfs < Formula
2012-07-07 18:08:22 +00:00
homepage 'http://owfs.org/'
url 'http://downloads.sourceforge.net/project/owfs/owfs/2.9p1/owfs-2.9p1.tar.gz'
version '2.9p1'
sha1 'd431ae5b8eec6988f8ee1e401325eba845cf3696'
2012-07-07 18:08:22 +00:00
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
2013-03-25 18:35:20 +00:00
test do
system "#{bin}/owserver", "--version"
end
end