2013-04-29 10:59:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class LionOrNewer < Requirement
|
|
|
|
fatal true
|
|
|
|
|
|
|
|
satisfy MacOS.version >= :lion
|
|
|
|
|
|
|
|
def message
|
|
|
|
"Wry requires Mac OS X 10.7 or newer."
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Wry < Formula
|
|
|
|
homepage 'http://grailbox.com/wry/'
|
2013-05-14 23:05:48 +00:00
|
|
|
url 'https://github.com/hoop33/wry/archive/v1.5.tar.gz'
|
|
|
|
sha1 '56f03ff07b19b2b5489d024b60c1b1d23f347961'
|
2013-04-29 10:59:26 +00:00
|
|
|
|
|
|
|
head 'https://github.com/hoop33/wry.git'
|
|
|
|
|
|
|
|
depends_on LionOrNewer
|
|
|
|
depends_on :xcode
|
|
|
|
|
|
|
|
def install
|
|
|
|
system 'xcodebuild -target wry -configuration Release SYMROOT=build OBJROOT=objroot'
|
|
|
|
bin.install 'build/Release/wry'
|
|
|
|
end
|
|
|
|
end
|