summaryrefslogtreecommitdiff
path: root/textproc/py-html2text
diff options
context:
space:
mode:
authorschmonz <schmonz>2005-12-03 00:47:04 +0000
committerschmonz <schmonz>2005-12-03 00:47:04 +0000
commita69f55a2da5a4c6fe6bd04e51925cdc818cf1e2e (patch)
tree055e2df21e554471bc1857764323b5bed2dc3714 /textproc/py-html2text
parent5681af9ee79a119a8096c845d73034a74e6b5afc (diff)
downloadpkgsrc-a69f55a2da5a4c6fe6bd04e51925cdc818cf1e2e.tar.gz
Initial import of html2text, a Python script that convers a page
of HTML into clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown (a text-to-HTML format).
Diffstat (limited to 'textproc/py-html2text')
-rw-r--r--textproc/py-html2text/DESCR3
-rw-r--r--textproc/py-html2text/Makefile31
-rw-r--r--textproc/py-html2text/PLIST2
-rw-r--r--textproc/py-html2text/distinfo5
4 files changed, 41 insertions, 0 deletions
diff --git a/textproc/py-html2text/DESCR b/textproc/py-html2text/DESCR
new file mode 100644
index 00000000000..9b470655633
--- /dev/null
+++ b/textproc/py-html2text/DESCR
@@ -0,0 +1,3 @@
+html2text is a Python script that convers a page of HTML into clean,
+easy-to-read plain ASCII text. Better yet, that ASCII also happens
+to be valid Markdown (a text-to-HTML format).
diff --git a/textproc/py-html2text/Makefile b/textproc/py-html2text/Makefile
new file mode 100644
index 00000000000..2dc9b1704db
--- /dev/null
+++ b/textproc/py-html2text/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/12/03 00:47:04 schmonz Exp $
+#
+
+DISTNAME= html2text-2.23
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc python
+MASTER_SITES= ${HOMEPAGE}
+EXTRACT_SUFX= .py
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://www.aaronsw.com/2002/html2text/
+COMMENT= Convert HTML into easy-to-read plain ASCII text
+
+WRKSRC= ${WRKDIR}
+
+NO_BUILD= yes
+PYTHON_VERSIONS_ACCEPTED?= 24 23 22 21
+
+INSTALLATION_DIRS= share/html2text
+
+do-extract:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${CP} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKSRC}
+
+do-install:
+ cd ${WRKSRC}; \
+ ${INSTALL_SCRIPT} ${DISTNAME}${EXTRACT_SUFX} \
+ ${PREFIX}/share/html2text/html2text.py
+
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-html2text/PLIST b/textproc/py-html2text/PLIST
new file mode 100644
index 00000000000..bfb01439ec7
--- /dev/null
+++ b/textproc/py-html2text/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/03 00:47:04 schmonz Exp $
+share/html2text/html2text.py
diff --git a/textproc/py-html2text/distinfo b/textproc/py-html2text/distinfo
new file mode 100644
index 00000000000..cf49205c892
--- /dev/null
+++ b/textproc/py-html2text/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/12/03 00:47:04 schmonz Exp $
+
+SHA1 (html2text-2.23.py) = c1691b8f2586cdb7e45ce0395f50104331b84cb0
+RMD160 (html2text-2.23.py) = 76fdefa69ef904ffdf0e2acb85636e2b68e7ecaf
+Size (html2text-2.23.py) = 9795 bytes