diff mbox

gnu: Add qjson.

Message ID 1478636956-12390-1-git-send-email-jmd@gnu.org
State New
Headers show

Commit Message

John Darrington Nov. 8, 2016, 8:29 p.m. UTC
* gnu/pacackes/qt.scm (qjson): New variable.
---
 gnu/packages/qt.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Comments

Leo Famulari Nov. 8, 2016, 8:50 p.m. UTC | #1
On Tue, Nov 08, 2016 at 09:29:16PM +0100, John Darrington wrote:
> * gnu/pacackes/qt.scm (qjson): New variable.

We removed this in August due to concerns about its use of the
unsupported Qt 4:

http://lists.gnu.org/archive/html/guix-devel/2016-08/msg00414.html

But I guess it's okay to re-add it if there is a use case for it. Too
bad it still needs Qt 4.

https://github.com/flavio/qjson/issues/49
Efraim Flashner Nov. 8, 2016, 8:50 p.m. UTC | #2
On Tue, Nov 08, 2016 at 09:29:16PM +0100, John Darrington wrote:
> * 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
> 

If you have a use for it then go ahead. It was pulled back in August for
using qt-4 and not having any dependants.
Leo Famulari Nov. 8, 2016, 8:51 p.m. UTC | #3
On Tue, Nov 08, 2016 at 09:29:16PM +0100, John Darrington wrote:
> * gnu/pacackes/qt.scm (qjson): New variable.

> +    (license license:lgpl2.1)))

Also, the package we removed described the license as lgpl2.1+. If we
are bringing this package back, please check which is correct.
John Darrington Nov. 8, 2016, 8:56 p.m. UTC | #4
On Tue, Nov 08, 2016 at 03:51:11PM -0500, Leo Famulari wrote:
     On Tue, Nov 08, 2016 at 09:29:16PM +0100, John Darrington wrote:
     > * gnu/pacackes/qt.scm (qjson): New variable.
     
     > +    (license license:lgpl2.1)))
     
     Also, the package we removed described the license as lgpl2.1+. If we
     are bringing this package back, please check which is correct.

lgpl2.1 (not +) is correct.

But actually I'm not likely to have a use for it myself.  I packaged it because I'm 
building another project which I thought was dependent upon it.  But it turned out
I was mistaken.   

I thought it couldn't do any harm to add it, in case it was useful for anyone else.
But I don't really care either way.

J'
diff mbox

Patch

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)))