aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-feedparser/Makefile
blob: 3fec3f9289993a906288da29ae48624972cb8ea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Created by: ijliao
# $FreeBSD$

PORTNAME=   feedparser
PORTVERSION=    5.1.3
CATEGORIES= textproc python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= sbz@FreeBSD.org
COMMENT=    An RSS feed parser written in Python

LICENSE=    BSD

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet

USE_PYTHON= yes
USE_BZIP2=  yes
USE_PYDISTUTILS=    yes

PORTDOCS=   NEWS PKG-INFO README

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

regression-test:
    @(cd ${WRKSRC}/${PORTNAME} && ${PYTHON_CMD} ${PORTNAME}test.py)

.include <bsd.port.mk>