QJson is a Qt-based library that maps JSON data to QVariant objects.

JSON arrays will be mapped to QVariantList instances, while JSON's
objects will be mapped to QVariantMap.

This is prerequisite of Clementine and many KDE4 ports.

okay landry@
This commit is contained in:
zhuk 2013-02-05 10:31:01 +00:00
parent 601491d9fc
commit 719da6edba
4 changed files with 162 additions and 0 deletions

49
devel/qjson/Makefile Normal file
View File

@ -0,0 +1,49 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/02/05 10:31:01 zhuk Exp $
SHARED_ONLY = Yes
CATEGORIES = devel
COMMENT= Qt-based library that maps JSON data to QVariant objects
DISTNAME = qjson-0.8.1
HOMEPAGE = http://qjson.sourceforge.net/
SHARED_LIBS = qjson 0.0
MODULES = devel/cmake x11/qt4
WANTLIB = m stdc++
MASTER_SITES = https://github.com/downloads/flavio/qjson/
EXTRACT_SUFX = .tar.bz2
TAR = gtar
# LGPLv2
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
BUILD_DEPENDS = devel/doxygen \
archivers/gtar
DOCSDIR = ${PREFIX}/share/doc/qjson
# Test list taken from ${WRKSRC}/tests/CMakeLists.txt
CONFIGURE_ARGS = -DQJSON_BUILD_TESTS:Bool=Yes
UNIT_TESTS = testparser \
testqobjecthelper \
testserializer
post-build:
cd ${WRKSRC}/doc && doxygen
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
cd ${WRKSRC}/doc/html && find . -type d -print0 | \
(cd ${DOCSDIR} && xargs -0 ${INSTALL_DATA_DIR})
find ${WRKSRC}/doc/html -type f -print0 | \
(cd ${DOCSDIR} && xargs -0 -J % ${INSTALL_DATA} % ${DOCSDIR})
do-regress:
.for T in ${UNIT_TESTS}
cd ${WRKBUILD}/tests && ./$T
.endfor
.include <bsd.port.mk>

2
devel/qjson/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (qjson-0.8.1.tar.bz2) = zU21uVYkfEmRqcPpVRLaJXzSpr0BE1fjY9AjAK/IFNk=
SIZE (qjson-0.8.1.tar.bz2) = 64398

3
devel/qjson/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
QJson is a Qt-based library that maps JSON data to QVariant objects.
JSON arrays will be mapped to QVariantList instances, while JSON's
objects will be mapped to QVariantMap.

108
devel/qjson/pkg/PLIST Normal file
View File

@ -0,0 +1,108 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/02/05 10:31:01 zhuk Exp $
include/qjson/
include/qjson/parser.h
include/qjson/parserrunnable.h
include/qjson/qjson_export.h
include/qjson/qobjecthelper.h
include/qjson/serializer.h
include/qjson/serializerrunnable.h
lib/cmake/
lib/cmake/qjson/
lib/cmake/qjson/QJSONConfig.cmake
lib/cmake/qjson/QJSONConfigVersion.cmake
lib/cmake/qjson/QJSONTargets-noconfig.cmake
lib/cmake/qjson/QJSONTargets.cmake
@lib lib/libqjson.so.${LIBqjson_VERSION}
lib/pkgconfig/QJson.pc
share/doc/qjson/
share/doc/qjson/annotated.html
share/doc/qjson/bc_s.png
share/doc/qjson/bdwn.png
share/doc/qjson/classQJson_1_1Parser-members.html
share/doc/qjson/classQJson_1_1Parser.html
share/doc/qjson/classQJson_1_1ParserRunnable-members.html
share/doc/qjson/classQJson_1_1ParserRunnable.html
share/doc/qjson/classQJson_1_1QObjectHelper-members.html
share/doc/qjson/classQJson_1_1QObjectHelper.html
share/doc/qjson/classQJson_1_1Serializer-members.html
share/doc/qjson/classQJson_1_1Serializer.html
share/doc/qjson/classQJson_1_1SerializerRunnable-members.html
share/doc/qjson/classQJson_1_1SerializerRunnable.html
share/doc/qjson/classes.html
share/doc/qjson/classyy_1_1json__parser-members.html
share/doc/qjson/classyy_1_1json__parser.html
share/doc/qjson/classyy_1_1location-members.html
share/doc/qjson/classyy_1_1location.html
share/doc/qjson/classyy_1_1position-members.html
share/doc/qjson/classyy_1_1position.html
share/doc/qjson/classyy_1_1slice-members.html
share/doc/qjson/classyy_1_1slice.html
share/doc/qjson/closed.png
share/doc/qjson/deprecated.html
share/doc/qjson/dir_68267d1309a1af8e8297ef4c3efbcdba.html
share/doc/qjson/doxygen.css
share/doc/qjson/doxygen.png
share/doc/qjson/dynsections.js
share/doc/qjson/files.html
share/doc/qjson/ftv2blank.png
share/doc/qjson/ftv2cl.png
share/doc/qjson/ftv2doc.png
share/doc/qjson/ftv2folderclosed.png
share/doc/qjson/ftv2folderopen.png
share/doc/qjson/ftv2lastnode.png
share/doc/qjson/ftv2link.png
share/doc/qjson/ftv2mlastnode.png
share/doc/qjson/ftv2mnode.png
share/doc/qjson/ftv2mo.png
share/doc/qjson/ftv2node.png
share/doc/qjson/ftv2ns.png
share/doc/qjson/ftv2plastnode.png
share/doc/qjson/ftv2pnode.png
share/doc/qjson/ftv2splitbar.png
share/doc/qjson/ftv2vertline.png
share/doc/qjson/functions.html
share/doc/qjson/functions_func.html
share/doc/qjson/functions_type.html
share/doc/qjson/functions_vars.html
share/doc/qjson/index.html
share/doc/qjson/jquery.js
share/doc/qjson/json__parser_8cc_source.html
share/doc/qjson/json__parser_8hh_source.html
share/doc/qjson/json__scanner_8cpp_source.html
share/doc/qjson/json__scanner_8h_source.html
share/doc/qjson/location_8hh.html
share/doc/qjson/location_8hh_source.html
share/doc/qjson/namespaceQJson.html
share/doc/qjson/namespacemembers.html
share/doc/qjson/namespacemembers_enum.html
share/doc/qjson/namespaces.html
share/doc/qjson/nav_f.png
share/doc/qjson/nav_g.png
share/doc/qjson/nav_h.png
share/doc/qjson/open.png
share/doc/qjson/pages.html
share/doc/qjson/parser_8cpp_source.html
share/doc/qjson/parser_8h_source.html
share/doc/qjson/parser__p_8h_source.html
share/doc/qjson/parserrunnable_8cpp_source.html
share/doc/qjson/parserrunnable_8h_source.html
share/doc/qjson/position_8hh.html
share/doc/qjson/position_8hh_source.html
share/doc/qjson/qjson__debug_8h_source.html
share/doc/qjson/qjson__export_8h_source.html
share/doc/qjson/qobjecthelper_8cpp_source.html
share/doc/qjson/qobjecthelper_8h_source.html
share/doc/qjson/serializer_8cpp_source.html
share/doc/qjson/serializer_8h_source.html
share/doc/qjson/serializerrunnable_8cpp_source.html
share/doc/qjson/serializerrunnable_8h_source.html
share/doc/qjson/stack_8hh_source.html
share/doc/qjson/structyy_1_1json__parser_1_1token-members.html
share/doc/qjson/structyy_1_1json__parser_1_1token.html
share/doc/qjson/sync_off.png
share/doc/qjson/sync_on.png
share/doc/qjson/tab_a.png
share/doc/qjson/tab_b.png
share/doc/qjson/tab_h.png
share/doc/qjson/tab_s.png
share/doc/qjson/tabs.css