aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-05-19 07:37:24 -0700
committerAdam Vandenberg2011-05-19 07:37:24 -0700
commitb2a0b7a8eff0922a20f97d3dd3793e893b2858ea (patch)
treefc0b6422d6ab83be1d849eae5ca196bf303c23fe
parentad07f0181d414a76cfea02c6f044b8e0500cc9c0 (diff)
downloadhomebrew-b2a0b7a8eff0922a20f97d3dd3793e893b2858ea.tar.bz2
Move gz-only strategy into core.
-rw-r--r--Library/Formula/tesseract.rb9
-rw-r--r--Library/Homebrew/download_strategy.rb8
2 files changed, 8 insertions, 9 deletions
diff --git a/Library/Formula/tesseract.rb b/Library/Formula/tesseract.rb
index 99a1c9c63..62639996d 100644
--- a/Library/Formula/tesseract.rb
+++ b/Library/Formula/tesseract.rb
@@ -1,13 +1,4 @@
require 'formula'
-require 'download_strategy'
-
-# Normal strategy tries to untar as well
-class GzipOnlyDownloadStrategy < CurlDownloadStrategy
- def stage
- FileUtils.mv @tarball_path, File.basename(@url)
- safe_system '/usr/bin/gunzip', '-f', File.basename(@url)
- end
-end
class TesseractEnglishData < Formula
url 'http://tesseract-ocr.googlecode.com/files/eng.traineddata.gz',
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index c2219216c..772a3d40c 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -143,6 +143,14 @@ class NoUnzipCurlDownloadStrategy < CurlDownloadStrategy
end
end
+# Normal strategy tries to untar as well
+class GzipOnlyDownloadStrategy < CurlDownloadStrategy
+ def stage
+ FileUtils.mv @tarball_path, File.basename(@url)
+ safe_system '/usr/bin/gunzip', '-f', File.basename(@url)
+ end
+end
+
# This Download Strategy is provided for use with sites that
# only provide HTTPS and also have a broken cert.
# Try not to need this, as we probably won't accept the formula.