homebrew-core/Formula/rzip.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

22 lines
653 B
Ruby

require 'formula'
class Rzip <Formula
url 'http://rzip.samba.org/ftp/rzip/rzip-2.1.tar.gz'
homepage 'http://rzip.samba.org/'
md5 '0a3ba55085661647c12f2b014c51c406'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--mandir=#{man}"
# --mandir doesn't seem to do anything, so we need to modify the
# Makefile ourselves
inreplace "Makefile", /^INSTALL_MAN=.+$/, "INSTALL_MAN=#{man}"
system "make install"
# Make symlinks for `runzip`
File.symlink bin+'rzip', bin+'runzip'
File.symlink man1+'rzip.1', man1+'runzip.1'
end
end