Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2008 07:56:10 GMT
From:      Wen Heping <wenheping@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/129627: [Update]textproc/py-html2text:update to 2.35
Message-ID:  <200812140756.mBE7uAFX020640@www.freebsd.org>
Resent-Message-ID: <200812140800.mBE804iD060993@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         129627
>Category:       ports
>Synopsis:       [Update]textproc/py-html2text:update to 2.35
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 14 08:00:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Wen Heping
>Release:        FreeBSD 8.0-CURRENT
>Organization:
ChangAn Middle School
>Environment:
FreeBSD fb8.wenjing.com 8.0-CURRENT-200811 FreeBSD 8.0-CURRENT-200811 #0: Thu Nov  6 00:32:12 UTC 2008     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
update to 2.35 from 2.2.8 and take over maintainership
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -curN py-html2text/Makefile py-html2text.new/Makefile
--- py-html2text/Makefile	2008-09-07 08:18:48.000000000 +0800
+++ py-html2text.new/Makefile	2008-12-14 15:52:16.000000000 +0800
@@ -6,22 +6,16 @@
 #
 
 PORTNAME=	html2text
-PORTVERSION=	2.2.8
+PORTVERSION=	2.35
 CATEGORIES=	textproc python
-MASTER_SITES=	CENKES
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	wenheping@gmail.com
 COMMENT=	Convert HTML into clean plain ASCII text
 
+USE_ZIP=	yes
 USE_PYTHON=	yes
-USE_PYDISTUTILS=yes
-
-post-patch:
-	@${REINPLACE_CMD} -e '1s|.*|#!${PYTHON_CMD}|' ${WRKSRC}/${PORTNAME}.py
-
-post-install:
-	@${CHMOD} 755 ${PYTHON_SITELIBDIR}/${PORTNAME}.py
-	@${LN} -sf ${PYTHON_SITELIBDIR}/${PORTNAME}.py ${PREFIX}/bin/
+USE_PYDISTUTILS=easy_install
 
 .include <bsd.port.mk>
diff -curN py-html2text/distinfo py-html2text.new/distinfo
--- py-html2text/distinfo	2007-04-23 19:39:15.000000000 +0800
+++ py-html2text.new/distinfo	2008-12-14 15:38:16.000000000 +0800
@@ -1,3 +1,3 @@
-MD5 (html2text-2.2.8.tar.gz) = 4888df64d1c7556f7cf3ea300bef3af2
-SHA256 (html2text-2.2.8.tar.gz) = b6754543c44448cf35f706ce8e87ce2f333987d65c7222f7a27b6c36f4e22def
-SIZE (html2text-2.2.8.tar.gz) = 4002
+MD5 (html2text-2.35.zip) = bca27646cd1c3bde64d36ba12bedd521
+SHA256 (html2text-2.35.zip) = 527687294db8a24ead730d3dccba54378694acb8591566f461ec154a92d59720
+SIZE (html2text-2.35.zip) = 6514
diff -curN py-html2text/files/patch-html2text.py py-html2text.new/files/patch-html2text.py
--- py-html2text/files/patch-html2text.py	2007-04-23 19:15:06.000000000 +0800
+++ py-html2text.new/files/patch-html2text.py	1970-01-01 08:00:00.000000000 +0800
@@ -1,28 +0,0 @@
---- html2text.py.orig	2007-01-18 19:06:49.000000000 -0500
-+++ html2text.py
-@@ -150,7 +150,7 @@ class _html2text(sgmllib.SGMLParser):
- 		self.lastWasNL = 0
- 	
- 	def outtextf(self, s): 
--		if type(s) is type(''): s = codecs.utf_8_decode(s)[0]
-+		if type(s) is type(''): s = codecs.utf_8_decode(s, "replace")[0]
- 		self.outtext += s
- 	
- 	def close(self):
-@@ -259,6 +259,7 @@ class _html2text(sgmllib.SGMLParser):
- 			if attrs.has_key('src'):
- 				attrs['href'] = attrs['src']
- 				alt = attrs.get('alt', '')
-+				alt = re.sub('\n', ' ', alt)
- 				i = self.previousIndex(attrs)
- 				if i is not None:
- 					attrs = self.a[i]
-@@ -279,7 +280,7 @@ class _html2text(sgmllib.SGMLParser):
- 		if tag in ["ol", "ul"]:
- 			if start:
- 				self.list.append({'name':tag, 'num':0})
--			else:
-+			elif self.list:
- 				if self.list: self.list.pop()
- 			
- 			self.p()
diff -curN py-html2text/pkg-plist py-html2text.new/pkg-plist
--- py-html2text/pkg-plist	2007-04-23 19:39:15.000000000 +0800
+++ py-html2text.new/pkg-plist	2008-12-14 15:40:53.000000000 +0800
@@ -1,4 +1 @@
-bin/html2text.py
-%%PYTHON_SITELIBDIR%%/html2text.py
-%%PYTHON_SITELIBDIR%%/html2text.pyc
-%%PYTHON_SITELIBDIR%%/html2text.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812140756.mBE7uAFX020640>