homebrew-core/Formula/pktanon.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

24 lines
735 B
Ruby

class Pktanon < Formula
desc "Packet trace anonymization"
homepage "http://www.tm.uka.de/software/pktanon/index.html"
url "http://www.tm.uka.de/software/pktanon/download/pktanon-1.4.0-dev.tar.gz"
sha256 "db3f437bcb8ddb40323ddef7a9de25a465c5f6b4cce078202060f661d4b97ba3"
depends_on "xerces-c"
depends_on "boost"
def install
# fix compile failure caused by undefined function 'sleep'.
inreplace "src/Timer.cpp", %(#include "Timer.h"
),
%(#include "Timer.h"
#include "unistd.h"
)
# include the boost system library to resolve compilation errors
ENV["LIBS"] = "-lboost_system-mt"
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
end