From 3ad7174f7d3cad94a67338b404fdc220fd2f2e8e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 19 Jan 2013 20:45:59 -0600 Subject: Use new requirement syntax --- Library/Formula/cvs2svn.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula/cvs2svn.rb') diff --git a/Library/Formula/cvs2svn.rb b/Library/Formula/cvs2svn.rb index e6bf23943..7a53b5d81 100644 --- a/Library/Formula/cvs2svn.rb +++ b/Library/Formula/cvs2svn.rb @@ -3,6 +3,8 @@ require 'formula' class PythonWithGdbm < Requirement fatal true + satisfy { quiet_system "python", "-c", "import gdbm" } + def message; <<-EOS.undent The Python being used does not include gdbm support, but it is required to build this formula: @@ -12,10 +14,6 @@ class PythonWithGdbm < Requirement Homebrew's Python includes gdbm support. EOS end - - def satisfied? - quiet_system "python", "-c", "import gdbm" - end end class Cvs2svn < Formula -- cgit v1.2.3