Skip to content

Commit

Permalink
afio 2.5.1
Browse files Browse the repository at this point in the history
Closes Homebrew#23949.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
ryochin authored and adamv committed Nov 6, 2013
1 parent 2a9adad commit 6dc9f4d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Library/Formula/afio.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6dc9f4d

Please sign in to comment.