homebrew-core/Formula/trafshow.rb

27 lines
845 B
Ruby
Raw Normal View History

require 'formula'
class Trafshow <Formula
2010-06-05 05:25:02 +00:00
url 'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/trafshow-5.2.3.tgz'
homepage 'http://soft.risp.ru/trafshow/index_en.shtml'
2010-06-05 05:25:02 +00:00
md5 '0b2f0bb23b7832138b7d841437b9e182'
def patches
files = %w[patch-domain_resolver.c patch-colormask.c patch-trafshow.c patch-trafshow.1 patch-configure]
{
:p0 =>
files.collect{|p| "http://trac.macports.org/export/68507/trunk/dports/net/trafshow/files/#{p}"}
}
end
def install
2010-06-05 05:25:02 +00:00
# Per MacPorts, to detect OS X as the system
system "cp /usr/share/libtool/config/config.* ."
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--disable-slang"
system "make"
2010-06-05 05:25:02 +00:00
bin.install "trafshow"
man1.install "trafshow.1"
etc.install ".trafshow" => "trafshow.default"
end
end