mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 05:29:47 -05:00
Move gz-only strategy into core.
This commit is contained in:
1 parent
ad07f0181d
commit
b2a0b7a8ef
2 files changed
+8
-9
No files matched your search
@@ -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',
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user