aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharles Karney2014-08-16 17:55:57 -0400
committerMike McQuaid2014-08-22 16:38:16 +0100
commiteedc2ba90847aee772aee872b372f22d1dd93f88 (patch)
tree281efb6b7853d20139d3ae9ac348e584b20a6c49 /Library
parent2530323df069419e7e4a0a4d4c35f70b1e0245f2 (diff)
downloadhomebrew-eedc2ba90847aee772aee872b372f22d1dd93f88.tar.bz2
tidy up geographiclib.rb
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/geographiclib.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/Library/Formula/geographiclib.rb b/Library/Formula/geographiclib.rb
index f8b04e644..4ab137621 100644
--- a/Library/Formula/geographiclib.rb
+++ b/Library/Formula/geographiclib.rb
@@ -1,7 +1,5 @@
require "formula"
-
class Geographiclib < Formula
-
homepage "http://geographiclib.sourceforge.net/"
url "https://downloads.sourceforge.net/project/geographiclib/distrib/GeographicLib-1.37.tar.gz"
sha1 "d18d0c94824fb303ce8942d622bdef78833108cd"
@@ -9,15 +7,13 @@ class Geographiclib < Formula
depends_on "cmake" => :build
def install
-
- # GeographicLib makes a Release build if CMAKE_BUILD_TYPE is'nt set.
+ # GeographicLib makes a Release build if CMAKE_BUILD_TYPE isn't set.
args = std_cmake_args - %w{-DCMAKE_BUILD_TYPE=None}
- Dir.mkdir 'BUILD'
- Dir.chdir 'BUILD' do
+ mkdir 'build'
+ chdir 'build' do
system 'cmake', *args, '..'
system 'make install'
end
-
end
test do