d0fc7522cb
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. 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.
38 lines
891 B
Makefile
38 lines
891 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2004/10/28 09:53:49 xsa Exp $
|
|
|
|
COMMENT= "RSS and Atom feeds parser written in Python"
|
|
|
|
DISTNAME= feedparser-3.3
|
|
PKGNAME= py-${DISTNAME}
|
|
CATEGORIES= textproc
|
|
|
|
HOMEPAGE= http://www.feedparser.org/
|
|
|
|
MAINTAINER= Xavier Santolaria <xsa@openbsd.org>
|
|
|
|
# PSF license <http://www.python.org/2.1/license.html>
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=feedparser/}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MODULES= lang/python
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
WRKDIST= ${WRKDIR}/feedparser
|
|
|
|
# GNU Free Documentation License
|
|
DOCSDIR= ${PREFIX}/share/doc/py-feedparser
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.{css,html} ${DOCSDIR}
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}/images
|
|
${INSTALL_DATA} ${WRKSRC}/docs/images/*.{gif,png} ${DOCSDIR}/images
|
|
|
|
.include <bsd.port.mk>
|