2011-04-30 05:30:47 +00:00
|
|
|
class Blueutil < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Get/set bluetooth power and discoverable state"
|
2015-01-01 15:54:26 +00:00
|
|
|
homepage "https://github.com/toy/blueutil"
|
|
|
|
url "https://github.com/toy/blueutil/archive/v1.0.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "a433a96c0b85637b43d504efb3fd4411ba352149a17899c8536e01c738c8cb04"
|
2012-02-26 15:36:40 +00:00
|
|
|
|
2015-01-01 15:54:26 +00:00
|
|
|
head "https://github.com/toy/blueutil.git"
|
2011-04-30 05:30:47 +00:00
|
|
|
|
2014-05-30 23:03:52 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-01-01 16:17:54 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "179a9df22a362166d3e1ba8a902dfe34e126609d" => :yosemite
|
|
|
|
sha1 "8fb356c326d1644cd31602d23dde6720ce844f27" => :mavericks
|
|
|
|
sha1 "b267d3761cf1ac1415318c16b64332e44cdbaa2e" => :mountain_lion
|
2014-05-30 23:03:52 +00:00
|
|
|
end
|
|
|
|
|
2014-05-30 20:41:18 +00:00
|
|
|
depends_on :xcode => :build
|
2012-08-24 20:40:24 +00:00
|
|
|
|
2011-04-30 05:30:47 +00:00
|
|
|
def install
|
|
|
|
# Set to build with SDK=macosx10.6, but it doesn't actually need 10.6
|
2015-01-01 15:54:26 +00:00
|
|
|
xcodebuild "SDKROOT=", "SYMROOT=build"
|
|
|
|
bin.install "build/Release/blueutil"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/blueutil"
|
2011-04-30 05:30:47 +00:00
|
|
|
end
|
|
|
|
end
|