unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27260: [PATCH] gnu: Add qgpgme.
@ 2017-06-05 21:43 Hartmut Goebel
  2017-06-05 21:52 ` bug#27260: Note: the official name is "QGpgME" Hartmut Goebel
  2017-06-06 11:07 ` bug#27260: [PATCH] gnu: Add qgpgme Danny Milosavljevic
  0 siblings, 2 replies; 4+ messages in thread
From: Hartmut Goebel @ 2017-06-05 21:43 UTC (permalink / raw)
  To: 27260

* gnu/packages/gnupg.scm (qgpgme): New variable.
---
 gnu/packages/gnupg.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index c2b0278..30d5744 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -407,6 +407,34 @@ instead.  This way bug fixes or improvements can be done at a central place
 and every application benefits from this.")
     (license license:lgpl2.1+)))
 
+(define-public qgpgme
+  (package
+    (inherit gpgme)
+    (name "qgpgme")
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'chdir-and-symlink
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((gpgme (assoc-ref inputs "gpgme")))
+               (symlink (string-append gpgme "/lib/libgpgmepp.la")
+                        "lang/cpp/src/libgpgmepp.la")
+               (symlink (string-append gpgme "/lib/libgpgme.la")
+                        "src/libgpgme.la"))
+             (chdir "lang/qt"))))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("gpgme" ,gpgme)
+       ("qtbase" ,qtbase)
+       ,@(package-inputs gpgme)))
+    (synopsis "Qt API bindings for gpgme")
+    (description "QGpgme provides a very high level Qt API around GpgMEpp.
+
+QGpgME was originally developed as part of libkleo and incorporated into
+gpgpme starting with version 1.7.")
+    (license license:gpl2+))) ;; Note: this differs from gpgme
+
 (define-public python-gpg
   (package
     (name "python-gpg")
-- 
2.7.4

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

* bug#27260: Note: the official name is "QGpgME"
  2017-06-05 21:43 bug#27260: [PATCH] gnu: Add qgpgme Hartmut Goebel
@ 2017-06-05 21:52 ` Hartmut Goebel
  2017-06-06 11:07 ` bug#27260: [PATCH] gnu: Add qgpgme Danny Milosavljevic
  1 sibling, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2017-06-05 21:52 UTC (permalink / raw)
  To: 27260

Please note that this package's official name is "QGpgME", not
"qt-gpgme", as we called it on the guix-devel mailinglist.

See
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=blob_plain;f=lang/qt/README

-- 
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] 4+ messages in thread

* bug#27260: [PATCH] gnu: Add qgpgme.
  2017-06-05 21:43 bug#27260: [PATCH] gnu: Add qgpgme Hartmut Goebel
  2017-06-05 21:52 ` bug#27260: Note: the official name is "QGpgME" Hartmut Goebel
@ 2017-06-06 11:07 ` Danny Milosavljevic
  2017-06-06 12:04   ` Hartmut Goebel
  1 sibling, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2017-06-06 11:07 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: 27260

Hi Hartmut,

On Mon,  5 Jun 2017 23:43:33 +0200
Hartmut Goebel <h.goebel@crazy-compilers.com> wrote:

> * gnu/packages/gnupg.scm (qgpgme): New variable.
> ---
>  gnu/packages/gnupg.scm | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
> index c2b0278..30d5744 100644
> --- a/gnu/packages/gnupg.scm
> +++ b/gnu/packages/gnupg.scm
> @@ -407,6 +407,34 @@ instead.  This way bug fixes or improvements can be done at a central place
>  and every application benefits from this.")
>      (license license:lgpl2.1+)))
>  
> +(define-public qgpgme
> +  (package
> +    (inherit gpgme)
> +    (name "qgpgme")
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-before 'build 'chdir-and-symlink
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (let ((gpgme (assoc-ref inputs "gpgme")))
> +               (symlink (string-append gpgme "/lib/libgpgmepp.la")
> +                        "lang/cpp/src/libgpgmepp.la")
> +               (symlink (string-append gpgme "/lib/libgpgme.la")
> +                        "src/libgpgme.la"))
> +             (chdir "lang/qt"))))))

Nice!

Please end the phase in #t.

Otherwise LGTM!

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

* bug#27260: [PATCH] gnu: Add qgpgme.
  2017-06-06 11:07 ` bug#27260: [PATCH] gnu: Add qgpgme Danny Milosavljevic
@ 2017-06-06 12:04   ` Hartmut Goebel
  0 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2017-06-06 12:04 UTC (permalink / raw)
  To: 27260-close

Added the #t
pushed as 6b982a7846780c90e67ed872b30e1f4d6aa819dc

Thanks for reviewing.

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

end of thread, other threads:[~2017-06-06 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05 21:43 bug#27260: [PATCH] gnu: Add qgpgme Hartmut Goebel
2017-06-05 21:52 ` bug#27260: Note: the official name is "QGpgME" Hartmut Goebel
2017-06-06 11:07 ` bug#27260: [PATCH] gnu: Add qgpgme Danny Milosavljevic
2017-06-06 12:04   ` 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).