[csw-devel] SF.net SVN: gar:[21266] csw/mgar/pkg

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Tue Jun 4 17:47:48 CEST 2013


Revision: 21266
          http://gar.svn.sourceforge.net/gar/?rev=21266&view=rev
Author:   pfelecan
Date:     2013-06-04 15:47:46 +0000 (Tue, 04 Jun 2013)
Log Message:
-----------
qjson/trunk: instantiate

Added Paths:
-----------
    csw/mgar/pkg/qjson/
    csw/mgar/pkg/qjson/Makefile
    csw/mgar/pkg/qjson/branches/
    csw/mgar/pkg/qjson/tags/
    csw/mgar/pkg/qjson/trunk/
    csw/mgar/pkg/qjson/trunk/Makefile
    csw/mgar/pkg/qjson/trunk/checksums
    csw/mgar/pkg/qjson/trunk/files/
    csw/mgar/pkg/qjson/trunk/files/0001-Inhibit-GUI-for-tests.patch

Added: csw/mgar/pkg/qjson/Makefile
===================================================================
--- csw/mgar/pkg/qjson/Makefile	                        (rev 0)
+++ csw/mgar/pkg/qjson/Makefile	2013-06-04 15:47:46 UTC (rev 21266)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/qjson/trunk
___________________________________________________________________
Added: svn:ignore
   + work


Added: csw/mgar/pkg/qjson/trunk/Makefile
===================================================================
--- csw/mgar/pkg/qjson/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/qjson/trunk/Makefile	2013-06-04 15:47:46 UTC (rev 21266)
@@ -0,0 +1,58 @@
+# $Id$
+
+NAME = qjson
+VERSION = 1.0.0
+GARTYPE = v2
+
+DESCRIPTION = Qt-based library that maps JSON data to QVariant objects
+define BLURB
+  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.
+endef
+
+GITHUB_USER		=	flavio
+GITHUB_REFERENCE=	1_0_0
+MASTER_SITES	=	$(GITHUB_MIRROR)
+VENDOR_URL		=	http://qjson.sourceforge.net/
+DISTNAME		=	$(GITHUB_USER)-$(NAME)-101a7c5
+DISTFILES		=	$(NAME)-$(VERSION)$(GITHUB_BALL_EXT)
+PATCHFILES		+=	0001-Inhibit-GUI-for-tests.patch
+
+BUILD_DEP_PKGS	+=	CSWcmake
+BUILD_DEP_PKGS	+=	CSWqt4-dev
+
+GARCOMPILER			=	GNU
+CONFIGURE_ARGS		=	$(DIRPATHS)
+CONFIGURE_SCRIPTS	=	custom
+
+# http://forge.mysql.com/wiki/Autotools_to_CMake_Transition_Guide
+CMAKE_ARGS	+=	-DCMAKE_INSTALL_PREFIX=$(prefix)
+CMAKE_ARGS	+=	-DCMAKE_C_FLAGS="$(CFLAGS)"
+CMAKE_ARGS	+=	-DCMAKE_CXX_FLAGS="$(CXXFLAGS)"
+CMAKE_ARGS	+=	-DCMAKE_INCLUDE_PATH="$(includedir)"
+CMAKE_ARGS	+=	-DCMAKE_LIBRARY_PATH="$(libdir)"
+CMAKE_ARGS	+=	"-DCMAKE_C_FLAGS=$(CFLAGS)"
+CMAKE_ARGS	+=	"-DCMAKE_CXX_FLAGS=$(CXXFLAGS)"
+CMAKE_ARGS	+=	-DCMAKE_VERBOSE_MAKEFILE=ON
+CMAKE_ARGS	+=	-DQJSON_BUILD_TESTS=yes
+
+TEST_SCRIPTS	=	custom
+
+include gar/category.mk
+
+configure-custom:
+	(cd $(WORKSRC) && \
+	 	/usr/bin/env -i \
+		  $(CONFIGURE_ENV) \
+			cmake \
+			. \
+			$(CMAKE_ARGS))
+	@$(MAKECOOKIE)
+
+test-custom:
+	(cd $(WORKSRC)/tests && \
+	 	/usr/bin/env -i \
+		  $(CONFIGURE_ENV) \
+			$(MAKE) ARGS="--verbose --interactive-debug-mode 1" test)
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/qjson/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/qjson/trunk/checksums
===================================================================
--- csw/mgar/pkg/qjson/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/qjson/trunk/checksums	2013-06-04 15:47:46 UTC (rev 21266)
@@ -0,0 +1 @@
+58b70e47dced2e36a88f77379001fd0b  qjson-1.0.0.tar.gz

Added: csw/mgar/pkg/qjson/trunk/files/0001-Inhibit-GUI-for-tests.patch
===================================================================
--- csw/mgar/pkg/qjson/trunk/files/0001-Inhibit-GUI-for-tests.patch	                        (rev 0)
+++ csw/mgar/pkg/qjson/trunk/files/0001-Inhibit-GUI-for-tests.patch	2013-06-04 15:47:46 UTC (rev 21266)
@@ -0,0 +1,26 @@
+From 0a3bc2e68033abf70d9d46f205d66b707b0c1cb1 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Tue, 4 Jun 2013 17:31:06 +0200
+Subject: [PATCH] Inhibit GUI for tests
+
+---
+ CMakeLists.txt | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index afdb581..3625cdb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,9 @@
+ PROJECT(qjson)
+ 
++# this is necessary to run the tests without an X server available;
++# anyway, the library is not GUI oriented
++SET( QT_DONT_USE_QTGUI TRUE )
++
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII" )
+ 
+ # Force cmake 2.8.8 in order to have a decent support of Qt5
+-- 
+1.8.1.4
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list