diff options
| author | Adam Vandenberg | 2009-12-01 12:01:29 -0800 |
|---|---|---|
| committer | Max Howell | 2009-12-12 16:24:16 +0000 |
| commit | b84b3e031c6ab9154476b92d3be3a1497f108e70 (patch) | |
| tree | 31edd138acd57d8f87765d034e3d6b8af9d43499 | |
| parent | d3af24a8877ef5414e2fa9fa72585910d75611e8 (diff) | |
| download | homebrew-b84b3e031c6ab9154476b92d3be3a1497f108e70.tar.bz2 | |
Use extracted download strategy.
| -rw-r--r-- | Library/Formula/jython.rb | 9 | ||||
| -rw-r--r-- | Library/Formula/sbt.rb | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/Library/Formula/jython.rb b/Library/Formula/jython.rb index e3844002f..c7d8190a6 100644 --- a/Library/Formula/jython.rb +++ b/Library/Formula/jython.rb @@ -1,19 +1,12 @@ require 'formula' -# even though "file -b" reports this as a zip archive, it's just a binary -class JythonHttpDownloadStrategy <CurlDownloadStrategy - def stage - FileUtils.mv @dl, File.basename(@url) - end -end - class Jython <Formula url 'http://downloads.sourceforge.net/project/jython/jython/2.5.1/jython_installer-2.5.1.jar' homepage 'http://www.jython.org' md5 '2ee978eff4306b23753b3fe9d7af5b37' def download_strategy - JythonHttpDownloadStrategy + NoUnzipCurlDownloadStrategy # Don't unzip jar. end def install diff --git a/Library/Formula/sbt.rb b/Library/Formula/sbt.rb index ea18fe1e8..07da98760 100644 --- a/Library/Formula/sbt.rb +++ b/Library/Formula/sbt.rb @@ -1,12 +1,5 @@ require 'formula' -# even though "file -b" reports this as a zip archive, it's just a binary -class SbtHttpDownloadStrategy <CurlDownloadStrategy - def stage - FileUtils.mv @dl, File.basename(@url) - end -end - class Sbt <Formula JAR = 'sbt-launcher-0.5.5.jar' url "http://simple-build-tool.googlecode.com/files/#{JAR}" @@ -14,7 +7,7 @@ class Sbt <Formula md5 'e3593448b3be17ce1666c6241b8d2f90' def download_strategy - SbtHttpDownloadStrategy + NoUnzipCurlDownloadStrategy # Don't unzip jar. end def install |
