From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 14 08:00:14 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B12B1065670 for ; Sun, 14 Dec 2008 08:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 073EA8FC12 for ; Sun, 14 Dec 2008 08:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mBE804lY060994 for ; Sun, 14 Dec 2008 08:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mBE804iD060993; Sun, 14 Dec 2008 08:00:04 GMT (envelope-from gnats) Resent-Date: Sun, 14 Dec 2008 08:00:04 GMT Resent-Message-Id: <200812140800.mBE804iD060993@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Wen Heping Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 601B3106564A for ; Sun, 14 Dec 2008 07:56:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4F43D8FC12 for ; Sun, 14 Dec 2008 07:56:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mBE7uAfn020653 for ; Sun, 14 Dec 2008 07:56:10 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id mBE7uAFX020640; Sun, 14 Dec 2008 07:56:10 GMT (envelope-from nobody) Message-Id: <200812140756.mBE7uAFX020640@www.freebsd.org> Date: Sun, 14 Dec 2008 07:56:10 GMT From: Wen Heping To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/129627: [Update]textproc/py-html2text:update to 2.35 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2008 08:00:14 -0000 >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 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: