From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: [PATCH] gnu: Add qjson. Date: Tue, 8 Nov 2016 21:29:16 +0100 Message-ID: <1478636956-12390-1-git-send-email-jmd@gnu.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4D1Z-0008Gp-4o for guix-devel@gnu.org; Tue, 08 Nov 2016 15:29:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4D1V-0007H9-QC for guix-devel@gnu.org; Tue, 08 Nov 2016 15:29:41 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: John Darrington * gnu/pacackes/qt.scm (qjson): New variable. --- gnu/packages/qt.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index b442356..b434887 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -1285,3 +1285,30 @@ embed content from the World Wide Web into your Qt application. At the same time Web content can be enhanced with native controls.") (license license:lgpl2.1+))) + + +(define-public qjson + (package + (name "qjson") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/flavio/" name + "/archive/" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "163fspi0xc705irv79qw861fmh68pjyla9vx3kqiq6xrdhb9834j")))) + (build-system cmake-build-system) + (inputs + `(("qt-4" ,qt-4))) + (arguments + `(#:tests? #f)) ; no check target + (home-page "http://qjson.sourceforge.net") + (synopsis "Qt library mapping between JSON data and Qt objects") + (description + "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.") + (license license:lgpl2.1))) -- 2.1.4