2009-11-25 01:34:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xz < Formula
|
2009-11-25 01:34:14 +00:00
|
|
|
homepage 'http://tukaani.org/xz/'
|
2012-07-28 21:39:12 +00:00
|
|
|
url 'http://tukaani.org/xz/xz-5.0.4.tar.bz2'
|
|
|
|
sha256 '5cd9b060d3a1ad396b3be52c9b9311046a1c369e6062aea752658c435629ce92'
|
2009-11-25 01:34:14 +00:00
|
|
|
|
2011-12-13 22:02:46 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2009-11-25 01:34:14 +00:00
|
|
|
def install
|
2011-12-13 22:02:46 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2010-10-31 19:01:25 +00:00
|
|
|
"--prefix=#{prefix}"
|
2009-11-25 01:34:14 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|