aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rzip.rb
diff options
context:
space:
mode:
authorJiayong Ou2010-06-21 10:55:24 +0200
committerAdam Vandenberg2010-06-21 09:34:15 -0700
commitc4554bbdca313e76bf2df0366d04e5db752e9907 (patch)
tree826857e0f81cb88cf7d69d0284fa2e767dcd4ef8 /Library/Formula/rzip.rb
parent1a8f940fb646d1b3b957ca434cdfe08b23778350 (diff)
downloadhomebrew-c4554bbdca313e76bf2df0366d04e5db752e9907.tar.bz2
New formula: rzip
rzip is a compression program, similar in functionality to gzip or bzip2, but able to take advantage long distance redundencies in files, which can sometimes allow rzip to produce much better compression ratios than other programs. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/rzip.rb')
-rw-r--r--Library/Formula/rzip.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/rzip.rb b/Library/Formula/rzip.rb
new file mode 100644
index 000000000..ed9603470
--- /dev/null
+++ b/Library/Formula/rzip.rb
@@ -0,0 +1,22 @@
+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