b5842663ec
We detect this as "1.1" instead of "1.1.4"; possibly Pathname should be taught to detect this correctly. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
25 lines
694 B
Ruby
25 lines
694 B
Ruby
require 'formula'
|
|
|
|
class Libnet < Formula
|
|
url "https://github.com/sam-github/libnet/tarball/libnet-1.1.4"
|
|
md5 "0cb6c04063c1db37c91af08c76d25134"
|
|
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"
|
|
|
|
unless MacOS.leopard?
|
|
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
|
|
|