a208893f4a
There hasn't been a stable release in 3 years but it's still being developed so HEAD might be useful. Closes Homebrew/homebrew#41507. Signed-off-by: Xu Cheng <xucheng@me.com>
36 lines
1.1 KiB
Ruby
36 lines
1.1 KiB
Ruby
class Qjson < Formula
|
|
desc "Map JSON to QVariant objects"
|
|
homepage "http://qjson.sourceforge.net"
|
|
url "https://downloads.sourceforge.net/project/qjson/qjson/0.8.1/qjson-0.8.1.tar.bz2"
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/q/qjson/qjson_0.8.1.orig.tar.bz2"
|
|
sha256 "cd4db5b956247c4991a9c3e95512da257cd2a6bd011357e363d02300afc814d9"
|
|
head "https://github.com/flavio/qjson.git"
|
|
|
|
bottle do
|
|
revision 1
|
|
sha1 "22ac2eb6b1345cc6a7a61223be8dae6c90493f66" => :yosemite
|
|
sha1 "2c037b5df8551e2c63341a60609c5b97ab7c4b05" => :mavericks
|
|
sha1 "b34c75bb1e7fc1a7535b71a26b0736c10cef9f59" => :mountain_lion
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "qt"
|
|
|
|
def install
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.cpp").write <<-EOS.undent
|
|
#include <qjson/parser.h>
|
|
int main() {
|
|
QJson::Parser parser;
|
|
return 0;
|
|
}
|
|
EOS
|
|
system ENV.cxx, "-I#{include}", "-L#{lib}", "-lqjson",
|
|
testpath/"test.cpp", "-o", testpath/"test"
|
|
system "./test"
|
|
end
|
|
end
|