aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-08-19 19:26:09 -0500
committerJack Nagel2012-08-19 19:26:09 -0500
commit4309233d0b8ce2d9ac8803e6188f38bd848c4c44 (patch)
tree8a9d9ce56dcbc07c48a5f26c6624c0203ff275ad /Library
parent1d365272693d049c7fa0177a676cfcb8d2abc898 (diff)
downloadhomebrew-4309233d0b8ce2d9ac8803e6188f38bd848c4c44.tar.bz2
clozure-cl: use Pathname#find instead of loading Find
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/clozure-cl.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/clozure-cl.rb b/Library/Formula/clozure-cl.rb
index 810f845b1..a124953cd 100644
--- a/Library/Formula/clozure-cl.rb
+++ b/Library/Formula/clozure-cl.rb
@@ -1,5 +1,4 @@
require 'formula'
-require 'find'
class ClozureCl < Formula
url 'ftp://ftp.clozure.com/pub/release/1.8/ccl-1.8-darwinx86.tar.gz'
@@ -10,8 +9,8 @@ class ClozureCl < Formula
def install
# Get rid of all the .svn dirs, that for some reason are
# included in the tarball
- Find.find(buildpath) do |path|
- if File.directory?(path) && File.basename(path) == '.svn'
+ buildpath.find do |path|
+ if path.directory? and path.basename.to_s == '.svn'
rm_rf path
Find.prune
end