Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 17:05:40 GMT
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/130785: [PATCH] www/py-turbodjango: mark IGNORE for Python != 2.4
Message-ID:  <200901201705.n0KH5ecj069875@www.freebsd.org>
Resent-Message-ID: <200901201710.n0KHA1ls097892@freefall.freebsd.org>

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

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



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