grib-api: revision for jasper
This commit is contained in:
parent
5cfcfb3e94
commit
473f826867
1 changed files with 17 additions and 0 deletions
|
@ -2,7 +2,9 @@ class GribApi < Formula
|
||||||
desc "Encode and decode grib messages (editions 1 and 2)"
|
desc "Encode and decode grib messages (editions 1 and 2)"
|
||||||
homepage "https://software.ecmwf.int/wiki/display/GRIB/Home"
|
homepage "https://software.ecmwf.int/wiki/display/GRIB/Home"
|
||||||
url "https://software.ecmwf.int/wiki/download/attachments/3473437/grib_api-1.18.0-Source.tar.gz"
|
url "https://software.ecmwf.int/wiki/download/attachments/3473437/grib_api-1.18.0-Source.tar.gz"
|
||||||
|
mirror "https://distfiles.macports.org/grib_api/grib_api-1.18.0-Source.tar.gz"
|
||||||
sha256 "dfffeeb4df715b234907cb12d6729617bed0df0ff023337c2dd3cd20ab58199e"
|
sha256 "dfffeeb4df715b234907cb12d6729617bed0df0ff023337c2dd3cd20ab58199e"
|
||||||
|
revision 1
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
sha256 "afe0ad7af07bbe0855156c20b07033046a31eea7a070ef18a18fc592815b0f1f" => :sierra
|
sha256 "afe0ad7af07bbe0855156c20b07033046a31eea7a070ef18a18fc592815b0f1f" => :sierra
|
||||||
|
@ -17,7 +19,22 @@ class GribApi < Formula
|
||||||
depends_on "libpng" => :optional
|
depends_on "libpng" => :optional
|
||||||
depends_on :fortran
|
depends_on :fortran
|
||||||
|
|
||||||
|
resource "numpy" do
|
||||||
|
url "https://files.pythonhosted.org/packages/16/f5/b432f028134dd30cfbf6f21b8264a9938e5e0f75204e72453af08d67eb0b/numpy-1.11.2.tar.gz"
|
||||||
|
sha256 "04db2fbd64e2e7c68e740b14402b25af51418fc43a59d9e54172b38b906b0f69"
|
||||||
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
||||||
|
resource("numpy").stage do
|
||||||
|
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
||||||
|
end
|
||||||
|
|
||||||
|
# Fix "no member named 'inmem_' in 'jas_image_t'"
|
||||||
|
inreplace "src/grib_jasper_encoding.c", "image.inmem_ = 1;", ""
|
||||||
|
|
||||||
|
inreplace "CMakeLists.txt", "find_package( OpenJPEG )", ""
|
||||||
|
|
||||||
mkdir "build" do
|
mkdir "build" do
|
||||||
args = std_cmake_args
|
args = std_cmake_args
|
||||||
args << "-DBUILD_SHARED_LIBS=OFF" if build.with? "static"
|
args << "-DBUILD_SHARED_LIBS=OFF" if build.with? "static"
|
||||||
|
|
Loading…
Reference in a new issue