diff options
| author | Ryo Okamoto | 2013-11-04 18:08:10 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-06 06:35:21 -0800 |
| commit | 6dc9f4d01d00c5bdb84541e1e2eb57d3434a56c9 (patch) | |
| tree | 3442120a79e3ac7975881182942e1e2f3bc1b424 /Library/Formula | |
| parent | 2a9adad9995445ccfb7d65941d72f3718a7f6c6b (diff) | |
| download | homebrew-6dc9f4d01d00c5bdb84541e1e2eb57d3434a56c9.tar.bz2 | |
afio 2.5.1
Closes #23949.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/afio.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/afio.rb b/Library/Formula/afio.rb new file mode 100644 index 000000000..00599a0ac --- /dev/null +++ b/Library/Formula/afio.rb @@ -0,0 +1,26 @@ +require 'formula' + +class Afio < Formula + homepage 'http://freecode.com/projects/afio/' + url 'http://members.chello.nl/~k.holtman/afio-2.5.1.tgz' + sha1 'bff6b9a147dc5b0e6bd7f1a76f0b84e4dd9a7dc9' + + option "bzip2", "Use bzip2(1) instead of gzip(1) for compression/decompression" + + def install + if build.include? "bzip2" + inreplace "Makefile", "-DPRG_COMPRESS='\"gzip\"'", "-DPRG_COMPRESS='\"bzip2\"'" + inreplace "afio.c", "with -o: gzip files", "with -o: bzip2 files" + inreplace "afio.1", "gzip", "bzip2" + inreplace "afio.1", "bzip2, bzip2,", "gzip, bzip2," + end + + system "make", "DESTDIR=#{prefix}" + bin.install "afio" + man1.install 'afio.1' + + prefix.install "ANNOUNCE-2.5.1" => "ANNOUNCE" + prefix.install %w(HISTORY INSTALLATION README SCRIPTS) + share.install Dir["script*"] + end +end |
