homebrew-core/Formula/unshield.rb
Baptiste Fontaine 20df63b441 unshield: Add HEAD
Closes #2104.

Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-06-19 23:36:24 +02:00

35 lines
1 KiB
Ruby

class Unshield < Formula
desc "Extract files from InstallShield cabinet files"
homepage "https://github.com/twogood/unshield"
url "https://github.com/twogood/unshield/archive/1.3.tar.gz"
sha256 "31a49c43b60e86b3ed731e0a1b988b88d35b755c85d103e93e1507278328bf73"
bottle do
cellar :any
sha256 "3483cb438e816f4a88d9c0f166a73aa40c042e96b49955a9280d42b5d8f65f47" => :el_capitan
sha256 "9e143d03e6017dd8aa55696e3d5e8f0f0c2e25c6d5fefb496d6fa3cf113e10aa" => :yosemite
sha256 "804098ab7f9c7ecac5d8749d7b13d542b07dd3551170da17568a073710740ac6" => :mavericks
end
head do
url "https://github.com/twogood/unshield.git"
# Fix compilation on OS X
patch do
url "https://github.com/twogood/unshield/pull/47.patch"
sha256 "3b37bdac497a9113e576c2ddc042b978ce15758ef8158e3f495f819f92dad531"
end
end
depends_on "openssl"
depends_on "cmake" => :build
def install
system "cmake", *std_cmake_args
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/unshield -V")
end
end