pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/enriched2html Initial import of enriched2ht...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ad187dbbcf0
branches:  trunk
changeset: 466478:1ad187dbbcf0
user:      agc <agc%pkgsrc.org@localhost>
date:      Mon Jan 19 09:12:27 2004 +0000

description:
Initial import of enriched2html-1.0 into the Packages Collection.

This is useful if you ever receive text/enriched email.

To quote from the author, Brandon Long:

        This program is based on the program in Appendix A of rfc1896.
        It does as much as I can think of to convert text/enriched to
        text/html (since there are so many viewers for text/html).  It
        is a hack.  It is not perfect, and the html it generates is
        far from perfect.  I've tried to follow HTML v3.2, but its
        still not great.

        Usage:
         Pass it the text/enriched body of a message on stdin, and it
         will put the text/html version on stdout.

To make mutt display text/enriched, put this in your .mailcap file:

# enriched.sh converts text/enriched to text/html and then uses lynx to display
text/enriched;  ${PREFIX}/bin/enriched2html | lynx -dump -stdin ; copiousoutput

diffstat:

 converters/enriched2html/DESCR    |  17 +++++++++++++++++
 converters/enriched2html/Makefile |  24 ++++++++++++++++++++++++
 converters/enriched2html/PLIST    |   2 ++
 converters/enriched2html/distinfo |   4 ++++
 4 files changed, 47 insertions(+), 0 deletions(-)

diffs (63 lines):

diff -r 71d279fd54a3 -r 1ad187dbbcf0 converters/enriched2html/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/enriched2html/DESCR    Mon Jan 19 09:12:27 2004 +0000
@@ -0,0 +1,17 @@
+To quote from the author, Brandon Long:
+
+       This program is based on the program in Appendix A of rfc1896. 
+       It does as much as I can think of to convert text/enriched to
+       text/html (since there are so many viewers for text/html).  It
+       is a hack.  It is not perfect, and the html it generates is
+       far from perfect.  I've tried to follow HTML v3.2, but its
+       still not great.
+
+       Usage:
+        Pass it the text/enriched body of a message on stdin, and it
+        will put the text/html version on stdout.
+
+To make mutt display text/enriched, put this in your .mailcap file:
+
+# enriched.sh converts text/enriched to text/html and then uses lynx to display
+text/enriched;  ${PREFIX}/bin/enriched2html | lynx -dump -stdin ; copiousoutput
diff -r 71d279fd54a3 -r 1ad187dbbcf0 converters/enriched2html/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/enriched2html/Makefile Mon Jan 19 09:12:27 2004 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/19 09:12:27 agc Exp $
+#
+
+DISTNAME=      enriched2html-1.0
+CATEGORIES=    converters
+MASTER_SITES=  http://www.fiction.net/blong/programs/mutt/autoview/
+DISTFILES=     enriched2html.c
+
+MAINTAINER=    tech-pkg%netbsd.org@localhost
+HOMEPAGE=      # none
+COMMENT=       Converts from text/enriched to HTML
+
+WRKSRC=                ${WRKDIR}
+
+do-extract:
+       ${CP} ${DISTDIR}/enriched2html.c ${WRKSRC}
+
+do-build:
+       cd ${WRKSRC} && ${CC} ${CFLAGS} enriched2html.c -o enriched2html
+
+do-install:
+       cd ${WRKSRC} && ${INSTALL_PROGRAM} enriched2html ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff -r 71d279fd54a3 -r 1ad187dbbcf0 converters/enriched2html/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/enriched2html/PLIST    Mon Jan 19 09:12:27 2004 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/19 09:12:27 agc Exp $
+bin/enriched2html
diff -r 71d279fd54a3 -r 1ad187dbbcf0 converters/enriched2html/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/enriched2html/distinfo Mon Jan 19 09:12:27 2004 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/19 09:12:27 agc Exp $
+
+SHA1 (enriched2html.c) = 425dc2cc8a6299d65114f51933702cd9c7436e59
+Size (enriched2html.c) = 6921 bytes



Home | Main Index | Thread Index | Old Index