ports/94825: [maintainer] textproc/py-feedparser: utilize cjkcodecs if python < 2.4
Dryice Liu
dryice at dryice.name
Wed Mar 22 08:30:16 UTC 2006
>Number: 94825
>Category: ports
>Synopsis: [maintainer] textproc/py-feedparser: utilize cjkcodecs if python < 2.4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 22 08:30:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Dryice Liu
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD dryice.3322.org 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Dec 1 15:59:44 CST 2005
>Description:
Conditional depends on converters/py-cjkcodecs if python version is less than 2.4
>How-To-Repeat:
>Fix:
--- attached file begins here ---
diff -ruN py-feedparser.old/Makefile py-feedparser/Makefile
--- py-feedparser.old/Makefile Thu Mar 16 02:21:25 2006
+++ py-feedparser/Makefile Wed Mar 22 16:16:52 2006
@@ -18,13 +18,19 @@
MAINTAINER= dryice at dryice.name
COMMENT= An RSS feed parser written in Python
-RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet
-
WRKSRC= ${WRKDIR}
USE_PYTHON= 2.1+
USE_ZIP= yes
USE_PYDISTUTILS= yes
+.include <bsd.port.pre.mk>
+
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet
+
+.if defined(PYTHON_REL) && ${PYTHON_REL} < 240
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/cjkcodecs/__init__.py:${PORTSDIR}/converters/py-cjkcodecs
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@@ -39,4 +45,4 @@
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- attached file ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list