aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/geographiclib.rb
blob: 22a04556b37b193c7863b6329bc5602fcf4bd816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require "formula"
class Geographiclib < Formula
  homepage "http://geographiclib.sourceforge.net/"
  url "https://downloads.sourceforge.net/project/geographiclib/distrib/GeographicLib-1.38.tar.gz"
  sha1 "e854d6d85cc5b1273fa4044828fadd9e1b151fcd"

  bottle do
    cellar :any
    sha1 "f073cfb05702e53278e63e16e639e983f146339e" => :mavericks
    sha1 "6a29856e399ed02bdfe2ab359acf8b51236a460c" => :mountain_lion
    sha1 "4dec4fdcf143f0b9343aae0c6cc56d25a8b3e660" => :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