25 lines
825 B
Ruby
25 lines
825 B
Ruby
class Imagejs < Formula
|
|
desc "Tool to hide JavaScript inside valid image files"
|
|
homepage "https://jklmnn.de/imagejs/"
|
|
url "https://github.com/jklmnn/imagejs/archive/0.7.2.tar.gz"
|
|
sha256 "ba75c7ea549c4afbcb2a516565ba0b762b5fc38a03a48e5b94bec78bac7dab07"
|
|
head "https://github.com/jklmnn/imagejs.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "7e56845664f1d00cb460effbc723aa6a4df38e34e3a654f9c9e9485037f086ff" => :sierra
|
|
sha256 "9f98ec026ce971a312606d06acbdeabcc38c842e6f4fdbd1d7631a76e3f3307d" => :el_capitan
|
|
sha256 "47dc7fa5f0b5706b0c952522b897652758ccedcb7169bcd25e551204bb19da27" => :yosemite
|
|
end
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "imagejs"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.js").write "alert('Hello World!')"
|
|
system "#{bin}/imagejs", "bmp", "test.js", "-l"
|
|
end
|
|
end
|