homebrew-core/Formula/rzip.rb
2012-09-03 11:36:42 -07:00

22 lines
663 B
Ruby

require 'formula'
class Rzip < Formula
url 'http://rzip.samba.org/ftp/rzip/rzip-2.1.tar.gz'
homepage 'http://rzip.samba.org/'
sha1 'efeafc7a5bdd7daa0cea8d797ff21aa28bdfc8d9'
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