2013-05-23 18:21:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2013-06-01 10:51:03 +00:00
|
|
|
class MPlayerPresented < Requirement
|
2013-05-23 18:21:23 +00:00
|
|
|
fatal true
|
|
|
|
default_formula 'mplayer'
|
|
|
|
|
2013-05-30 08:57:57 +00:00
|
|
|
satisfy { which('mplayer') || which('mplayer2') }
|
2013-05-23 18:21:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Mplayershell < Formula
|
|
|
|
homepage 'https://github.com/donmelton/MPlayerShell'
|
2013-12-11 09:43:50 +00:00
|
|
|
url 'https://github.com/donmelton/MPlayerShell/archive/0.9.2.tar.gz'
|
|
|
|
sha1 '613d29e66e27e748c29b20df54888a8915e39490'
|
2013-05-23 18:21:23 +00:00
|
|
|
|
|
|
|
head 'https://github.com/donmelton/MPlayerShell.git'
|
|
|
|
|
2014-05-30 23:03:52 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "fc5c7c41b3537b8fd77b063cb926813e01be21e5" => :mavericks
|
|
|
|
sha1 "07d4cdafc128653a5268fa9e699041c5438366a6" => :mountain_lion
|
|
|
|
sha1 "d48c7897bbaf5b962fca94b1af24fccd932bd72e" => :lion
|
|
|
|
end
|
|
|
|
|
2013-06-01 10:51:03 +00:00
|
|
|
depends_on MPlayerPresented
|
2013-06-18 15:08:52 +00:00
|
|
|
depends_on :macos => :lion
|
2014-05-30 20:41:18 +00:00
|
|
|
depends_on :xcode => :build
|
2013-05-23 18:21:23 +00:00
|
|
|
|
|
|
|
def install
|
2014-02-28 03:47:38 +00:00
|
|
|
xcodebuild "-project",
|
|
|
|
"MPlayerShell.xcodeproj",
|
|
|
|
"-target", "mps",
|
|
|
|
"-configuration", "Release",
|
|
|
|
"clean", "build",
|
|
|
|
"SYMROOT=build",
|
|
|
|
"DSTROOT=build"
|
2013-05-23 18:21:23 +00:00
|
|
|
bin.install "build/Release/mps"
|
|
|
|
man1.install "Source/mps.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/mps"
|
|
|
|
end
|
|
|
|
end
|