homebrew-core/Formula/owfs.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

34 lines
1 KiB
Ruby

require 'formula'
class Owfs < Formula
homepage 'http://owfs.org/'
url 'https://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