From b610bb234ed63855a5f973de0b504cee8dcfa2c9 Mon Sep 17 00:00:00 2001 From: Marcus Alves Grando Date: Wed, 22 Mar 2006 21:15:49 +0000 Subject: - Depends of cjkcodecs if python < 2.4 - Bump PORTREVISION PR: 94825 Submitted by: maintainer --- textproc/py-feedparser/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'textproc/py-feedparser') diff --git a/textproc/py-feedparser/Makefile b/textproc/py-feedparser/Makefile index b96360c58f32..4a94321ec5cf 100644 --- a/textproc/py-feedparser/Makefile +++ b/textproc/py-feedparser/Makefile @@ -8,7 +8,7 @@ PORTNAME= feedparser PORTVERSION= 4.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://dryice.name/computer/FreeBSD/distfiles/ @@ -18,25 +18,31 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= dryice@dryice.name COMMENT= An RSS feed parser written in Python -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet WRKSRC= ${WRKDIR} USE_PYTHON= 2.1+ USE_ZIP= yes USE_PYDISTUTILS= yes +.include + +.if ${PYTHON_REL} < 240 +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/cjkcodecs/__init__.py:${PORTSDIR}/converters/py-cjkcodecs +.endif + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for i in *.html - @${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR} .endfor .for j in images css examples @${MKDIR} ${DOCSDIR}/${j} .for i in * - @${INSTALL_DATA} ${WRKSRC}/docs/${j}/${i} ${DOCSDIR}/${j} + ${INSTALL_DATA} ${WRKSRC}/docs/${j}/${i} ${DOCSDIR}/${j} .endfor .endfor .endif -.include +.include -- cgit v1.3