Skip to content

Commit

Permalink
gdb: depend on guile@2.0 instead of guile (#12829)
Browse files Browse the repository at this point in the history
Fixes the --with-guile option, which fails with Guile 2.2.x
  • Loading branch information
ilovezfs committed Apr 24, 2017
1 parent 7d06491 commit 33462b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Formula/gdb.rb
Expand Up @@ -26,14 +26,15 @@ 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"
option "with-all-targets", "Build with support for all targets"

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
Expand All @@ -55,7 +56,7 @@ def install
"--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"
Expand Down

0 comments on commit 33462b9

Please sign in to comment.