aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/geographiclib.rb
blob: 7a2be3ccaf997550b3f8cc3dda536863bf1b1810 (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.39.tar.gz"
  sha1 "7a48a773997abce598e9c42ae8848e4c20f6ae72"

  bottle do
    cellar :any
    sha1 "6e2170f18e90c7ab765f5a78630d3da9aa1a6770" => :yosemite
    sha1 "0b750f088ea24d9f348d452ace17d146a62b2fc7" => :mavericks
    sha1 "62e3b10e42507475cee8b28376cd94f23ee30ca4" => :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