num-utils: add mirror
Closes Homebrew/homebrew#39293. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
31aaa0dd02
commit
d39d17346c
1 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
|||
class NumUtils < Formula
|
||||
homepage "http://suso.suso.org/programs/num-utils/"
|
||||
url "http://suso.suso.org/programs/num-utils/downloads/num-utils-0.5.tar.gz"
|
||||
sha1 "3fc6130874129fe1e98db6db8b3dc43f0e1a89ac"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/n/num-utils/num-utils_0.5.orig.tar.gz"
|
||||
sha256 "03592760fc7844492163b14ddc9bb4e4d6526e17b468b5317b4a702ea7f6c64e"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -13,7 +14,7 @@ class NumUtils < Formula
|
|||
conflicts_with "normalize", :because => "both install `normalize` binaries"
|
||||
|
||||
def install
|
||||
%w(average bound interval normalize numgrep numprocess numsum random range round).each do |p|
|
||||
%w[average bound interval normalize numgrep numprocess numsum random range round].each do |p|
|
||||
system "pod2man", p, "#{p}.1"
|
||||
bin.install p
|
||||
man1.install "#{p}.1"
|
||||
|
@ -21,6 +22,6 @@ class NumUtils < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
assert_equal "2", pipe_output("#{bin}/average", "1\n2\n3\n").strip()
|
||||
assert_equal "2", pipe_output("#{bin}/average", "1\n2\n3\n").strip
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue