blob: 87b515ac2d1669738d30a7dc02a7501762942394 (
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.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
|