summaryrefslogtreecommitdiff
path: root/homebrew/gribapi
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/gribapi')
-rw-r--r--homebrew/gribapi/.beer48
-rw-r--r--homebrew/gribapi/.make.sh-auto6
-rw-r--r--homebrew/gribapi/_metadata/description1
-rw-r--r--homebrew/gribapi/_metadata/homepage1
-rw-r--r--homebrew/gribapi/_metadata/name1
-rw-r--r--homebrew/gribapi/_metadata/version1
-rwxr-xr-xhomebrew/gribapi/download.sh1
7 files changed, 59 insertions, 0 deletions
diff --git a/homebrew/gribapi/.beer b/homebrew/gribapi/.beer
new file mode 100644
index 000000000..941d83872
--- /dev/null
+++ b/homebrew/gribapi/.beer
@@ -0,0 +1,48 @@
+{
+ "name": "GribApi",
+ "description": "Encode and decode grib messages (editions 1 and 2)",
+ "url": "https://deb.debian.org/debian/pool/main/g/grib-api/grib-api_1.27.0.orig.tar.xz",
+ "mirror": null,
+ "homepage": "https://software.ecmwf.int/wiki/display/GRIB/Home",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "gcc",
+ "build-depend": false
+ },
+ {
+ "depend": "jasper",
+ "build-depend": false
+ },
+ {
+ "depend": "libpng",
+ "build-depend": false
+ },
+ {
+ "depend": "numpy",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [
+ {
+ "conflict": "eccodes",
+ "reason": null
+ }
+ ],
+ "patches": [],
+ "install": [
+ "inreplace \"src/grib_jasper_encoding.c\", \"image.inmem_ = 1;\", \"\"",
+ "inreplace \"CMakeLists.txt\", \"find_package( OpenJPEG )\", \"\"",
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", *std_cmake_args, \"-DENABLE_NETCDF=OFF\",",
+ "\"-DENABLE_PNG=ON\",",
+ "\"-DPNG_PNG_INCLUDE_DIR=#{Formula[\"libpng\"].opt_include}\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "1.27.0",
+ "file": "grib-api.rb"
+} \ No newline at end of file
diff --git a/homebrew/gribapi/.make.sh-auto b/homebrew/gribapi/.make.sh-auto
new file mode 100644
index 000000000..e78c4a913
--- /dev/null
+++ b/homebrew/gribapi/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+inreplace "src/grib_jasper_encoding.c", "image.inmem_ = 1;", ""
+inreplace "CMakeLists.txt", "find_package( OpenJPEG )", ""
+mkdir "build" && cd build
+cmake .. -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DENABLE_NETCDF=OFF -DENABLE_PNG=ON -DPNG_PNG_INCLUDE_DIR=#{Formula[libpng"].opt_include}"
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/gribapi/_metadata/description b/homebrew/gribapi/_metadata/description
new file mode 100644
index 000000000..c1162b239
--- /dev/null
+++ b/homebrew/gribapi/_metadata/description
@@ -0,0 +1 @@
+Encode and decode grib messages (editions 1 and 2)
diff --git a/homebrew/gribapi/_metadata/homepage b/homebrew/gribapi/_metadata/homepage
new file mode 100644
index 000000000..e20d4d657
--- /dev/null
+++ b/homebrew/gribapi/_metadata/homepage
@@ -0,0 +1 @@
+https://software.ecmwf.int/wiki/display/GRIB/Home
diff --git a/homebrew/gribapi/_metadata/name b/homebrew/gribapi/_metadata/name
new file mode 100644
index 000000000..03cfecaff
--- /dev/null
+++ b/homebrew/gribapi/_metadata/name
@@ -0,0 +1 @@
+GribApi
diff --git a/homebrew/gribapi/_metadata/version b/homebrew/gribapi/_metadata/version
new file mode 100644
index 000000000..5db08bf2d
--- /dev/null
+++ b/homebrew/gribapi/_metadata/version
@@ -0,0 +1 @@
+1.27.0
diff --git a/homebrew/gribapi/download.sh b/homebrew/gribapi/download.sh
new file mode 100755
index 000000000..46a58b6a8
--- /dev/null
+++ b/homebrew/gribapi/download.sh
@@ -0,0 +1 @@
+wget https://deb.debian.org/debian/pool/main/g/grib-api/grib-api_1.27.0.orig.tar.xz \ No newline at end of file