diff options
| author | Larry Shaffer | 2014-05-23 16:15:26 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-07-18 19:00:43 -0500 |
| commit | 80187a37398f5eed44457dbee5eed74509ff9bdc (patch) | |
| tree | e39901ae8cc820a1b32d976ff3138c993773d0d1 /Library | |
| parent | 8dba43dfde4f765fcddcb1a03c75efa715da0abe (diff) | |
| download | homebrew-80187a37398f5eed44457dbee5eed74509ff9bdc.tar.bz2 | |
quazip: qt/c++ wrapper for zip/unzip package
Closes #29533.
Closes #30940.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/quazip.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/quazip.rb b/Library/Formula/quazip.rb new file mode 100644 index 000000000..48877ea8d --- /dev/null +++ b/Library/Formula/quazip.rb @@ -0,0 +1,40 @@ +require "formula" + +class Quazip < Formula + homepage "http://quazip.sourceforge.net/" + url "https://downloads.sourceforge.net/project/quazip/quazip/0.6.2/quazip-0.6.2.tar.gz" + sha1 "2fdcd063df645f94f047374d7d540b102fc683dc" + + depends_on "qt" + + def install + # On Mavericks we want to target libc++, this requires a unsupported/macx-clang-libc++ flag + if ENV.compiler == :clang and MacOS.version >= :mavericks + spec = "unsupported/macx-clang-libc++" + else + spec = "macx-g++" + end + + args = %W[ + -config release -spec #{spec} + PREFIX=#{prefix} + LIBS+=-L/usr/lib LIBS+=-lz + INCLUDEPATH+=/usr/include + ] + + system "qmake", "quazip.pro", *args + system "make", "install" + + cd "qztest" do + args = %W[-config release -spec #{spec}] + system "qmake", *args + system "make" + libexec.install "qztest" + end + end + + test do + ENV["DYLD_LIBRARY_PATH"] = "#{lib}" + system "#{libexec}/qztest" + end +end |
