Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -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).

View File

@@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.26 2013/06/06 01:52:01 schmonz Exp $
#
DISTNAME= html2text-3.200.3
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/
COMMENT= Convert HTML into easy-to-read plain ASCII text
LICENSE= gnu-gpl-v2
PYTHON_VERSIONS_INCLUDE_3X= yes
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
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:17:25 joerg Exp $
share/html2text/html2text.py

View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.16 2013/06/06 01:52:01 schmonz 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

View File

@@ -0,0 +1,23 @@
$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: