launch 1.2.3

Closes #5258.

Signed-off-by: Zhiming Wang <zmwangx@gmail.com>
This commit is contained in:
Zhiming Wang 2016-09-26 12:03:08 -04:00
parent 4ebd78d4ee
commit ad9b20bdf2

View file

@ -1,26 +1,10 @@
class Launch < Formula
desc "Command-line launcher for OS X, in the spirit of `open`"
homepage "https://sabi.net/nriley/software/"
homepage "https://sabi.net/nriley/software/#launch"
url "https://sabi.net/nriley/software/launch-1.2.3.tar.gz"
sha256 "b4bedaa61f7138f9167e7313e077ffbfc0716a60d4937f94aaedf3f46406bc38"
head "https://github.com/nriley/launch.git"
stable do
url "https://sabi.net/nriley/software/launch-1.2.2.tar.gz"
sha256 "94509ce5b55a768f3f8da9996193ae01baf78f239a4d0fca637735f2684eed87"
# Upstream commits to fix the build on 10.10+
# Remove both patches when upgrading to 1.2.3
patch do
url "https://github.com/nriley/launch/commit/622fa2db6f185b4d635e22e90fda6b9741033047.diff"
sha256 "ab8ede8c11ff9af389728439ca8ac2197d8de66c712c4f51f7ef794de73f0498"
end
patch do
url "https://github.com/nriley/launch/commit/d3207d853e04bf312cc47d15f35e8a61633deab4.diff"
sha256 "24eabf62956d49a4259068a2316b3a03e17598a2137ff3f200f9076cec92f415"
end
end
bottle do
cellar :any_skip_relocation
revision 2
@ -41,6 +25,6 @@ class Launch < Formula
end
test do
system "#{bin}/launch", "-n", "/"
assert_equal "/", shell_output("#{bin}/launch -n /").chomp
end
end