Revert "qjson: migrate to boneyard (#7017)"

This reverts commit 55850e2ff1.
This commit is contained in:
ilovezfs 2016-11-30 02:24:10 -08:00
parent 54817b2098
commit 87dc8e4515
2 changed files with 37 additions and 1 deletions

37
Formula/qjson.rb Normal file
View file

@ -0,0 +1,37 @@
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

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