aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/aria2.rb
blob: eb78e67c2c58192b61c91ab41fe4a9ba069e5274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Aria2 < Formula
  homepage 'http://aria2.sourceforge.net/'
  url 'http://downloads.sourceforge.net/project/aria2/stable/aria2-1.16.0/aria2-1.16.0.tar.bz2'
  sha1 'ef7bc1a0fc90f58cc767f240eb49d099c02b93d9'

  depends_on 'pkg-config' => :build
  depends_on 'gnutls'

  # Leopard's libxml2 is too old.
  depends_on 'libxml2' if MacOS.version == :leopard

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end