ports/130785: [PATCH] www/py-turbodjango: mark IGNORE for Python != 2.4
Nicola Vitale
nivit at FreeBSD.org
Tue Jan 20 17:10:02 UTC 2009
>Number: 130785
>Category: ports
>Synopsis: [PATCH] www/py-turbodjango: mark IGNORE for Python != 2.4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 20 17:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Nicola Vitale
>Release: FreeBSD 7.1-STABLE
>Organization:
>Environment:
FreeBSD scutigera.domo.sva 7.1-STABLE FreeBSD 7.1-STABLE #0: Mon Jan 5 17:18:47 CET 2009 stan at scutigera.domo.sva:/usr/obj/usr/src/sys/SCUTIGERA i386
>Description:
- Mark the port with IGNORE when PYTHON_VERSION != 2.4, because the distribution egg-file is only available for Python 2.4.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN py-turbodjango/Makefile py-turbodjango.ignore/Makefile
--- py-turbodjango/Makefile 2008-12-16 14:56:07.000000000 +0100
+++ py-turbodjango.ignore/Makefile 2009-01-20 17:52:23.000000000 +0100
@@ -24,8 +24,7 @@
NO_BUILD= yes
-# Use the same version of www/py-turbogears
-USE_PYTHON= 2.4
+USE_PYTHON= yes
PLIST_SUB= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
PORTNAME=${PORTNAME} PORTVERSION=${PYTURBODJANGO_VER} \
@@ -45,4 +44,10 @@
do-install:
@${EASY_INSTALL_CMD} ${EASY_INSTALL_ARGS} ${DISTDIR}/${PYTURBODJANGO_EGG}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 250 || ${PYTHON_REL} < 240
+IGNORE= the distribution file is available only for Python 2.4
+.endif
+
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list