Skip to content

Commit

Permalink
launch: fix the build
Browse files Browse the repository at this point in the history
Fixes Homebrew/legacy-homebrew#41270.

Closes Homebrew/legacy-homebrew#42201.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
  • Loading branch information
bfontaine committed Jul 28, 2015
1 parent d1f5e92 commit ec22494
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions Formula/launch.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
require 'formula'

class Launch < Formula
desc "Command-line launcher for OS X, in the spirit of `open`"
homepage 'http://web.sabi.net/nriley/software/'
head 'https://github.com/nriley/launch.git'
url 'http://sabi.net/nriley/software/launch-1.2.2.tar.gz'
sha1 'd6fabdb495d3395460148bb99341cbf0f1b9d575'
homepage "http://web.sabi.net/nriley/software/"

head "https://github.com/nriley/launch.git"

stable do
url "http://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
Expand All @@ -21,7 +35,11 @@ def install
xcodebuild "-configuration", "Deployment", "SYMROOT=build", "clean"
xcodebuild "-configuration", "Deployment", "SYMROOT=build"

man1.install gzip('launch.1')
bin.install 'build/Deployment/launch'
man1.install gzip("launch.1")
bin.install "build/Deployment/launch"
end

test do
system "#{bin}/launch", "-n", "/"
end
end

0 comments on commit ec22494

Please sign in to comment.