26 lines
734 B
Ruby
26 lines
734 B
Ruby
require "formula"
|
|
class Geographiclib < Formula
|
|
homepage "http://geographiclib.sourceforge.net/"
|
|
url "https://downloads.sourceforge.net/project/geographiclib/distrib/GeographicLib-1.40.tar.gz"
|
|
sha1 "6cdebeeef7a5bbae26133c15ba011ddc4c3b7d3f"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "0b2b506277d3db7a2877b27ec016bd428ec92cad" => :yosemite
|
|
sha1 "eee6cc9c28406055baee1acc616288a45a268fe9" => :mavericks
|
|
sha1 "e74d8493c187c2d0a42357796156b086a6f97c68" => :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
|