homebrew-core/Formula/dtrx.rb
2015-06-05 14:47:57 +01:00

22 lines
562 B
Ruby

require 'formula'
class Dtrx < Formula
desc "Intelligent archive extraction"
homepage 'http://brettcsmith.org/2007/dtrx/'
url 'http://brettcsmith.org/2007/dtrx/dtrx-7.1.tar.gz'
sha1 '05cfe705a04a8b84571b0a5647cd2648720791a4'
depends_on 'cabextract' => :optional
depends_on 'lha' => :optional
depends_on 'unshield' => :optional
depends_on 'unrar' => :recommended
depends_on 'p7zip' => :recommended
def install
system "python", "setup.py", "install", "--prefix=#{prefix}"
end
test do
system "#{bin}/dtrx", "--version"
end
end