Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2006 16:19:50 +0800 (CST)
From:      Dryice Liu <dryice@dryice.name>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/94825: [maintainer] textproc/py-feedparser: utilize cjkcodecs if python < 2.4
Message-ID:  <200603220819.k2M8JoBm008350@readonline.info>
Resent-Message-ID: <200603220830.k2M8UEbb077843@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603220819.k2M8JoBm008350>