2014-09-25 00:33:40 +00:00
|
|
|
class Iprint < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Provides a print_one function"
|
2015-05-04 04:20:16 +00:00
|
|
|
homepage "https://www.samba.org/ftp/unpacked/junkcode/i.c"
|
2015-11-01 20:53:13 +00:00
|
|
|
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/i/iprint/iprint_1.3.orig.tar.gz"
|
|
|
|
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/i/iprint/iprint_1.3.orig.tar.gz"
|
2014-09-25 00:33:40 +00:00
|
|
|
version "1.3-9"
|
2015-11-01 20:53:13 +00:00
|
|
|
sha256 "1079b2b68f4199bc286ed08abba3ee326ce3b4d346bdf77a7b9a5d5759c243a3"
|
2014-09-25 00:33:40 +00:00
|
|
|
|
2014-09-28 00:18:41 +00:00
|
|
|
bottle do
|
2015-11-01 21:42:26 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 2
|
|
|
|
sha256 "caa018741bb84409295f4fec33bcf427df199e717abf1323c9325d44238548ff" => :el_capitan
|
|
|
|
sha256 "eb0a1df1375a29fd3a88cddbe844820c9650b4ee14406245ee5d93ad41e48586" => :yosemite
|
|
|
|
sha256 "dfc0ad66122de0187db789cdafde75a367dc02748eede381567ca8f8a9208bde" => :mavericks
|
2014-09-28 00:18:41 +00:00
|
|
|
end
|
|
|
|
|
2014-09-25 00:33:40 +00:00
|
|
|
patch do
|
2015-11-01 20:53:13 +00:00
|
|
|
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/i/iprint/iprint_1.3-9.diff.gz"
|
|
|
|
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/i/iprint/iprint_1.3-9.diff.gz"
|
2015-05-04 04:20:16 +00:00
|
|
|
sha256 "3a1ff260e6d639886c005ece754c2c661c0d3ad7f1f127ddb2943c092e18ab74"
|
2014-09-25 00:33:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "i"
|
|
|
|
man1.install "i.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal shell_output("#{bin}/i 1234"), "1234 0x4D2 02322 0b10011010010\n"
|
|
|
|
end
|
|
|
|
end
|