aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-01-13 19:54:48 +0000
committerMike McQuaid2015-01-13 21:27:54 +0000
commit13db0363dc82eb44d536b96346fb6de44fc664a4 (patch)
tree5fe5acd7ae95328870dafeef5892b86f9827767f /Library
parentc7523dc8b614358f0ee72a08fd7c57aa701d95bf (diff)
downloadhomebrew-13db0363dc82eb44d536b96346fb6de44fc664a4.tar.bz2
axel: modernise and add test
Confession: I completely stole the cURL test here. Closes #35836. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/axel.rb18
1 files changed, 12 insertions, 6 deletions
diff --git a/Library/Formula/axel.rb b/Library/Formula/axel.rb
index f9a4fee5f..fe361ca0e 100644
--- a/Library/Formula/axel.rb
+++ b/Library/Formula/axel.rb
@@ -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