gdb: depend on guile@2.0 instead of guile (#12829)
Fixes the --with-guile option, which fails with Guile 2.2.x
This commit is contained in:
parent
7d06491e77
commit
33462b9292
1 changed files with 3 additions and 2 deletions
|
@ -26,6 +26,7 @@ class Gdb < Formula
|
|||
end
|
||||
|
||||
deprecated_option "with-brewed-python" => "with-python"
|
||||
deprecated_option "with-guile" => "with-guile@2.0"
|
||||
|
||||
option "with-python", "Use the Homebrew version of Python; by default system Python is used"
|
||||
option "with-version-suffix", "Add a version suffix to program"
|
||||
|
@ -33,7 +34,7 @@ class Gdb < Formula
|
|||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "python" => :optional
|
||||
depends_on "guile" => :optional
|
||||
depends_on "guile@2.0" => :optional
|
||||
|
||||
if MacOS.version >= :sierra
|
||||
patch do
|
||||
|
@ -55,7 +56,7 @@ class Gdb < Formula
|
|||
"--disable-dependency-tracking",
|
||||
]
|
||||
|
||||
args << "--with-guile" if build.with? "guile"
|
||||
args << "--with-guile" if build.with? "guile@2.0"
|
||||
args << "--enable-targets=all" if build.with? "all-targets"
|
||||
|
||||
if build.with? "python"
|
||||
|
|
Loading…
Reference in a new issue