platypus 5.0
Don't attempt to build unless Xcode 7 is there Closes Homebrew/homebrew#46548. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
1eb88c6e1d
commit
462104f4f7
1 changed files with 5 additions and 9 deletions
|
@ -1,9 +1,9 @@
|
|||
class Platypus < Formula
|
||||
desc "Create OS X applications from {Perl,Ruby,sh,Python} scripts"
|
||||
homepage "http://sveinbjorn.org/platypus"
|
||||
url "https://github.com/sveinbjornt/Platypus/raw/master/Releases/platypus4.9.src.zip"
|
||||
version "4.9"
|
||||
sha256 "11b32fc5c68b4e73abeeabd22e1547c2c9b53bafe86cf04474c1f78863d2c1ae"
|
||||
url "http://sveinbjorn.org/files/software/platypus/platypus5.0.src.zip"
|
||||
version "5.0"
|
||||
sha256 "53efa052920a0f8a0fcc6a5d5806447be1270279aa98961cb5cea34447a79706"
|
||||
head "https://github.com/sveinbjornt/Platypus.git"
|
||||
|
||||
bottle do
|
||||
|
@ -13,13 +13,9 @@ class Platypus < Formula
|
|||
sha256 "d33acad77bacbbec3c602541b3e0410576efda95679760314b7e5ba737154871" => :mountain_lion
|
||||
end
|
||||
|
||||
depends_on :xcode => :build
|
||||
depends_on :xcode => ["7.0", :build]
|
||||
|
||||
def install
|
||||
# 4.9 stable tarball has unexpected unpacked name, so go to the right
|
||||
# place.
|
||||
cd "platypus" if build.stable?
|
||||
|
||||
xcodebuild "SYMROOT=build", "DSTROOT=#{buildpath}",
|
||||
"-project", "Platypus.xcodeproj",
|
||||
"-target", "platypus",
|
||||
|
@ -33,7 +29,7 @@ class Platypus < Formula
|
|||
|
||||
bin.install "platypus_clt" => "platypus"
|
||||
|
||||
cd "ScriptExec.app/Contents" do
|
||||
cd "build/UninstalledProducts/macosx/ScriptExec.app/Contents" do
|
||||
(share/"platypus").install "Resources/MainMenu.nib", "MacOS/ScriptExec"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue