2010-11-30 18:31:28 +00:00
|
|
|
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/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/owfs/owfs/2.9p1/owfs-2.9p1.tar.gz'
|
2013-07-16 04:28:41 +00:00
|
|
|
version '2.9p1'
|
|
|
|
sha1 'd431ae5b8eec6988f8ee1e401325eba845cf3696'
|
2010-11-30 18:31:28 +00:00
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on 'libusb-compat'
|
2012-02-29 01:44:13 +00:00
|
|
|
|
2010-11-30 18:31:28 +00:00
|
|
|
def install
|
2012-12-16 07:57:58 +00:00
|
|
|
# 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'
|
|
|
|
|
2012-11-07 06:54:39 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2010-11-30 18:31:28 +00:00
|
|
|
"--disable-swig",
|
2012-12-16 07:57:58 +00:00
|
|
|
"--disable-owfs",
|
2010-11-30 18:31:28 +00:00
|
|
|
"--disable-owtcl",
|
|
|
|
"--disable-zero",
|
2012-11-07 06:54:39 +00:00
|
|
|
"--disable-owpython",
|
|
|
|
"--disable-owperl",
|
2010-11-30 18:31:28 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
2012-12-16 07:57:58 +00:00
|
|
|
|
2013-03-25 18:35:20 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/owserver", "--version"
|
2012-12-16 07:57:58 +00:00
|
|
|
end
|
2010-11-30 18:31:28 +00:00
|
|
|
end
|