Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macaulay2: 1.17 #251

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12, macos-13, macos-14, macos-15]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
Expand Down
17 changes: 4 additions & 13 deletions Formula/macaulay2.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
class Macaulay2 < Formula

Check failure on line 1 in Formula/macaulay2.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

stable version should not decrease (from 1.24.05 to 1.17)
@name = "M2"
desc "Software system for algebraic geometry research"
homepage "http://macaulay2.com"
url "https://github.com/Macaulay2/M2/archive/refs/tags/release-1.24.05.tar.gz"
sha256 "63b8c9931a5cbd0b937ad6ddb81530c26f3fbe5971cc935d294772652ebcf101"
url "https://github.com/Macaulay2/M2/archive/refs/tags/release-1.17.tar.gz"
sha256 "520fdccd5225e40a3f56512de603e98a8343bdbb9ed699b04c75d48b3c5be9a2"
license any_of: ["GPL-2.0-only", "GPL-3.0-only"]
revision 1

head "https://github.com/Macaulay2/M2/archive/refs/heads/development.tar.gz"

bottle do
root_url "https://ghcr.io/v2/macaulay2/tap"
sha256 cellar: :any, arm64_sonoma: "9fa62984c1f40bda3720b556fb384bcec36fa7780c76d57234b039b1a6b430fd"
sha256 cellar: :any, ventura: "5b821509c8a71d914fb4fb2d2887601a315293052b01e86803ea85d5e460b645"
sha256 cellar: :any, monterey: "5c987cd5c60e83ad5ffe5fcb772277b2fc39918c6fcd252936630635eb455ae8"
sha256 x86_64_linux: "fdd8b0361c22e532c5b5107998d7dce913adaa23119ce5eca75d137cee48110d"
end

depends_on "bison" => :build
depends_on "cmake" => :build
Expand All @@ -37,6 +26,7 @@
depends_on "mpfi"
depends_on "mpfr"
depends_on "mpsolve"
depends_on "msolve"
depends_on "node"
depends_on "ntl"
depends_on "openblas" unless OS.mac?
Expand All @@ -56,7 +46,7 @@

patch :DATA

def install

Check warning on line 49 in Formula/macaulay2.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

`brew install --verbose --formula --build-bottle macaulay2/tap/macaulay2` failed on Linux!

::error::Failure while executing; `patch -g 0 -f -p1` exited with 1. Here's the output:%0Apatching file M2/Macaulay2/m2/packages.m2%0AHunk #1 FAILED at 188.%0A1 out of 1 hunk FAILED -- saving rejects to file M2/Macaulay2/m2/packages.m2.rej%0Apatching file M2/cmake/check-libraries.cmake%0AHunk #1 FAILED at 43.%0A1 out of 1 hunk FAILED -- saving rejects to file M2/cmake/check-libraries.cmake.rej%0Apatching file M2/Macaulay2/packages/Topcom.m2%0AHunk #1 succeeded at 299 (offset -18 lines).%0A
# Don't print the shims prefix path
inreplace "M2/Macaulay2/packages/Macaulay2Doc/functions/findProgram-doc.m2", "Verbose => true", "Verbose => false"

Expand Down Expand Up @@ -99,6 +89,7 @@
system "#{bin}/M2", "--version"
system "#{bin}/M2", "--check", "1", "-e", "exit 0"
# system "#{bin}/M2", "--check", "2", "-e", "exit 0"
# system "#{bin}/M2", "--check", "3", "-e", "exit 0"
end
end

Expand Down
Loading