67 lines
2.3 KiB
Ruby
67 lines
2.3 KiB
Ruby
class GribApi < Formula
|
|
desc "Encode and decode grib messages (editions 1 and 2)"
|
|
homepage "https://software.ecmwf.int/wiki/display/GRIB/Home"
|
|
url "https://software.ecmwf.int/wiki/download/attachments/3473437/grib_api-1.14.5-Source.tar.gz"
|
|
sha256 "047029afca9445047f8fce8250146f6b17d1bc4eb9c17fcaa8e74aa173c4ab08"
|
|
|
|
bottle do
|
|
sha256 "7a8e7b2f8b4f3d19a14d11f095710b48d2ee7e75db94869cccb498212ddbbe2c" => :el_capitan
|
|
sha256 "e636c97f2e346299004a2fd253a166d85afdbe10f3401340a48274394489019c" => :yosemite
|
|
sha256 "fd24fe432bc29f78dd58e3f1fd8f04475f2397ff547a183e46d1a69dbb54228a" => :mavericks
|
|
end
|
|
|
|
depends_on :fortran
|
|
depends_on "cmake" => :build
|
|
depends_on "jasper" => :recommended
|
|
depends_on "openjpeg" => :optional
|
|
|
|
# Fixes build errors in Lion
|
|
# https://software.ecmwf.int/wiki/plugins/viewsource/viewpagesrc.action?pageId=12648475
|
|
patch :DATA
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
grib_samples_path = shell_output("#{bin}/grib_info -t").strip
|
|
system "#{bin}/grib_ls", "#{grib_samples_path}/GRIB1.tmpl"
|
|
system "#{bin}/grib_ls", "#{grib_samples_path}/GRIB2.tmpl"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/configure b/configure
|
|
index 0a88b28..9dafe46 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -7006,7 +7006,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
darwin* | rhapsody*)
|
|
# PIC is the default on this platform
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
- lt_prog_compiler_pic='-fno-common'
|
|
+ #lt_prog_compiler_pic='-fno-common'
|
|
;;
|
|
|
|
hpux*)
|
|
@@ -12186,7 +12186,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
darwin* | rhapsody*)
|
|
# PIC is the default on this platform
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
- lt_prog_compiler_pic_F77='-fno-common'
|
|
+ #lt_prog_compiler_pic_F77='-fno-common'
|
|
;;
|
|
|
|
hpux*)
|
|
@@ -15214,7 +15214,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
darwin* | rhapsody*)
|
|
# PIC is the default on this platform
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
- lt_prog_compiler_pic_FC='-fno-common'
|
|
+ #lt_prog_compiler_pic_FC='-fno-common'
|
|
;;
|
|
|
|
hpux*)
|