afio: remove options

This commit is contained in:
FX Coudert 2018-09-18 22:16:44 +02:00
parent 7c545396bc
commit 69b55fe8b2

View file

@ -16,20 +16,7 @@ class Afio < Formula
sha256 "7ff316d9e43e5a55b95d381f13f0429a87ff36d39425fb62ec2af2cb00fc22af" => :lion
end
# Note - The Freecode website is no longer being updated and alternative
# links should be found from now on.
option "with-bzip2", "Use bzip2(1) instead of gzip(1) for compression/decompression"
deprecated_option "bzip2" => "with-bzip2"
def install
if build.with? "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"