qjson: migrate to boneyard (#7017)

master
Mike McQuaid 2016-11-17 16:39:16 +00:00 committed by GitHub
parent 2a6d326a61
commit 55850e2ff1
2 changed files with 1 additions and 37 deletions

View File

@ -1,37 +0,0 @@
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
cellar :any
revision 2
sha256 "4d47edace9872cd7cb267ca6e77c7f7d55400918cbdc57d45e4ee5d12087f4da" => :el_capitan
sha256 "a505ef97e0a0a3e05013ef1aa641af1104dedb363ff75c7d23b2c3dee5299649" => :yosemite
sha256 "2563c0f4d42e92136279434e9e73201b3117993d2eaa949359dab9c148d71710" => :mavericks
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

View File

@ -253,6 +253,7 @@
"qfits": "homebrew/boneyard",
"qi": "homebrew/boneyard",
"qiv": "homebrew/boneyard",
"qjson": "homebrew/boneyard",
"qrupdate": "homebrew/science",
"quassel": "caskroom/cask",
"qwtpolar": "homebrew/boneyard",