|
1 | 1 | class Gmt < Formula
|
2 | 2 | desc "Tools for manipulating and plotting geographic and Cartesian data"
|
3 | 3 | homepage "https://www.generic-mapping-tools.org/"
|
4 |
| - url "https://github.com/GenericMappingTools/gmt/releases/download/6.5.0/gmt-6.5.0-src.tar.xz" |
5 |
| - mirror "https://mirrors.ustc.edu.cn/gmt/gmt-6.5.0-src.tar.xz" |
6 |
| - sha256 "4022adb44033f9c1d5a4d275b69506449e4d486efe2218313f3ff7a6c6c3141e" |
7 | 4 | license "LGPL-3.0-or-later"
|
8 | 5 | revision 4
|
9 | 6 | head "https://github.com/GenericMappingTools/gmt.git", branch: "master"
|
10 | 7 |
|
| 8 | + stable do |
| 9 | + url "https://github.com/GenericMappingTools/gmt/releases/download/6.5.0/gmt-6.5.0-src.tar.xz" |
| 10 | + mirror "https://mirrors.ustc.edu.cn/gmt/gmt-6.5.0-src.tar.xz" |
| 11 | + sha256 "4022adb44033f9c1d5a4d275b69506449e4d486efe2218313f3ff7a6c6c3141e" |
| 12 | + |
| 13 | + # Backport update to minimum CMake version |
| 14 | + # https://github.com/GenericMappingTools/gmt/commit/e8d68a575c0427f66b82f28a63ba87cdbd91aca7 |
| 15 | + patch :DATA |
| 16 | + end |
| 17 | + |
11 | 18 | bottle do
|
12 | 19 | sha256 arm64_sequoia: "1b462c2bcbc6e95ce082b68729b36d2b8949045918256d7031c49908e1a7c75f"
|
13 | 20 | sha256 arm64_sonoma: "1d3a2dafaff73abfd68a892b3ca938682e4e4dfbdc80084d47541cdb7207f122"
|
@@ -88,3 +95,16 @@ def caveats
|
88 | 95 | refute_predicate shell_output(cmd), :empty?
|
89 | 96 | end
|
90 | 97 | end
|
| 98 | + |
| 99 | +__END__ |
| 100 | +--- a/CMakeLists.txt |
| 101 | ++++ b/CMakeLists.txt |
| 102 | +@@ -46,7 +46,7 @@ if (${srcdir} STREQUAL ${bindir}) |
| 103 | + endif (${srcdir} STREQUAL ${bindir}) |
| 104 | + |
| 105 | + # Define minimum CMake version required |
| 106 | +-cmake_minimum_required (VERSION 2.8.12) |
| 107 | ++cmake_minimum_required (VERSION 3.16) |
| 108 | + message ("CMake version: ${CMAKE_VERSION}") |
| 109 | + |
| 110 | + # Use NEW behavior with newer CMake releases |
0 commit comments