homebrew-core/Formula/libnet.rb

26 lines
694 B
Ruby
Raw Normal View History

require 'formula'
class Libnet < Formula
url "https://github.com/sam-github/libnet/tarball/libnet-1.1.4"
md5 "0cb6c04063c1db37c91af08c76d25134"
2011-05-27 05:02:55 +00:00
head 'https://github.com/sam-github/libnet.git'
homepage 'https://github.com/sam-github/libnet'
version '1.1.4'
def install
cd 'libnet'
inreplace "autogen.sh", "libtoolize", "glibtoolize"
system "./autogen.sh"
2011-02-01 17:32:49 +00:00
2011-04-08 18:16:37 +00:00
unless MacOS.leopard?
2011-02-01 17:32:49 +00:00
cp "/usr/share/libtool/config/config.guess", "."
cp "/usr/share/libtool/config/config.sub", "."
end
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
touch 'doc/man/man3/libnet.3'
system "make install"
end
end