homebrew-core/Formula/corelocationcli.rb
2016-02-23 22:35:28 +01:00

25 lines
996 B
Ruby

class Corelocationcli < Formula
desc "Prints location information from CoreLocation"
homepage "https://github.com/fulldecent/corelocationcli"
url "https://github.com/fulldecent/corelocationcli/archive/2.0.0.tar.gz"
sha256 "d256ae0a534ef15f4b9a77704ef3bd52935c310a4f6a687657d79945c5544515"
bottle do
cellar :any_skip_relocation
sha256 "628b708ab2c7289e64dc3697e2487947ec050000fef5b887d86b85bb53e7b37e" => :el_capitan
sha256 "db59b11dcbcef4e71fc43eb005fe855d6e19e0108e2c8ceb3378b306f3d82e35" => :yosemite
sha256 "ffd7a23f96ef1b732fb4873b8d26b51fa183a9eea4f2fd0805ed7a54d5d61e9b" => :mavericks
sha256 "e0a967b5f84f3b1d4bc799265f3692faab41ccf7f673749624051a8d87516389" => :mountain_lion
end
depends_on :xcode => :build
def install
xcodebuild "-project", "CoreLocationCLI.xcodeproj", "SYMROOT=build", "-sdk", "macosx#{MacOS.version}"
bin.install "build/Release/CoreLocationCLI"
end
test do
shell_output("#{bin}/CoreLocationCLI -h", 1)
end
end