cidrmerge 1.5.3 (new formula)

Closes Homebrew/homebrew#38332.

Signed-off-by: Xu Cheng <xucheng@me.com>
master
Daniel 2015-04-03 19:30:07 +08:00 committed by Xu Cheng
parent 12bc200ad1
commit 056825e34b
1 changed files with 20 additions and 0 deletions

20
Formula/cidrmerge.rb Normal file
View File

@ -0,0 +1,20 @@
class Cidrmerge < Formula
homepage "http://cidrmerge.sourceforge.net"
url "https://downloads.sourceforge.net/project/cidrmerge/cidrmerge/cidrmerge-1.5.3/cidrmerge-1.5.3.tar.gz"
sha256 "21b36fc8004d4fc4edae71dfaf1209d3b7c8f8f282d1a582771c43522d84f088"
def install
system "make"
bin.install "cidrmerge"
end
test do
input = <<-EOS.undent
10.1.1.0/24
10.1.1.1/32
192.1.4.5/32
192.1.4.4/32
EOS
assert_equal "10.1.1.0/24\n192.1.4.4/31\n", pipe_output("#{bin}/cidrmerge", input)
end
end