launch: fix the build
Fixes Homebrew/homebrew#41270. Closes Homebrew/homebrew#42201. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
d1f5e92879
commit
ec22494225
1 changed files with 26 additions and 8 deletions
|
@ -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
|
||||
|
@ -21,7 +35,11 @@ class Launch < Formula
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue