diff options
author | markd <markd@pkgsrc.org> | 2012-03-20 10:12:24 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2012-03-20 10:12:24 +0000 |
commit | fa26fff7db05774bbf2410d5d54f2af2a34e83e6 (patch) | |
tree | ecd8f2d42004fa0a6e6d42b404a79198daca594b | |
parent | 26fd28b7263fbfb69db6e33c10360917c78de89f (diff) | |
download | pkgsrc-fa26fff7db05774bbf2410d5d54f2af2a34e83e6.tar.gz |
Import qjson 0.7.1
QJson is a qt-based library that maps JSON data to QVariant objects: JSON
arrays will be mapped to QVariantList instances, while JSON objects will
be mapped to QVariantMap.
-rw-r--r-- | devel/qjson/DESCR | 7 | ||||
-rw-r--r-- | devel/qjson/Makefile | 28 | ||||
-rw-r--r-- | devel/qjson/PLIST | 14 | ||||
-rw-r--r-- | devel/qjson/buildlink3.mk | 13 | ||||
-rw-r--r-- | devel/qjson/distinfo | 6 | ||||
-rw-r--r-- | devel/qjson/files/qjson-config-version.cmake.in | 9 | ||||
-rw-r--r-- | devel/qjson/files/qjson-config.cmake.in | 3 | ||||
-rw-r--r-- | devel/qjson/patches/patch-CMakeLists.txt | 42 |
8 files changed, 122 insertions, 0 deletions
diff --git a/devel/qjson/DESCR b/devel/qjson/DESCR new file mode 100644 index 00000000000..ba4128795bc --- /dev/null +++ b/devel/qjson/DESCR @@ -0,0 +1,7 @@ +JSON (JavaScript Object Notation) is a lightweight data-interchange format. +It can represents integer, real number, string, an ordered sequence of +value, and a collection of name/value pairs. + +QJson is a qt-based library that maps JSON data to QVariant objects: JSON +arrays will be mapped to QVariantList instances, while JSON objects will +be mapped to QVariantMap. diff --git a/devel/qjson/Makefile b/devel/qjson/Makefile new file mode 100644 index 00000000000..7a415734271 --- /dev/null +++ b/devel/qjson/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/03/20 10:12:24 markd Exp $ + +DISTNAME= qjson-0.7.1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qjson/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= markd@NetBSD.org +HOMEPAGE= http://qjson.sourceforge.net/ +COMMENT= Qt library for handling JSON data +LICENSE= gnu-lgpl-v2 + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= c c++ +USE_CMAKE= yes + +WRKSRC= ${WRKDIR}/qjson + +PKGCONFIG_OVERRIDE+= QJson.pc.in + +pre-configure: + ${LN} -sf ${QTDIR}/bin/qmake ${BUILDLINK_DIR}/bin/ + cp ${FILESDIR}/* ${WRKSRC}/ + +.include "../../x11/qt4-libs/buildlink3.mk" +.include "../../x11/qt4-tools/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/qjson/PLIST b/devel/qjson/PLIST new file mode 100644 index 00000000000..8c49176b9d7 --- /dev/null +++ b/devel/qjson/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/03/20 10:12:24 markd Exp $ +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/qjson/qjson-config-version.cmake +lib/cmake/qjson/qjson-config.cmake +lib/libqjson.so +lib/libqjson.so.0 +lib/libqjson.so.${PKGVERSION} +lib/pkgconfig/QJson.pc +share/cmake-2.8/Modules/FindQJSON.cmake diff --git a/devel/qjson/buildlink3.mk b/devel/qjson/buildlink3.mk new file mode 100644 index 00000000000..09046e090ff --- /dev/null +++ b/devel/qjson/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2012/03/20 10:12:24 markd Exp $ + +BUILDLINK_TREE+= qjson + +.if !defined(QJSON_BUILDLINK3_MK) +QJSON_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.qjson+= qjson>=0.7.1 +BUILDLINK_PKGSRCDIR.qjson?= ../../devel/qjson + +.endif # QJSON_BUILDLINK3_MK + +BUILDLINK_TREE+= -qjson diff --git a/devel/qjson/distinfo b/devel/qjson/distinfo new file mode 100644 index 00000000000..d92395fd611 --- /dev/null +++ b/devel/qjson/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/03/20 10:12:24 markd Exp $ + +SHA1 (qjson-0.7.1.tar.bz2) = 19bbef24132b238e99744bb35194c6dadece98f9 +RMD160 (qjson-0.7.1.tar.bz2) = 9b333dda51c70a8994d3203b238fe33ec3281af5 +Size (qjson-0.7.1.tar.bz2) = 38075 bytes +SHA1 (patch-CMakeLists.txt) = 06cab03d5db6ea8f6a59412cd5078202c3f88a2f diff --git a/devel/qjson/files/qjson-config-version.cmake.in b/devel/qjson/files/qjson-config-version.cmake.in new file mode 100644 index 00000000000..d44459f4b32 --- /dev/null +++ b/devel/qjson/files/qjson-config-version.cmake.in @@ -0,0 +1,9 @@ +SET(PACKAGE_VERSION "@QJSON_LIB_VERSION_STRING@") +IF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) + SET(PACKAGE_VERSION_EXACT "true") +ENDIF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) +IF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) + SET(PACKAGE_VERSION_COMPATIBLE "true") +ELSE (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) + SET(PACKAGE_VERSION_UNSUITABLE "true") +ENDIF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) diff --git a/devel/qjson/files/qjson-config.cmake.in b/devel/qjson/files/qjson-config.cmake.in new file mode 100644 index 00000000000..4b77dc782e8 --- /dev/null +++ b/devel/qjson/files/qjson-config.cmake.in @@ -0,0 +1,3 @@ +SET(@CMAKE_PROJECT_NAME@_LIBRARIES "@LIB_INSTALL_DIR@/@LIB_OUT_NAME@" CACHE FILEPATH "Libraries for @CMAKE_PROJECT_NAME@") +SET(@CMAKE_PROJECT_NAME@_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@" CACHE PATH "Include path for @CMAKE_PROJECT_NAME@") +SET(@CMAKE_PROJECT_NAME@_FOUND "TRUE") diff --git a/devel/qjson/patches/patch-CMakeLists.txt b/devel/qjson/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..8f69a85a59a --- /dev/null +++ b/devel/qjson/patches/patch-CMakeLists.txt @@ -0,0 +1,42 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1.1.1 2012/03/20 10:12:24 markd Exp $ + +--- CMakeLists.txt.orig 2009-12-04 00:02:16.000000000 +0000 ++++ CMakeLists.txt +@@ -9,7 +9,7 @@ IF(COMMAND cmake_policy) + ENDIF(COMMAND cmake_policy) + + # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked +-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules") ++set (CMAKE_MODULE_PATH "/local/src/work/pkgsrc/wip/qjson/work.i386/.buildlink/cmake-Modules" ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules") + + set(CMAKE_INSTALL_NAME_DIR ${LIB_INSTALL_DIR}) + +@@ -39,7 +39,7 @@ SET( QT_DONT_USE_QTGUI TRUE ) + SET (LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" ) + SET (LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Directory where lib will install") + SET (INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "The directory the headers are installed in") +-SET (CMAKE_MODULES_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/apps/cmake/modules" CACHE PATH "The directory to install FindQRpc.cmake to") ++SET (CMAKE_MODULES_INSTALL_DIR "${CMAKE_ROOT}/Modules" CACHE PATH "The directory to install FindQJSON.cmake to") + + + set(QJSON_LIB_MAJOR_VERSION "0") +@@ -77,5 +77,19 @@ add_subdirectory(cmake/modules) + # "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + # IMMEDIATE @ONLY) + ++GET_TARGET_PROPERTY(LIB_OUT_NAME qjson LOCATION) ++GET_FILENAME_COMPONENT(LIB_OUT_NAME ${LIB_OUT_NAME} NAME) ++ ++# cmake-modules ++CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/qjson-config.cmake.in ++ ${CMAKE_CURRENT_BINARY_DIR}/qjson-config.cmake ++ @ONLY) ++CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/qjson-config-version.cmake.in ++ ${CMAKE_CURRENT_BINARY_DIR}/qjson-config-version.cmake ++ @ONLY) ++INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/qjson-config.cmake ++ ${CMAKE_CURRENT_BINARY_DIR}/qjson-config-version.cmake ++ DESTINATION "lib/cmake/qjson") ++ + #ADD_CUSTOM_TARGET(uninstall + # "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") |