46 lines
1.4 KiB
Ruby
46 lines
1.4 KiB
Ruby
class Platypus < Formula
|
|
desc "Create OS X applications from {Perl,Ruby,sh,Python} scripts"
|
|
homepage "http://sveinbjorn.org/platypus"
|
|
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
|
|
cellar :any_skip_relocation
|
|
sha256 "c48c2b021df9de8b3e14e6b662eda5e1d8952820a50e05297e4cc51998b15980" => :el_capitan
|
|
sha256 "bee357b4dfb3ae25bb2ae31ffe61e5fd0d29076426f587f45096480c998500e6" => :yosemite
|
|
end
|
|
|
|
depends_on :xcode => ["7.0", :build]
|
|
|
|
def install
|
|
xcodebuild "SYMROOT=build", "DSTROOT=#{buildpath}",
|
|
"-project", "Platypus.xcodeproj",
|
|
"-target", "platypus",
|
|
"-target", "ScriptExec",
|
|
"clean",
|
|
"install"
|
|
|
|
man1.install "CommandLineTool/platypus.1"
|
|
|
|
cd buildpath
|
|
|
|
bin.install "platypus_clt" => "platypus"
|
|
|
|
cd "build/UninstalledProducts/macosx/ScriptExec.app/Contents" do
|
|
(share/"platypus").install "Resources/MainMenu.nib", "MacOS/ScriptExec"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/platypus", "-v"
|
|
end
|
|
|
|
def caveats
|
|
<<-EOS.undent
|
|
This formula only installs the command-line Platypus tool, not the GUI.
|
|
If you want the GUI, download the app from the project's Web page directly.
|
|
EOS
|
|
end
|
|
end
|