Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Dec 2009 16:09:14 GMT
From:      Kirk Strauser <kirk@daycos.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/141288: New port: www/py-beautifulsoup30
Message-ID:  <200912081609.nB8G9Exb085516@www.freebsd.org>
Resent-Message-ID: <200912081610.nB8GA5sX019777@freefall.freebsd.org>

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

>Number:         141288
>Category:       ports
>Synopsis:       New port: www/py-beautifulsoup30
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 08 16:10:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Kirk Strauser
>Release:        
>Organization:
Daycos
>Environment:
>Description:
This is a port of version 3.0.8 of Python's BeautifulSoup HTML/XML parser. Version 3.1.0.1 is already in ports but it is not backward compatible with the 3.0.x series. From http://www.crummy.com/software/BeautifulSoup/3.1-problems.html:

Version 3.1.0 of Beautiful Soup does significantly worse on real-world HTML than version 3.0.8 does. The most common problems are handling <script> tags incorrectly, "malformed start tag" errors, and "bad end tag" errors.

Furthermore, the branches are developed separately. Version 3.0.8 was released on 2009-12-01, while 3.1.0.1 came out on 2009-01-06.

If this port is accepted, please add a CONFLICTS to the current www/py-beautifulsoup port, and possibly consider renaming it to py-beautifulsoup31 to indicate that it's a wholly different version.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-beautifulsoup30
#	py-beautifulsoup30/pkg-plist
#	py-beautifulsoup30/distinfo
#	py-beautifulsoup30/pkg-descr
#	py-beautifulsoup30/Makefile
#
echo c - py-beautifulsoup30
mkdir -p py-beautifulsoup30 > /dev/null 2>&1
echo x - py-beautifulsoup30/pkg-plist
sed 's/^X//' >py-beautifulsoup30/pkg-plist << '97ecfc1e47069eda681f34f52272aa67'
Xbin/testall.sh
Xbin/to3.sh
X%%PYTHON_SITELIBDIR%%/BeautifulSoup.py
X%%PYTHON_SITELIBDIR%%/BeautifulSoup.pyc
X%%PYTHON_SITELIBDIR%%/BeautifulSoup.pyo
X%%PYTHON_SITELIBDIR%%/BeautifulSoupTests.py
X%%PYTHON_SITELIBDIR%%/BeautifulSoupTests.pyc
X%%PYTHON_SITELIBDIR%%/BeautifulSoupTests.pyo
97ecfc1e47069eda681f34f52272aa67
echo x - py-beautifulsoup30/distinfo
sed 's/^X//' >py-beautifulsoup30/distinfo << '5ce446df952fba206eab04f5b5122593'
XMD5 (BeautifulSoup-3.0.8.tar.gz) = 1ed94bfdb601055f467007859366e3c4
XSHA256 (BeautifulSoup-3.0.8.tar.gz) = c733dc499bec490af1d6914e3288287275332c42cd8c7704ef1a2e4e8b8f5abd
XSIZE (BeautifulSoup-3.0.8.tar.gz) = 30867
5ce446df952fba206eab04f5b5122593
echo x - py-beautifulsoup30/pkg-descr
sed 's/^X//' >py-beautifulsoup30/pkg-descr << '513bdd7cefbb0e7b15ad3339d92a0424'
XBeautiful Soup parses arbitrarily invalid XML- or HTML-like substance
Xinto a tree representation. It provides methods and Pythonic idioms
Xthat make it easy to search and modify the tree.
X
XA well-formed XML/HTML document will yield a well-formed data
Xstructure. An ill-formed XML/HTML document will yield a
Xcorrespondingly ill-formed data structure. If your document is only
Xlocally well-formed, you can use this library to find and process the
Xwell-formed part of it. The BeautifulSoup class has heuristics for
Xobtaining a sensible parse tree in the face of common HTML errors.
X
XWWW: http://www.crummy.com/software/BeautifulSoup/
513bdd7cefbb0e7b15ad3339d92a0424
echo x - py-beautifulsoup30/Makefile
sed 's/^X//' >py-beautifulsoup30/Makefile << 'b9916cb9dfb62f50449d602060325a8b'
XPORTNAME=	beautifulsoup30
XPORTVERSION=	3.0.8
XCATEGORIES=	www python
XMASTER_SITES=	http://www.crummy.com/software/BeautifulSoup/download/3.x/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	BeautifulSoup-${PORTVERSION}
X
XMAINTAINER=	mwm@mired.org
XCOMMENT=	HTML/XML Parser for Python
XCONFLICTS=	py*-beautifulsoup-3.1.*
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
XPYDISTUTILS_PKGNAME=	BeautifulSoup
X
X.include <bsd.port.mk>
b9916cb9dfb62f50449d602060325a8b
exit



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



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