pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/qjson Import qjson 0.7.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2cfb5db634fe
branches:  trunk
changeset: 601283:2cfb5db634fe
user:      markd <markd%pkgsrc.org@localhost>
date:      Tue Mar 20 10:12:24 2012 +0000

description:
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.

diffstat:

 devel/qjson/DESCR                               |   7 ++++
 devel/qjson/Makefile                            |  28 ++++++++++++++++
 devel/qjson/PLIST                               |  14 ++++++++
 devel/qjson/buildlink3.mk                       |  13 +++++++
 devel/qjson/distinfo                            |   6 +++
 devel/qjson/files/qjson-config-version.cmake.in |   9 +++++
 devel/qjson/files/qjson-config.cmake.in         |   3 +
 devel/qjson/patches/patch-CMakeLists.txt        |  42 +++++++++++++++++++++++++
 8 files changed, 122 insertions(+), 0 deletions(-)

diffs (154 lines):

diff -r 42c4a7aeea69 -r 2cfb5db634fe devel/qjson/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/qjson/DESCR Tue Mar 20 10:12:24 2012 +0000
@@ -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 -r 42c4a7aeea69 -r 2cfb5db634fe devel/qjson/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/qjson/Makefile      Tue Mar 20 10:12:24 2012 +0000
@@ -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@localhost
+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 -r 42c4a7aeea69 -r 2cfb5db634fe devel/qjson/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/qjson/PLIST Tue Mar 20 10:12:24 2012 +0000
@@ -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 -r 42c4a7aeea69 -r 2cfb5db634fe devel/qjson/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/qjson/buildlink3.mk Tue Mar 20 10:12:24 2012 +0000
@@ -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 -r 42c4a7aeea69 -r 2cfb5db634fe devel/qjson/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/qjson/distinfo      Tue Mar 20 10:12:24 2012 +0000
@@ -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 -r 42c4a7aeea69 -r 2cfb5db634fe devel/qjson/files/qjson-config-version.cmake.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/qjson/files/qjson-config-version.cmake.in   Tue Mar 20 10:12:24 2012 +0000
@@ -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 -r 42c4a7aeea69 -r 2cfb5db634fe devel/qjson/files/qjson-config.cmake.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/qjson/files/qjson-config.cmake.in   Tue Mar 20 10:12:24 2012 +0000
@@ -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 -r 42c4a7aeea69 -r 2cfb5db634fe devel/qjson/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/qjson/patches/patch-CMakeLists.txt  Tue Mar 20 10:12:24 2012 +0000
@@ -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")



Home | Main Index | Thread Index | Old Index