c950421139
* use newer sqlite on older os x * upstream patch for 10.6 Closes Homebrew/homebrew#25676.
30 lines
863 B
Ruby
30 lines
863 B
Ruby
require 'formula'
|
|
|
|
class Tcpflow < Formula
|
|
homepage 'https://github.com/simsong/tcpflow'
|
|
url 'http://www.digitalcorpora.org/downloads/tcpflow/tcpflow-1.4.4.tar.gz'
|
|
sha1 'e4bc5ad08a81a39943bd1c799edefcdee09de784'
|
|
|
|
head do
|
|
url 'https://github.com/simsong/tcpflow.git'
|
|
depends_on :autoconf
|
|
depends_on :automake
|
|
depends_on :libtool
|
|
end
|
|
|
|
depends_on 'boost' => :build
|
|
depends_on 'sqlite' if MacOS.version < :lion
|
|
|
|
# Upstream fix for 10.6; can be removed in next release
|
|
def patches
|
|
"https://github.com/simsong/tcpflow/commit/1cd5a9168c2ebf72c1fadcd64634398bd8470bce.diff"
|
|
end
|
|
|
|
def install
|
|
system "bash", "./bootstrap.sh" if build.head?
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}"
|
|
system "make install"
|
|
end
|
|
end
|