Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Confession: I completely stole the cURL test here. Closes Homebrew/legacy-homebrew#35836. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
- Loading branch information
1 parent
0ed498f
commit 8b5b547
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
require 'formula' | ||
|
||
class Axel < Formula | ||
homepage 'http://packages.debian.org/wheezy/axel' | ||
url 'http://ftp.de.debian.org/debian/pool/main/a/axel/axel_2.4.orig.tar.gz' | ||
sha1 '6d89a7ce797ddf4c23a210036d640d013fe843ca' | ||
homepage "https://packages.debian.org/sid/axel" | ||
url "https://mirrors.kernel.org/debian/pool/main/a/axel/axel_2.4.orig.tar.gz" | ||
mirror "http://ftp.de.debian.org/debian/pool/main/a/axel/axel_2.4.orig.tar.gz" | ||
sha1 "6d89a7ce797ddf4c23a210036d640d013fe843ca" | ||
|
||
def install | ||
system "./configure", "--prefix=#{prefix}", "--debug=0", "--i18n=0" | ||
system "make" | ||
system "make install" | ||
system "make", "install" | ||
end | ||
|
||
test do | ||
filename = (testpath/"axel.tar.gz") | ||
system bin/"axel", "-o", "axel.tar.gz", stable.url | ||
filename.verify_checksum stable.checksum | ||
assert File.exist?("axel.tar.gz") | ||
end | ||
end |