diff mbox

gnu: Add libytnef.

Message ID 20160510221427.524a7501@openmailbox.org
State New
Headers show

Commit Message

Kei Yamashita May 11, 2016, 2:14 a.m. UTC
Another Evolution dependency.
From ef59448eb47ea1a6ec27d953e7903d83a76a7fe6 Mon Sep 17 00:00:00 2001
From: Kei Yamashita <kei@openmailbox.org>

Date: Tue, 10 May 2016 22:05:49 -0400
Subject: [PATCH] gnu: Add libytnef.

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

-- 
2.7.4

Comments

Eric Bavier May 11, 2016, 2:24 p.m. UTC | #1
On Tue, 10 May 2016 22:14:27 -0400
Kei Yamashita <kei@openmailbox.org> wrote:

> * gnu/packages/mail.scm (libytnef): New variable.
> ---
>  gnu/packages/mail.scm | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
> index 2d95753..a8e8716 100644
> --- a/gnu/packages/mail.scm
> +++ b/gnu/packages/mail.scm
> @@ -1232,3 +1232,25 @@ the 64 bit Outlook 2003 pst files.  Utilities are supplied to convert email
>  messages to both mbox and MH mailbox formats.  Contacts can be converted to a
>  simple list, to vcard format, or to ldif format for import to an LDAP server.")
>      (license gpl2+)))
> +
> +(define-public libytnef
> +  (package
> +    (name "libytnef")
> +    (version "1.5")

The latest git source at https://github.com/Yeraze/ytnef has fixes for
several bugs, segfaults, and memory leaks.  The configure.ac there notes
version 1.7, but I don't see any release tarballs.  Could you maybe
pester the maintainer to make a release?

> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "mirror://sourceforge/ytnef/"
> +                                  name "/" version "/" name
> +                                  "-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "0bkmw5sypwbyrawbb66pkc7d6crck529bs0p36j42z045vja28hv"))))
> +    (build-system gnu-build-system)
> +    (home-page "https://github.com/Yeraze/ytnef")
> +    (synopsis "Decodes TNEF streams")

How about "Mail stream decoder" instead?  See section "Synopses and
Descriptions" in the manual.

> +    (description
> +     "ytnef is a program to decode TNEF streams (winmail.dat).  Unlike other
> +similar programs, it can also decode meeting requests and create VCal entries
> +for easy import.  It can also create vCard entries from contact cards and vTodo
> +entries from task entries.")
> +    (license gpl2)))

This should be gpl2+, since the source headers contain the "or later"
verbiage.

Otherwise LGTM.  Could you send an updated patch?
`~Eric
diff mbox

Patch

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 2d95753..a8e8716 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1232,3 +1232,25 @@  the 64 bit Outlook 2003 pst files.  Utilities are supplied to convert email
 messages to both mbox and MH mailbox formats.  Contacts can be converted to a
 simple list, to vcard format, or to ldif format for import to an LDAP server.")
     (license gpl2+)))
+
+(define-public libytnef
+  (package
+    (name "libytnef")
+    (version "1.5")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/ytnef/"
+                                  name "/" version "/" name
+                                  "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0bkmw5sypwbyrawbb66pkc7d6crck529bs0p36j42z045vja28hv"))))
+    (build-system gnu-build-system)
+    (home-page "https://github.com/Yeraze/ytnef")
+    (synopsis "Decodes TNEF streams")
+    (description
+     "ytnef is a program to decode TNEF streams (winmail.dat).  Unlike other
+similar programs, it can also decode meeting requests and create VCal entries
+for easy import.  It can also create vCard entries from contact cards and vTodo
+entries from task entries.")
+    (license gpl2)))