aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2014-10-28 01:57:24 +0000
committerJack Nagel2014-10-27 21:22:26 -0500
commitf63a5d83fbde476e9aedc471524bbacbe3dc4457 (patch)
tree615f2fa08b03c2c32e540a78b4ca086b694914e8 /Library/Formula
parentd62c54f79376da7b564beaf43c56860fd5f01e24 (diff)
downloadhomebrew-f63a5d83fbde476e9aedc471524bbacbe3dc4457.tar.bz2
qrencode 3.4.4
Version bump, added HEAD, added test. Closes #33663. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/qrencode.rb28
1 files changed, 20 insertions, 8 deletions
diff --git a/Library/Formula/qrencode.rb b/Library/Formula/qrencode.rb
index 007e673c8..b87103749 100644
--- a/Library/Formula/qrencode.rb
+++ b/Library/Formula/qrencode.rb
@@ -1,18 +1,30 @@
-require 'formula'
+require "formula"
class Qrencode < Formula
- homepage 'http://fukuchi.org/works/qrencode/index.html.en'
- url 'http://fukuchi.org/works/qrencode/qrencode-3.4.3.tar.bz2'
- sha1 'a5056cf2fdc699ecf1d3c0cbea7b50993b0bf54e'
- revision 1
+ homepage "https://fukuchi.org/works/qrencode/index.html.en"
+ url "https://fukuchi.org/works/qrencode/qrencode-3.4.4.tar.gz"
+ sha1 "644054a76c8b593acb66a8c8b7dcf1b987c3d0b2"
- depends_on 'pkg-config' => :build
- depends_on 'libpng'
+ 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"
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/qrencode", "123456789", "-o", "test.png"
end
end