blob: 70abe2cf45c82924bf3ef55255c20075b128e7ad (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 | require "formula"
class Iprint < Formula
  homepage "http://www.samba.org/ftp/unpacked/junkcode/i.c"
  url "http://ftp.debian.org/debian/pool/main/i/iprint/iprint_1.3.orig.tar.gz"
  sha1 "1b423107cf6b1e5c2257648047ff91f5c6ac2249"
  version "1.3-9"
  bottle do
    cellar :any
    sha1 "05ed7e4f7ab1ecaa578b0660140ca6b802f29beb" => :mavericks
    sha1 "93a78f64b8b51b89d9a37d94850a4347c37e343a" => :mountain_lion
    sha1 "d8b7d305d24c836ae7ffb59033bf15edc812acb3" => :lion
  end
  patch do
    url "http://ftp.debian.org/debian/pool/main/i/iprint/iprint_1.3-9.diff.gz"
    sha1 "6164e8e9bd0e08542de34bbf386cd1f0193f17c5"
  end
  def install
    system "make"
    bin.install "i"
    man1.mkpath
    man1.install "i.1"
  end
  test do
    assert_equal shell_output("#{bin}/i 1234"), "1234 0x4D2 02322 0b10011010010\n"
  end
end
 |