2013-11-04 09:08:10 +00:00
|
|
|
class Afio < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Creates cpio-format archives"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://members.chello.nl/~k.holtman/afio.html"
|
|
|
|
url "http://members.chello.nl/~k.holtman/afio-2.5.1.tgz"
|
|
|
|
sha256 "363457a5d6ee422d9b704ef56d26369ca5ee671d7209cfe799cab6e30bf2b99a"
|
2013-11-04 09:08:10 +00:00
|
|
|
|
2014-06-29 03:47:43 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "1a3bbc0e6d6ff0926a75141af4204a6f167af533" => :mavericks
|
|
|
|
sha1 "ffda2ae983cf6e1212aff8f4933799f124ec136f" => :mountain_lion
|
|
|
|
sha1 "68ecadc2fc7e8dd268ac9e6a63fc12927d60f897" => :lion
|
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
# Note - The Freecode website is being no longer being updated and alternative links should be found from now on.
|
2014-06-29 03:22:57 +00:00
|
|
|
|
2013-11-04 09:08:10 +00:00
|
|
|
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"
|
2015-08-03 12:55:31 +00:00
|
|
|
man1.install "afio.1"
|
2013-11-04 09:08:10 +00:00
|
|
|
|
2014-03-18 21:47:27 +00:00
|
|
|
prefix.install "ANNOUNCE-#{version}" => "ANNOUNCE"
|
2015-08-03 12:55:31 +00:00
|
|
|
prefix.install %w[HISTORY INSTALLATION README SCRIPTS]
|
2013-11-04 09:08:10 +00:00
|
|
|
share.install Dir["script*"]
|
|
|
|
end
|
|
|
|
end
|