summaryrefslogtreecommitdiff
path: root/homebrew/gmt
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/gmt
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/gmt')
-rw-r--r--homebrew/gmt/.beer67
-rw-r--r--homebrew/gmt/.make.sh-auto7
-rw-r--r--homebrew/gmt/_metadata/description1
-rw-r--r--homebrew/gmt/_metadata/homepage1
-rw-r--r--homebrew/gmt/_metadata/name1
-rw-r--r--homebrew/gmt/_metadata/version1
-rwxr-xr-xhomebrew/gmt/download.sh1
7 files changed, 79 insertions, 0 deletions
diff --git a/homebrew/gmt/.beer b/homebrew/gmt/.beer
new file mode 100644
index 000000000..d486d2609
--- /dev/null
+++ b/homebrew/gmt/.beer
@@ -0,0 +1,67 @@
+{
+ "name": "Gmt",
+ "description": "Tools for processing and displaying xy and xyz datasets",
+ "url": "ftp://ftp.soest.hawaii.edu/gmt/gmt-5.4.5-src.tar.gz",
+ "mirror": "https://mirrors.ustc.edu.cn/gmt/gmt-5.4.5-src.tar.xz",
+ "homepage": "https://gmt.soest.hawaii.edu/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "fftw",
+ "build-depend": false
+ },
+ {
+ "depend": "gdal",
+ "build-depend": false
+ },
+ {
+ "depend": "netcdf",
+ "build-depend": false
+ },
+ {
+ "depend": "pcre",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "gshhg",
+ "url": "ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-2.3.7.tar.gz"
+ },
+ {
+ "name": "dcw",
+ "url": "ftp://ftp.soest.hawaii.edu/gmt/dcw-gmt-1.1.4.tar.gz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "(buildpath/\"gshhg\").install resource(\"gshhg\")",
+ "(buildpath/\"dcw\").install resource(\"dcw\")",
+ "args = std_cmake_args.concat %W[",
+ "-DCMAKE_INSTALL_PREFIX=#{prefix}",
+ "-DGMT_DOCDIR=#{share}/doc/gmt",
+ "-DGMT_MANDIR=#{man}",
+ "-DGSHHG_ROOT=#{buildpath}/gshhg",
+ "-DCOPY_GSHHG:BOOL=TRUE",
+ "-DDCW_ROOT=#{buildpath}/dcw",
+ "-DCOPY_DCW:BOOL=TRUE",
+ "-DFFTW3_ROOT=#{Formula[\"fftw\"].opt_prefix}",
+ "-DGDAL_ROOT=#{Formula[\"gdal\"].opt_prefix}",
+ "-DNETCDF_ROOT=#{Formula[\"netcdf\"].opt_prefix}",
+ "-DPCRE_ROOT=#{Formula[\"pcre\"].opt_prefix}",
+ "-DFLOCK:BOOL=TRUE",
+ "-DGMT_INSTALL_MODULE_LINKS:BOOL=TRUE",
+ "-DGMT_INSTALL_TRADITIONAL_FOLDERNAMES:BOOL=FALSE",
+ "-DLICENSE_RESTRICTED:BOOL=FALSE",
+ "]",
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", *args",
+ "system \"make\", \"install\""
+ ],
+ "version": "5.4.5",
+ "file": "gmt.rb"
+} \ No newline at end of file
diff --git a/homebrew/gmt/.make.sh-auto b/homebrew/gmt/.make.sh-auto
new file mode 100644
index 000000000..94852b396
--- /dev/null
+++ b/homebrew/gmt/.make.sh-auto
@@ -0,0 +1,7 @@
+pkg:setup
+(buildpath/"gshhg").install resource("gshhg")
+(buildpath/"dcw").install resource("dcw")
+args = std_cmake_args.concat %W[-DCMAKE_INSTALL_PREFIX=#{prefix} -DGMT_DOCDIR=#{share}/doc/gmt -DGMT_MANDIR=#{man} -DGSHHG_ROOT=#{buildpath}/gshhg -DCOPY_GSHHG:BOOL=TRUE -DDCW_ROOT=#{buildpath}/dcw -DCOPY_DCW:BOOL=TRUE -DFFTW3_ROOT=#{Formula["fftw"].opt_prefix} -DGDAL_ROOT=#{Formula["gdal"].opt_prefix} -DNETCDF_ROOT=#{Formula["netcdf"].opt_prefix} -DPCRE_ROOT=#{Formula["pcre"].opt_prefix} -DFLOCK:BOOL=TRUE -DGMT_INSTALL_MODULE_LINKS:BOOL=TRUE -DGMT_INSTALL_TRADITIONAL_FOLDERNAMES:BOOL=FALSE -DLICENSE_RESTRICTED:BOOL=FALSE ]
+mkdir "build" && cd build
+cmake .. *args
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/gmt/_metadata/description b/homebrew/gmt/_metadata/description
new file mode 100644
index 000000000..de2b6ae5e
--- /dev/null
+++ b/homebrew/gmt/_metadata/description
@@ -0,0 +1 @@
+Tools for processing and displaying xy and xyz datasets
diff --git a/homebrew/gmt/_metadata/homepage b/homebrew/gmt/_metadata/homepage
new file mode 100644
index 000000000..e2c12d183
--- /dev/null
+++ b/homebrew/gmt/_metadata/homepage
@@ -0,0 +1 @@
+https://gmt.soest.hawaii.edu/
diff --git a/homebrew/gmt/_metadata/name b/homebrew/gmt/_metadata/name
new file mode 100644
index 000000000..7c88dbd81
--- /dev/null
+++ b/homebrew/gmt/_metadata/name
@@ -0,0 +1 @@
+Gmt
diff --git a/homebrew/gmt/_metadata/version b/homebrew/gmt/_metadata/version
new file mode 100644
index 000000000..8ce222e90
--- /dev/null
+++ b/homebrew/gmt/_metadata/version
@@ -0,0 +1 @@
+5.4.5
diff --git a/homebrew/gmt/download.sh b/homebrew/gmt/download.sh
new file mode 100755
index 000000000..5ea06f1b7
--- /dev/null
+++ b/homebrew/gmt/download.sh
@@ -0,0 +1 @@
+wget ftp://ftp.soest.hawaii.edu/gmt/gmt-5.4.5-src.tar.gz || wget https://mirrors.ustc.edu.cn/gmt/gmt-5.4.5-src.tar.xz \ No newline at end of file