homebrew-core/Formula/tcpflow.rb

30 lines
873 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Tcpflow < Formula
homepage 'https://github.com/simsong/tcpflow'
url 'https://github.com/downloads/simsong/tcpflow/tcpflow-1.3.0.tar.gz'
sha1 'fccd0a451bf138e340fc3b55dfc07924c0a811d8'
depends_on :libtool
def copy_libtool_files!
if not MacOS::Xcode.provides_autotools?
s = Formula.factory('libtool').share
d = "#{s}/libtool/config"
cp ["#{d}/config.guess", "#{d}/config.sub"], "."
elsif MacOS.version == :leopard
cp Dir["#{MacOS::Xcode.prefix}/usr/share/libtool/config.*"], "."
2011-04-08 18:16:37 +00:00
else
cp Dir["#{MacOS::Xcode.prefix}/usr/share/libtool/config/config.*"], "."
2010-11-14 23:16:27 +00:00
end
end
def install
copy_libtool_files!
system "./configure", "--disable-dependency-tracking",
2012-03-18 03:44:36 +00:00
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make install"
end
end