blob: d952517ccc1785b3688f208383fce3b7c9923782 (
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
27
|
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
|