Import of pkgsrc-2015Q1

This commit is contained in:
2016-01-21 23:40:00 +01:00
committed by sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870539 additions and 795424 deletions
+7 -13
View File
@@ -1,25 +1,19 @@
# $NetBSD: Makefile,v 1.27 2014/01/25 10:30:24 wiz Exp $
# $NetBSD: Makefile,v 1.38 2015/03/09 08:08:48 wiz Exp $
DISTNAME= html2text-3.200.3
DISTNAME= html2text-2015.2.18
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= http://pypi.python.org/packages/source/h/html2text/
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://www.aaronsw.com/2002/html2text/
HOMEPAGE= https://pypi.python.org/pypi/html2text/
COMMENT= Convert HTML into easy-to-read plain ASCII text
LICENSE= gnu-gpl-v2
PYTHON_SELF_CONFLICT= yes
NO_BUILD= yes
REPLACE_PYTHON= html2text.py
INSTALLATION_DIRS= share/html2text
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/html2text.py ${DESTDIR}${PREFIX}/share/html2text
PYTHON_SELF_CONFLICT= yes
PYDISTUTILSPKG= yes
REPLACE_PYTHON= html2text/__init__.py
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
+23 -2
View File
@@ -1,2 +1,23 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:17:25 joerg Exp $
share/html2text/html2text.py
@comment $NetBSD: PLIST,v 1.9 2014/12/07 17:27:25 wiz Exp $
bin/html2text
${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}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/html2text/__init__.py
${PYSITELIB}/html2text/__init__.pyc
${PYSITELIB}/html2text/__init__.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
+4 -5
View File
@@ -1,6 +1,5 @@
$NetBSD: distinfo,v 1.16 2013/06/06 01:52:01 schmonz Exp $
$NetBSD: distinfo,v 1.25 2015/03/09 08:08:48 wiz Exp $
SHA1 (html2text-3.200.3.tar.gz) = ad16673a3e999b7b20ee9c83794d84f641321ae3
RMD160 (html2text-3.200.3.tar.gz) = c17fe2f1fd558bba544f94aa8a669f5365e8d201
Size (html2text-3.200.3.tar.gz) = 21446 bytes
SHA1 (patch-aa) = bb965a3ab2f6015fa3e71e21d535ad1ef701b12a
SHA1 (html2text-2015.2.18.tar.gz) = 158a08df392e30d90787d4fa7e4d600fe1664c9c
RMD160 (html2text-2015.2.18.tar.gz) = 49ec06a629f308d76b2ec2f205fd2c6dc3217bd4
Size (html2text-2015.2.18.tar.gz) = 35508 bytes
-23
View File
@@ -1,23 +0,0 @@
$NetBSD: patch-aa,v 1.8 2013/06/06 01:52:01 schmonz Exp $
Small cleanup patch from Debian.
--- html2text.py.orig 2012-01-07 15:00:40.000000000 +0000
+++ html2text.py
@@ -479,6 +479,7 @@ class HTML2Text(HTMLParser.HTMLParser):
if has_key(attrs, 'src'):
attrs['href'] = attrs['src']
alt = attrs.get('alt', '')
+ alt = re.sub('\n', ' ', alt)
if self.inline_links:
self.o("![")
self.o(alt)
@@ -512,7 +513,7 @@ class HTML2Text(HTMLParser.HTMLParser):
list_style = tag
numbering_start = list_numbering_start(attrs)
self.list.append({'name':list_style, 'num':numbering_start})
- else:
+ elif self.list:
if self.list: self.list.pop()
self.lastWasList = True
else: