norm 1.5b3 (new formula)
The widely used ZeroMQ lib added support for NACK-Oriented Reliable Multicast (NORM). This simple formula adds the reference implementation by NRL to homebrew. Rationale and more see: http://zeromq.org/topics:norm-protocol-transport Closes Homebrew/homebrew#41051. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
ae30501568
commit
06ff5aa23f
1 changed files with 30 additions and 0 deletions
30
Formula/norm.rb
Normal file
30
Formula/norm.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
class Norm < Formula
|
||||
desc "NACK-Oriented Reliable Multicast"
|
||||
homepage "https://www.nrl.navy.mil/itd/ncs/products/norm"
|
||||
url "https://downloads.pf.itd.nrl.navy.mil/norm/archive/src-norm-1.5b3.tgz"
|
||||
sha256 "ec2014f57be12ea3ade0685faa1e6e161f168311c8975093bce33a6e1dc5e77c"
|
||||
|
||||
def install
|
||||
system "./waf", "configure", "--prefix=#{prefix}"
|
||||
system "./waf", "install"
|
||||
include.install "include/normApi.h"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
#include <assert.h>
|
||||
#include <normApi.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
NormInstanceHandle i;
|
||||
i = NormCreateInstance(false);
|
||||
assert(i != NORM_INSTANCE_INVALID);
|
||||
NormDestroyInstance(i);
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cc, "test.c", "-L#{lib}", "-lnorm", "-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue