summaryrefslogtreecommitdiff
path: root/homebrew/gmtat4
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/gmtat4
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/gmtat4')
-rw-r--r--homebrew/gmtat4/.beer41
-rw-r--r--homebrew/gmtat4/.make.sh-auto6
-rw-r--r--homebrew/gmtat4/_metadata/description1
-rw-r--r--homebrew/gmtat4/_metadata/homepage1
-rw-r--r--homebrew/gmtat4/_metadata/name1
-rw-r--r--homebrew/gmtat4/_metadata/version1
-rwxr-xr-xhomebrew/gmtat4/download.sh1
7 files changed, 52 insertions, 0 deletions
diff --git a/homebrew/gmtat4/.beer b/homebrew/gmtat4/.beer
new file mode 100644
index 000000000..badf56b06
--- /dev/null
+++ b/homebrew/gmtat4/.beer
@@ -0,0 +1,41 @@
+{
+ "name": "GmtAT4",
+ "description": "Manipulation of geographic and Cartesian data sets",
+ "url": "ftp://ftp.soest.hawaii.edu/gmt/gmt-4.5.18-src.tar.bz2",
+ "mirror": "https://fossies.org/linux/misc/GMT/gmt-4.5.18-src.tar.bz2",
+ "homepage": "https://gmt.soest.hawaii.edu/",
+ "depends": [
+ {
+ "depend": "gdal",
+ "build-depend": false
+ },
+ {
+ "depend": "netcdf",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "gshhg",
+ "url": "ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-2.3.7.tar.gz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "ENV.deparallelize ",
+ "system \"./configure\", \"--prefix=#{prefix}\",",
+ "\"--datadir=#{share}/gmt4\",",
+ "\"--enable-gdal=#{Formula[\"gdal\"].opt_prefix}\",",
+ "\"--enable-netcdf=#{Formula[\"netcdf\"].opt_prefix}\",",
+ "\"--enable-shared\",",
+ "\"--enable-triangle\",",
+ "\"--disable-xgrid\",",
+ "\"--disable-mex\"",
+ "system \"make\"",
+ "system \"make\", \"install-gmt\", \"install-data\", \"install-suppl\", \"install-man\"",
+ "(share/\"gmt4\").install resource(\"gshhg\")"
+ ],
+ "version": "4.5.18",
+ "file": "gmt@4.rb"
+} \ No newline at end of file
diff --git a/homebrew/gmtat4/.make.sh-auto b/homebrew/gmtat4/.make.sh-auto
new file mode 100644
index 000000000..adc65bc77
--- /dev/null
+++ b/homebrew/gmtat4/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+ENV.deparallelize
+pkg:configure --datadir=#{share}/gmt4 --enable-gdal=#{Formula[gdal"].opt_prefix}" --enable-netcdf=#{Formula[netcdf"].opt_prefix}" --enable-shared --enable-triangle --disable-xgrid --disable-mex
+make
+make DESTDIR=${PKG_DEST} install-gmt install-data install-suppl install-man
+(share/"gmt4").install resource("gshhg")
diff --git a/homebrew/gmtat4/_metadata/description b/homebrew/gmtat4/_metadata/description
new file mode 100644
index 000000000..819ef5d0e
--- /dev/null
+++ b/homebrew/gmtat4/_metadata/description
@@ -0,0 +1 @@
+Manipulation of geographic and Cartesian data sets
diff --git a/homebrew/gmtat4/_metadata/homepage b/homebrew/gmtat4/_metadata/homepage
new file mode 100644
index 000000000..e2c12d183
--- /dev/null
+++ b/homebrew/gmtat4/_metadata/homepage
@@ -0,0 +1 @@
+https://gmt.soest.hawaii.edu/
diff --git a/homebrew/gmtat4/_metadata/name b/homebrew/gmtat4/_metadata/name
new file mode 100644
index 000000000..5d065c8d0
--- /dev/null
+++ b/homebrew/gmtat4/_metadata/name
@@ -0,0 +1 @@
+GmtAT4
diff --git a/homebrew/gmtat4/_metadata/version b/homebrew/gmtat4/_metadata/version
new file mode 100644
index 000000000..fe10d5672
--- /dev/null
+++ b/homebrew/gmtat4/_metadata/version
@@ -0,0 +1 @@
+4.5.18
diff --git a/homebrew/gmtat4/download.sh b/homebrew/gmtat4/download.sh
new file mode 100755
index 000000000..d541e8527
--- /dev/null
+++ b/homebrew/gmtat4/download.sh
@@ -0,0 +1 @@
+wget ftp://ftp.soest.hawaii.edu/gmt/gmt-4.5.18-src.tar.bz2 || wget https://fossies.org/linux/misc/GMT/gmt-4.5.18-src.tar.bz2 \ No newline at end of file