summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorrhialto <rhialto@pkgsrc.org>2019-10-08 18:37:47 +0000
committerrhialto <rhialto@pkgsrc.org>2019-10-08 18:37:47 +0000
commit9e4b1f44d179d8f98b196d4c6cdb10f01dd7e74a (patch)
tree5f05170ed2e8fccf1922b71d6cb14912245e8ca9 /textproc
parent067c018367e77390209e43e5ed4949cee33ffa59 (diff)
downloadpkgsrc-9e4b1f44d179d8f98b196d4c6cdb10f01dd7e74a.tar.gz
Re-add the last version of py-html2text that supports Python 2.7,
for (at least) misc/calibre.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-html2text-2019.8.11/ALTERNATIVES1
-rw-r--r--textproc/py-html2text-2019.8.11/DESCR4
-rw-r--r--textproc/py-html2text-2019.8.11/Makefile22
-rw-r--r--textproc/py-html2text-2019.8.11/PLIST25
-rw-r--r--textproc/py-html2text-2019.8.11/distinfo6
5 files changed, 58 insertions, 0 deletions
diff --git a/textproc/py-html2text-2019.8.11/ALTERNATIVES b/textproc/py-html2text-2019.8.11/ALTERNATIVES
new file mode 100644
index 00000000000..4997ec044f8
--- /dev/null
+++ b/textproc/py-html2text-2019.8.11/ALTERNATIVES
@@ -0,0 +1 @@
+bin/html2text @PREFIX@/bin/html2text-@PYVERSSUFFIX@
diff --git a/textproc/py-html2text-2019.8.11/DESCR b/textproc/py-html2text-2019.8.11/DESCR
new file mode 100644
index 00000000000..75e9b0fc49e
--- /dev/null
+++ b/textproc/py-html2text-2019.8.11/DESCR
@@ -0,0 +1,4 @@
+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).
+This is the last version that works with Python 2.7.
diff --git a/textproc/py-html2text-2019.8.11/Makefile b/textproc/py-html2text-2019.8.11/Makefile
new file mode 100644
index 00000000000..44988620239
--- /dev/null
+++ b/textproc/py-html2text-2019.8.11/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2019/10/08 18:37:47 rhialto Exp $
+
+DISTNAME= html2text-2019.8.11
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc converters python
+MASTER_SITES= ${MASTER_SITE_PYPI:=h/html2text/}
+
+MAINTAINER= rhialto@NetBSD.org
+HOMEPAGE= https://github.com/Alir3z4/html2text
+COMMENT= Convert HTML into easy-to-read plain ASCII text
+LICENSE= gnu-gpl-v3
+
+USE_LANGUAGES= # none
+# This package is only for Python 2.7, because it is the last version
+# of html2text to work with this Python version.
+PYTHON_VERSIONS_ACCEPTED= 27
+
+post-install:
+ cd ${DESTDIR}${PREFIX}/bin && ${MV} html2text html2text-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-html2text-2019.8.11/PLIST b/textproc/py-html2text-2019.8.11/PLIST
new file mode 100644
index 00000000000..3116b0534db
--- /dev/null
+++ b/textproc/py-html2text-2019.8.11/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1 2019/10/08 18:37:47 rhialto Exp $
+bin/html2text-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/html2text/__init__.py
+${PYSITELIB}/html2text/__init__.pyc
+${PYSITELIB}/html2text/__init__.pyo
+${PYSITELIB}/html2text/__main__.py
+${PYSITELIB}/html2text/__main__.pyc
+${PYSITELIB}/html2text/__main__.pyo
+${PYSITELIB}/html2text/cli.py
+${PYSITELIB}/html2text/cli.pyc
+${PYSITELIB}/html2text/cli.pyo
+${PYSITELIB}/html2text/compat.py
+${PYSITELIB}/html2text/compat.pyc
+${PYSITELIB}/html2text/compat.pyo
+${PYSITELIB}/html2text/config.py
+${PYSITELIB}/html2text/config.pyc
+${PYSITELIB}/html2text/config.pyo
+${PYSITELIB}/html2text/utils.py
+${PYSITELIB}/html2text/utils.pyc
+${PYSITELIB}/html2text/utils.pyo
diff --git a/textproc/py-html2text-2019.8.11/distinfo b/textproc/py-html2text-2019.8.11/distinfo
new file mode 100644
index 00000000000..880a04e70a3
--- /dev/null
+++ b/textproc/py-html2text-2019.8.11/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/10/08 18:37:47 rhialto Exp $
+
+SHA1 (html2text-2019.8.11.tar.gz) = a8f0b4950028478993893d7acf1cc2d2941d2913
+RMD160 (html2text-2019.8.11.tar.gz) = d7794cb2ca31d02d9359aae569a053be688a1e55
+SHA512 (html2text-2019.8.11.tar.gz) = f405bccea18b2898fc8816483e8fa8912b2d508f139d7a65c54218acc87006d8b89e00a12018dc7b911f729036fe4e8a5069242dc00edb40171d4bc149e39ba6
+Size (html2text-2019.8.11.tar.gz) = 48721 bytes