require "formula" class Geographiclib < Formula homepage "http://geographiclib.sourceforge.net/" url "https://downloads.sourceforge.net/project/geographiclib/distrib/GeographicLib-1.39.tar.gz" sha1 "7a48a773997abce598e9c42ae8848e4c20f6ae72" bottle do cellar :any revision 1 sha1 "1f091f2ac6bc3dbaeb40ba2cf1052cfb2170e733" => :yosemite sha1 "fa1aab22b859ee25bec1e91b868553d57cda76da" => :mavericks sha1 "a0c31b8e51e44175a07bc22ba7917621231593cd" => :mountain_lion end depends_on "cmake" => :build def install mkdir "build" do system "cmake", "..", *std_cmake_args system "make", "install" end end test do system "GeoConvert", "-p", "-3", "-m", "--input-string", "33.3 44.4" end end