unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#31668] [PATCH 1/2] gnu: Add qtwebview.
@ 2018-05-31 13:53 Hartmut Goebel
  2018-05-31 13:54 ` [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin Hartmut Goebel
  0 siblings, 1 reply; 6+ messages in thread
From: Hartmut Goebel @ 2018-05-31 13:53 UTC (permalink / raw)
  To: 31668

* gnu/packages/qt.scm (qtwebview): New variable.
---
 gnu/packages/qt.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index c3d0bff2f..894269515 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017 Quiliro <quiliro@fsfla.org>
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+;;; Copyright © 2018 Hartmut Goebel <h.goebel@crazy-compilers.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1057,6 +1058,27 @@ between the host (QML/C++ application) and the client (HTML/JavaScript
 application).  The transport mechanism is supported out of the box by the two
 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
 
+(define-public qtwebview
+  (package (inherit qtsvg)
+    (name "qtwebview")
+    (version "5.11.0")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://download.qt.io/official_releases/qt/"
+                                 (version-major+minor version) "/" version
+                                 "/submodules/" name "-everywhere-src-"
+                                 version ".tar.xz"))
+             (sha256
+              (base32
+               "0a89v8mj5pb7a7whyhasf4ms0n34ghfmv2qp0pyxnq56f2bsjbl4"))))
+    (native-inputs
+     `(("perl" ,perl)
+       ("qtdeclarative" ,qtdeclarative)))
+    (synopsis "Display web content in a QML application")
+    (description "Qt WebView provides a way to display web content in a QML
+application without necessarily including a full web browser stack by using
+native APIs where it makes sense.")))
+
 (define-public qtlocation
   (package (inherit qtsvg)
     (name "qtlocation")
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.
  2018-05-31 13:53 [bug#31668] [PATCH 1/2] gnu: Add qtwebview Hartmut Goebel
@ 2018-05-31 13:54 ` Hartmut Goebel
  2018-06-10  2:55   ` 宋文武
  0 siblings, 1 reply; 6+ messages in thread
From: Hartmut Goebel @ 2018-05-31 13:54 UTC (permalink / raw)
  To: 31668

* gnu/packages/qt.scm (qtwebglplugin): New variable.
---
 gnu/packages/qt.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 894269515..a65e08e05 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1058,6 +1058,32 @@ between the host (QML/C++ application) and the client (HTML/JavaScript
 application).  The transport mechanism is supported out of the box by the two
 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
 
+(define-public qtwebglplugin
+  (package (inherit qtsvg)
+    (name "qtwebglplugin")
+    (version "5.11.0")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://download.qt.io/official_releases/qt/"
+                                 (version-major+minor version) "/" version
+                                 "/submodules/" name "-everywhere-src-"
+                                 version ".tar.xz"))
+             (sha256
+              (base32
+               "1al7dv7i9rg4z4p8vnipbjbbgc6113lbfjggxxap3sn6hqs986fm"))))
+    (native-inputs
+     `(("perl" ,perl)
+       ;; The package is implemented badly, thus these need to be native-inputs
+       ("mesa" ,mesa)
+       ("qtwebsockets" ,qtwebsockets)))
+    (synopsis "QPA plugin for running an application via a browser using
+streamed WebGL commands")
+    (description "Qt back end that uses WebGL for rendering. It allows Qt
+applications (with some limitations) to run in a web browser that supports
+WebGL.  WebGL is a JavaScript API for rendering 2D and 3D graphics within any
+compatible web browser without the use of plug-ins.  The API is similar to
+OpenGL ES 2.0 and can be used in HTML5 canvas elements")))
+
 (define-public qtwebview
   (package (inherit qtsvg)
     (name "qtwebview")
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.
  2018-05-31 13:54 ` [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin Hartmut Goebel
@ 2018-06-10  2:55   ` 宋文武
  2018-06-10 18:03     ` Hartmut Goebel
  0 siblings, 1 reply; 6+ messages in thread
From: 宋文武 @ 2018-06-10  2:55 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: 31668

Hartmut Goebel <h.goebel@crazy-compilers.com> writes:

> * gnu/packages/qt.scm (qtwebglplugin): New variable.
> ---
>  gnu/packages/qt.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
> index 894269515..a65e08e05 100644
> --- a/gnu/packages/qt.scm
> +++ b/gnu/packages/qt.scm
> @@ -1058,6 +1058,32 @@ between the host (QML/C++ application) and the client (HTML/JavaScript
>  application).  The transport mechanism is supported out of the box by the two
>  popular web engines, Qt WebKit 2 and Qt WebEngine.")))
>  
> +(define-public qtwebglplugin
> +  (package (inherit qtsvg)
> +    (name "qtwebglplugin")
> +    (version "5.11.0")
> +    (source (origin
> +             (method url-fetch)
> +             (uri (string-append "https://download.qt.io/official_releases/qt/"
> +                                 (version-major+minor version) "/" version
> +                                 "/submodules/" name "-everywhere-src-"
> +                                 version ".tar.xz"))
> +             (sha256
> +              (base32
> +               "1al7dv7i9rg4z4p8vnipbjbbgc6113lbfjggxxap3sn6hqs986fm"))))
> +    (native-inputs
> +     `(("perl" ,perl)
> +       ;; The package is implemented badly, thus these need to be native-inputs
> +       ("mesa" ,mesa)
> +       ("qtwebsockets" ,qtwebsockets)))

Hello, what’s “implemented badly” means?  I think ‘mesa’ and
‘qtwebsockets’ belongs to the ‘inputs’ nicely, since after build
‘qtwebglplugin’ does keep references to them.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.
  2018-06-10  2:55   ` 宋文武
@ 2018-06-10 18:03     ` Hartmut Goebel
  2018-06-11 12:19       ` 宋文武
  0 siblings, 1 reply; 6+ messages in thread
From: Hartmut Goebel @ 2018-06-10 18:03 UTC (permalink / raw)
  To: 宋文武; +Cc: 31668

Am 10.06.2018 um 04:55 schrieb 宋文武:
> Hello, what’s “implemented badly” means?  I think ‘mesa’ and
> ‘qtwebsockets’ belongs to the ‘inputs’ nicely, since after build
> ‘qtwebglplugin’ does keep references to them.

If you put these two into "inputs", the build fails. I can not remember
the details, but ASAIR it looked like somebody missed preparation. You
may want to try yourself, qtwebglplugin build quickly.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.
  2018-06-10 18:03     ` Hartmut Goebel
@ 2018-06-11 12:19       ` 宋文武
  2018-06-12 20:49         ` bug#31668: " Hartmut Goebel
  0 siblings, 1 reply; 6+ messages in thread
From: 宋文武 @ 2018-06-11 12:19 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: 31668

Hartmut Goebel <h.goebel@crazy-compilers.com> writes:

> Am 10.06.2018 um 04:55 schrieb 宋文武:
>> Hello, what’s “implemented badly” means?  I think ‘mesa’ and
>> ‘qtwebsockets’ belongs to the ‘inputs’ nicely, since after build
>> ‘qtwebglplugin’ does keep references to them.
>
> If you put these two into "inputs", the build fails. I can not remember
> the details, but ASAIR it looked like somebody missed preparation. You
> may want to try yourself, qtwebglplugin build quickly.

Oh, that’s due to the package inherit from ‘qtsvg’, and in the inherited
‘configure-qmake’ phase, it will run ‘(assoc-ref inputs "qtbase")’.  Add
‘qtbase’ to ‘inputs’ will make it built, and the ‘perl’ is not needed,
as the below works for me:
--8<---------------cut here---------------start------------->8---
    (native-inputs '())
    (inputs
     `(("mesa" ,mesa)
       ("qtbase" ,qtbase)
       ("qtwebsockets" ,qtwebsockets)))
--8<---------------cut here---------------end--------------->8---

Otherwise, look good to me, thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#31668: [PATCH 2/2] gnu: Add qtwebglplugin.
  2018-06-11 12:19       ` 宋文武
@ 2018-06-12 20:49         ` Hartmut Goebel
  0 siblings, 0 replies; 6+ messages in thread
From: Hartmut Goebel @ 2018-06-12 20:49 UTC (permalink / raw)
  To: 宋文武; +Cc: 31668-close

Pushed as b5792b9cb8c592d4b6da76bbb2acb55cd233e715, crediting your work.

Thanks for the review.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-12 20:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-31 13:53 [bug#31668] [PATCH 1/2] gnu: Add qtwebview Hartmut Goebel
2018-05-31 13:54 ` [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin Hartmut Goebel
2018-06-10  2:55   ` 宋文武
2018-06-10 18:03     ` Hartmut Goebel
2018-06-11 12:19       ` 宋文武
2018-06-12 20:49         ` bug#31668: " Hartmut Goebel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).