audit fixes: B 02: bittwist - blockhash
audit fixes for: bittwist blahtexml blazeblogger blockhash Closes Homebrew/homebrew#44691. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
45868a3aff
commit
f0feaf62ea
4 changed files with 11 additions and 10 deletions
|
@ -10,7 +10,7 @@ class Bittwist < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/bittwist -help"
|
||||
system "#{bin}/bittwiste -help"
|
||||
system "#{bin}/bittwist", "-help"
|
||||
system "#{bin}/bittwiste", "-help"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,9 +4,10 @@ class Blahtexml < Formula
|
|||
url "http://gva.noekeon.org/blahtexml/blahtexml-0.9-src.tar.gz"
|
||||
sha256 "c5145b02bdf03cd95b7b136de63286819e696639824961d7408bec4591bc3737"
|
||||
|
||||
option "blahtex-only", "Build only blahtex, not blahtexml"
|
||||
deprecated_option "blahtex-only" => "without-blahtexml"
|
||||
option "without-blahtexml", "Build only blahtex, not blahtexml"
|
||||
|
||||
depends_on "xerces-c" unless build.include? "blahtex-only"
|
||||
depends_on "xerces-c" if build.with? "blahtexml"
|
||||
|
||||
# Add missing unistd.h includes, taken from MacPorts
|
||||
patch :p0 do
|
||||
|
@ -20,10 +21,10 @@ class Blahtexml < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
system "make blahtex-mac"
|
||||
system "make", "blahtex-mac"
|
||||
bin.install "blahtex"
|
||||
unless build.include? "blahtex-only"
|
||||
system "make blahtexml-mac"
|
||||
if build.with? "blahtexml"
|
||||
system "make", "blahtexml-mac"
|
||||
bin.install "blahtexml"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,6 +22,6 @@ class Blazeblogger < Formula
|
|||
system bin/"blaze", "config", "blog.title", "Homebrew!"
|
||||
system bin/"blaze", "make"
|
||||
assert File.exist? "default.css"
|
||||
assert File.read(".blaze/config").include?("Homebrew!")
|
||||
assert_match "Homebrew!", File.read(".blaze/config")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
class Blockhash < Formula
|
||||
desc "Perceptual image hash calculation tool"
|
||||
homepage "http://blockhash.io/"
|
||||
head "https://github.com/commonsmachinery/blockhash.git"
|
||||
url "https://github.com/commonsmachinery/blockhash/archive/0.1.tar.gz"
|
||||
sha256 "aef300f39be2cbc1b508af15d7ddb5b851b671b27680d8b7ab1d043cc0369893"
|
||||
head "https://github.com/commonsmachinery/blockhash.git"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -33,6 +33,6 @@ class Blockhash < Formula
|
|||
# for now
|
||||
# https://github.com/commonsmachinery/blockhash/pull/9
|
||||
result = pipe_output("#{bin}/blockhash #{testpath}/clipper_ship.jpg", nil, nil)
|
||||
assert result.include? hash
|
||||
assert_match hash, result
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue