2005-04-11 23:44:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2005/04/11 21:47:42 tv Exp $
|
Import Universal Feed Parser 3.0.1.
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,
and CDF feeds.
To use Universal Feed Parser, you will need Python 2.1 or later.
Universal Feed Parser is not meant to run standalone; it is a module
for you to use as part of a larger Python program.
Universal Feed Parser is easy to use; the module is self-contained
in a single file, feedparser.py, and it has only one 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.
2004-06-27 08:31:20 +02:00
|
|
|
#
|
|
|
|
|
Update to 3.3.
Changes in 3.2:
* use cjkcodecs and iconv_codec if available
* always convert feed to UTF-8 before passing to XML parser
* completely revamped logic for determining character encoding and
attempting XML parsing (much faster)
* increased default timeout to 20 seconds
* test for presence of Location header on redirects
* added tests for many alternate character encodings
* support various EBCDIC encodings
* support UTF-16BE and UTF16-LE with or without a BOM
* support UTF-8 with a BOM
* support UTF-32BE and UTF-32LE with or without a BOM
* fixed crashing bug if no XML parsers are available
* added support for "Content-encoding: deflate"
* send blank "Accept-encoding: " header if neither gzip nor zlib
modules are available
Changes in 3.3:
* optimize EBCDIC to ASCII conversion
* fix obscure problem tracking xml:base and xml:lang if element
declares it, child doesn't, first grandchild redeclares it,
and second grandchild doesn't
* refactored date parsing
* defined public registerDateHandler so callers can add support
for additional date formats at runtime
* added support for OnBlog, Nate, MSSQL, Greek, and Hungarian dates (ytrewq1)
* added zopeCompatibilityHack() which turns FeedParserDict into a
regular dictionary, required for Zope compatibility, and also
makes command-line debugging easier because pprint module
formats real dictionaries better than dictionary-like objects
* added NonXMLContentType exception, which is stored in bozo_exception
when a feed is served with a non-XML media type such as
"text/plain"
* respect Content-Language as default language if not xml:lang is present
* cloud dict is now FeedParserDict
* generator dict is now FeedParserDict
* better tracking of xml:lang, including support for xml:lang=""
to unset the current language
* recognize RSS 1.0 feeds even when RSS 1.0 namespace is not the
default namespace
* don't overwrite final status on redirects (scenarios: redirecting
to a URL that returns 304, redirecting to a URL that redirects
to another URL with a different type of redirect)
* add support for HTTP 303 redirects
2004-07-17 18:28:29 +02:00
|
|
|
DISTNAME= feedparser-3.3
|
Import Universal Feed Parser 3.0.1.
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,
and CDF feeds.
To use Universal Feed Parser, you will need Python 2.1 or later.
Universal Feed Parser is not meant to run standalone; it is a module
for you to use as part of a larger Python program.
Universal Feed Parser is easy to use; the module is self-contained
in a single file, feedparser.py, and it has only one 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.
2004-06-27 08:31:20 +02:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= textproc python
|
Import Universal Feed Parser 3.0.1.
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,
and CDF feeds.
To use Universal Feed Parser, you will need Python 2.1 or later.
Universal Feed Parser is not meant to run standalone; it is a module
for you to use as part of a larger Python program.
Universal Feed Parser is easy to use; the module is self-contained
in a single file, feedparser.py, and it has only one 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.
2004-06-27 08:31:20 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=feedparser/}
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
|
|
|
HOMEPAGE= http://feedparser.org/
|
|
|
|
COMMENT= Parse RSS and Atom feeds in Python
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/feedparser
|
|
|
|
|
|
|
|
PYDISTUTILSPKG= yes
|
2005-01-27 04:46:30 +01:00
|
|
|
PYTHON_VERSIONS_ACCEPTED?= 24 23 22 21
|
Import Universal Feed Parser 3.0.1.
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,
and CDF feeds.
To use Universal Feed Parser, you will need Python 2.1 or later.
Universal Feed Parser is not meant to run standalone; it is a module
for you to use as part of a larger Python program.
Universal Feed Parser is easy to use; the module is self-contained
in a single file, feedparser.py, and it has only one 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.
2004-06-27 08:31:20 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|