From 30050e3dede36924fa1b4f40ff4b90469fcaddde Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 20 Apr 2012 22:02:41 -0500 Subject: [PATCH] libnet 1.1.6 Signed-off-by: Jack Nagel --- Formula/libnet.rb | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/Formula/libnet.rb b/Formula/libnet.rb index 61cfef644cf..9a229dea853 100644 --- a/Formula/libnet.rb +++ b/Formula/libnet.rb @@ -1,29 +1,12 @@ 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' - - if MacOS.xcode_version >= "4.3" - # when and if the tarball provides configure, remove autogen.sh and these deps - depends_on "automake" => :build - depends_on "libtool" => :build - end + url 'http://sourceforge.net/projects/libnet-dev/files/libnet-1.1.6.tar.gz' + sha1 'dffff71c325584fdcf99b80567b60f8ad985e34c' 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 "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" system "make install" end end