2014-12-27 20:27:25 +00:00
|
|
|
class Whereami < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Provides user's current location from the command-line"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://victor.github.io/whereami/"
|
2014-12-27 20:27:25 +00:00
|
|
|
url "https://github.com/victor/whereami/archive/v1.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "75efa77897102e657ab6d23c97222dea4e7a2c9a1702664fd56506a7a187cf62"
|
2014-12-30 14:17:39 +00:00
|
|
|
head "https://github.com/victor/whereami.git", :branch => "swift"
|
2014-12-27 20:27:25 +00:00
|
|
|
|
2014-12-28 17:54:24 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "f1b35d4c5180a303169d0ba251daf39375c20065" => :yosemite
|
|
|
|
end
|
|
|
|
|
2014-12-27 20:27:25 +00:00
|
|
|
depends_on :xcode => ["6.1.1", :build]
|
|
|
|
depends_on :macos => :yosemite
|
|
|
|
|
|
|
|
def install
|
2015-05-14 04:15:41 +00:00
|
|
|
xcodebuild "install", "DSTROOT=#{prefix}", "INSTALL_PATH=/bin"
|
2014-12-27 20:27:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "whereami", "--version"
|
|
|
|
end
|
|
|
|
end
|