@@ -2,6 +2,7 @@ class Macaulay2 < Formula
22 @name = "M2"
33 desc "Software system for algebraic geometry research"
44 homepage "http://macaulay2.com"
5+ # when bumping to a new release, also update the submodule commits below
56 url "https://github.com/Macaulay2/M2/archive/refs/tags/release-1.25.11.tar.gz"
67 sha256 "9700005196e4368af52156efaff081a4771fd21545a3cd8c2ee3b0571aeaa17f"
78 license any_of : [ "GPL-2.0-only" , "GPL-3.0-only" ]
@@ -68,10 +69,30 @@ def install
6869 inreplace "M2/Macaulay2/d/CMakeLists.txt" , "M2-supervisor" , "M2-supervisor quadmath" unless OS . mac?
6970
7071 # Place the submodules, since the tarfile doesn't include them
71- system "git" , "clone" , "https://github.com/Macaulay2/M2-emacs.git" , "M2/Macaulay2/editors/emacs"
72- system "git" , "clone" , "https://github.com/Macaulay2/memtailor.git" , "M2/submodules/memtailor"
73- system "git" , "clone" , "https://github.com/Macaulay2/mathic.git" , "M2/submodules/mathic"
74- system "git" , "clone" , "https://github.com/Macaulay2/mathicgb.git" , "M2/submodules/mathicgb"
72+ system (
73+ "git" , "clone" ,
74+ "--revision=524968452e95d010769ece30092edaa09d1e814f" ,
75+ "https://github.com/Macaulay2/M2-emacs.git" ,
76+ "M2/Macaulay2/editors/emacs"
77+ )
78+ system (
79+ "git" , "clone" ,
80+ "--revision=07c84a6852212495182ec32c3bdb589579e342b5" ,
81+ "https://github.com/Macaulay2/memtailor.git" ,
82+ "M2/submodules/memtailor"
83+ )
84+ system (
85+ "git" , "clone" ,
86+ "--revision=7abf77e4ce493b3830c7f8cc09722bbd6c03818e" ,
87+ "https://github.com/Macaulay2/mathic.git" ,
88+ "M2/submodules/mathic"
89+ )
90+ system (
91+ "git" , "clone" ,
92+ "--revision=de139564927563afef383174fd3cf8c93ee18ab3" ,
93+ "https://github.com/Macaulay2/mathicgb.git" ,
94+ "M2/submodules/mathicgb"
95+ )
7596
7697 # Prefix paths for dependencies
7798 lib_prefix = deps . map { |lib | Formula [ lib . name ] . prefix } . join ( ";" )
0 commit comments