Index: head/textproc/py-feedparser/files/patch-feedparser_feedparser.py =================================================================== --- head/textproc/py-feedparser/files/patch-feedparser_feedparser.py (revision 416294) +++ head/textproc/py-feedparser/files/patch-feedparser_feedparser.py (nonexistent) @@ -1,15 +0,0 @@ ---- feedparser/feedparser.py.orig 2014-03-10 01:45:12.000000000 +0900 -+++ feedparser/feedparser.py 2014-03-10 01:45:53.000000000 +0900 -@@ -3766,7 +3766,11 @@ - chardet_encoding = None - tried_encodings = [] - if chardet: -- chardet_encoding = unicode(chardet.detect(data)['encoding'] or '', 'ascii', 'ignore') -+ chardet_encoding = chardet.detect(data)['encoding'] -+ if not chardet_encoding: -+ chardet_encoding = '' -+ if not isinstance(chardet_encoding, str): -+ chardet_encoding = str(chardet_encoding, 'ascii', 'ignore') - # try: HTTP encoding, declared XML encoding, encoding sniffed from BOM - for proposed_encoding in (rfc3023_encoding, xml_encoding, bom_encoding, - chardet_encoding, u'utf-8', u'windows-1252', u'iso-8859-2'): Property changes on: head/textproc/py-feedparser/files/patch-feedparser_feedparser.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/textproc/py-feedparser/files/patch-setup.py =================================================================== --- head/textproc/py-feedparser/files/patch-setup.py (revision 416294) +++ head/textproc/py-feedparser/files/patch-setup.py (nonexistent) @@ -1,8 +0,0 @@ ---- ./setup.py.orig 2012-07-03 15:02:11.000000000 +0200 -+++ ./setup.py 2012-07-03 15:03:10.000000000 +0200 -@@ -1,4 +1,4 @@ --from setuptools import setup -+from distutils.core import setup - import sys - - extra = {} Property changes on: head/textproc/py-feedparser/files/patch-setup.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/textproc/py-feedparser/Makefile =================================================================== --- head/textproc/py-feedparser/Makefile (revision 416294) +++ head/textproc/py-feedparser/Makefile (revision 416295) @@ -1,32 +1,32 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= feedparser -PORTVERSION= 5.1.3 -PORTREVISION= 3 +PORTVERSION= 5.2.1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sbz@FreeBSD.org COMMENT= Universal feed parser written in Python -LICENSE= MIT +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE USES= python tar:bzip2 USE_PYTHON= distutils autoplist +NO_ARCH= yes + OPTIONS_DEFINE= DOCS -PORTDOCS= NEWS PKG-INFO README +PORTDOCS= NEWS README.rst -.include - -post-install: - @${MKDIR} ${STAGEDIR}${DOCSDIR} +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} -regression-test: extract +do-test: @(cd ${WRKSRC}/${PORTNAME}; ${PYTHON_CMD} ${PORTNAME}test.py) .include Index: head/textproc/py-feedparser/distinfo =================================================================== --- head/textproc/py-feedparser/distinfo (revision 416294) +++ head/textproc/py-feedparser/distinfo (revision 416295) @@ -1,2 +1,3 @@ -SHA256 (feedparser-5.1.3.tar.bz2) = 7f6507d400d07edfd1ea8205da36808009b0c539f5b8a6e0ab54337b955e6dc3 -SIZE (feedparser-5.1.3.tar.bz2) = 202373 +TIMESTAMP = 1464128973 +SHA256 (feedparser-5.2.1.tar.bz2) = ce875495c90ebd74b179855449040003a1beb40cd13d5f037a0654251e260b02 +SIZE (feedparser-5.2.1.tar.bz2) = 192328 Index: head/textproc/py-feedparser/pkg-descr =================================================================== --- head/textproc/py-feedparser/pkg-descr (revision 416294) +++ head/textproc/py-feedparser/pkg-descr (revision 416295) @@ -1,10 +1,10 @@ Universal Feed Parser is a Python module for downloading and parsing syndicated feeds. It can handle RSS 0.90, Netscape RSS 0.91, Userland RSS 0.91, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0, Atom 0.3, Atom 1.0, and CDF feeds. Universal Feed Parser is easy to use; the module is self-contained in a single file, feedparser.py, and it has one primary public function, parse. parse takes a number of arguments, but only one is required, and it can be a URL, a local filename, or a raw string containing feed data in any format. -WWW: http://code.google.com/p/feedparser/ +WWW: http://github.com/kurtmckee/feedparser