diff mbox

[3/5] gnu: Add gwenhywfar.

Message ID 20160606132301.21077-4-rekado@elephly.net
State New
Headers show

Commit Message

Ricardo Wurmus June 6, 2016, 1:22 p.m. UTC
* gnu/packages/gnucash.scm (gwenhywfar): New variable.
---
 gnu/packages/gnucash.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Comments

Leo Famulari June 6, 2016, 2:22 p.m. UTC | #1
On Mon, Jun 06, 2016 at 03:22:59PM +0200, Ricardo Wurmus wrote:
> * gnu/packages/gnucash.scm (gwenhywfar): New variable.

> +    ;; The license includes an explicit additional permission to compile and
> +    ;; distribute this library with the OpenSSL Toolkit.
> +    (license license:lgpl2.1+)))

Only with OpenSSL, but not any other free software TLS implementations?
Ricardo Wurmus June 6, 2016, 3:19 p.m. UTC | #2
Leo Famulari <leo@famulari.name> writes:

> On Mon, Jun 06, 2016 at 03:22:59PM +0200, Ricardo Wurmus wrote:
>> * gnu/packages/gnucash.scm (gwenhywfar): New variable.
>
>> +    ;; The license includes an explicit additional permission to compile and
>> +    ;; distribute this library with the OpenSSL Toolkit.
>> +    (license license:lgpl2.1+)))
>
> Only with OpenSSL, but not any other free software TLS implementations?

Yes.  Here’s the relevant section from COPYING:

~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gwenhywfar is licensed under the GNU LGPL (see below) with this exception:

As the copyright holder of Gwenhywfar, Martin Preuss grants the following
license exception:

Martin Preuss explicitly allows the compilation and distribution of
Gwenhywfar with the OpenSSL Toolkit.
No developer is required to provide this exception in a derived work.
~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~ Ricardo
Efraim Flashner June 6, 2016, 6:19 p.m. UTC | #3
On Mon, Jun 06, 2016 at 05:19:16PM +0200, Ricardo Wurmus wrote:
> 
> Leo Famulari <leo@famulari.name> writes:
> 
> > On Mon, Jun 06, 2016 at 03:22:59PM +0200, Ricardo Wurmus wrote:
> >> * gnu/packages/gnucash.scm (gwenhywfar): New variable.
> >
> >> +    ;; The license includes an explicit additional permission to compile and
> >> +    ;; distribute this library with the OpenSSL Toolkit.
> >> +    (license license:lgpl2.1+)))
> >
> > Only with OpenSSL, but not any other free software TLS implementations?
> 
> Yes.  Here’s the relevant section from COPYING:

offlineimap has a similar openssl exception

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Gwenhywfar is licensed under the GNU LGPL (see below) with this exception:
> 
> As the copyright holder of Gwenhywfar, Martin Preuss grants the following
> license exception:
> 
> Martin Preuss explicitly allows the compilation and distribution of
> Gwenhywfar with the OpenSSL Toolkit.
> No developer is required to provide this exception in a derived work.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ~~ Ricardo
> 
>
Ludovic Courtès June 8, 2016, 12:53 p.m. UTC | #4
Ricardo Wurmus <rekado@elephly.net> skribis:

> * gnu/packages/gnucash.scm (gwenhywfar): New variable.

[...]

> +    (inputs
> +     `(("libgcrypt" ,libgcrypt)
> +       ("gnutls" ,gnutls)
> +       ("openssl" ,openssl)

Do all three libraries show up in ‘guix gc --references’?  In particular
are there programs linked against both OpenSSL and GnuTLS?  That seems a
bit crazy to me, but if it needs to be, then that’s fine!

Otherwise the package LGTM.

Thank you!

Ludo’.
Ricardo Wurmus June 11, 2016, 2:32 p.m. UTC | #5
Ludovic Courtès <ludo@gnu.org> writes:

> Ricardo Wurmus <rekado@elephly.net> skribis:
>
>> * gnu/packages/gnucash.scm (gwenhywfar): New variable.
>
> [...]
>
>> +    (inputs
>> +     `(("libgcrypt" ,libgcrypt)
>> +       ("gnutls" ,gnutls)
>> +       ("openssl" ,openssl)
>
> Do all three libraries show up in ‘guix gc --references’?  In particular
> are there programs linked against both OpenSSL and GnuTLS?  That seems a
> bit crazy to me, but if it needs to be, then that’s fine!

References to all three libraries are, in fact, retained and they are
reported by “guix gc --references”.

~~ Ricardo
Ricardo Wurmus June 11, 2016, 2:56 p.m. UTC | #6
Ludovic Courtès <ludo@gnu.org> writes:

> Ricardo Wurmus <rekado@elephly.net> skribis:
>
>> * gnu/packages/gnucash.scm (gwenhywfar): New variable.
>
> [...]
>
>> +    (inputs
>> +     `(("libgcrypt" ,libgcrypt)
>> +       ("gnutls" ,gnutls)
>> +       ("openssl" ,openssl)
>
> Do all three libraries show up in ‘guix gc --references’?  In particular
> are there programs linked against both OpenSSL and GnuTLS?  That seems a
> bit crazy to me, but if it needs to be, then that’s fine!

References to all three libraries are, in fact, retained and they are
reported by “guix gc --references”.

~~ Ricardo
diff mbox

Patch

diff --git a/gnu/packages/gnucash.scm b/gnu/packages/gnucash.scm
index c39324c..25801aa 100644
--- a/gnu/packages/gnucash.scm
+++ b/gnu/packages/gnucash.scm
@@ -25,12 +25,14 @@ 
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages)
   #:use-module (gnu packages gnome)
+  #:use-module (gnu packages gnupg)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
   #:use-module (gnu packages icu4c)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages tls)
   #:use-module (gnu packages web)
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages xml))
@@ -107,3 +109,44 @@  the double-entry accounting practice.  It includes support for QIF/OFX/HBCI
 import and transaction matching.  It also automates several tasks, such as
 financial calculations or scheduled transactions.")
     (license license:gpl3+)))
+
+(define-public gwenhywfar
+  (package
+    (name "gwenhywfar")
+    (version "4.15.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://www.aquamaniac.de/sites/download/download.php?"
+                           "package=01&release=201&file=01&dummy=gwenhywfar-"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0fp67s932x66xfljb26zbrn8ambbc5y5c3hllr6l284nr63qf3ka"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags
+       (list "--disable-network-checks"
+             ;; Both GTK+2 and QT4 are supported.
+             "--with-guis=gtk2"
+             (string-append "--with-openssl-includes="
+                            (assoc-ref %build-inputs "openssl") "/include")
+             (string-append "--with-openssl-libs="
+                            (assoc-ref %build-inputs "openssl") "/lib"))))
+    (inputs
+     `(("libgcrypt" ,libgcrypt)
+       ("gnutls" ,gnutls)
+       ("openssl" ,openssl)
+       ("gtk+" ,gtk+-2)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "http://www.aquamaniac.de/sites/aqbanking/index.php")
+    (synopsis "Utility library for networking and security applications")
+    (description
+     "This package provides a helper library for networking and security
+applications and libraries.  It is used by AqBanking.")
+    ;; The license includes an explicit additional permission to compile and
+    ;; distribute this library with the OpenSSL Toolkit.
+    (license license:lgpl2.1+)))
+