blob: 1ef919f57287334b192358ea136e01dfd21ebfae (
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
34
35
36
37
|
require "formula"
class Qrencode < Formula
homepage "https://fukuchi.org/works/qrencode/index.html.en"
url "https://fukuchi.org/works/qrencode/qrencode-3.4.4.tar.gz"
sha1 "644054a76c8b593acb66a8c8b7dcf1b987c3d0b2"
bottle do
cellar :any
sha1 "2a79a4f7f5dce4490e31cab8277f3a492e77aa4a" => :yosemite
sha1 "26e2a0641f7556fe3e7d44da7b05644c25b1ae04" => :mavericks
sha1 "f0797c8fd3b500f79300868248c07d3144712a96" => :mountain_lion
end
head do
url "https://github.com/fukuchi/libqrencode.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "libpng"
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{bin}/qrencode", "123456789", "-o", "test.png"
end
end
|