Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 17:29:28 GMT
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/130787: [PATCH] www/py-turbosetup: mark IGNORE for Python != 2.4
Message-ID:  <200901201729.n0KHTSeZ008791@www.freebsd.org>
Resent-Message-ID: <200901201730.n0KHU3kr013620@freefall.freebsd.org>

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

>Number:         130787
>Category:       ports
>Synopsis:       [PATCH] www/py-turbosetup: 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:30:03 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-turbosetup/Makefile py-turbosetup.ignore/Makefile
--- py-turbosetup/Makefile	2008-12-16 14:56:07.000000000 +0100
+++ py-turbosetup.ignore/Makefile	2009-01-20 17:52:40.000000000 +0100
@@ -23,8 +23,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=${PORTVERSION} \
@@ -43,4 +42,10 @@
 do-install:
 	@${EASY_INSTALL_CMD} ${EASY_INSTALL_ARGS} ${DISTDIR}/${PYTURBOSETUP_EGG}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 240 || ${PYTHON_REL} >= 250
+IGNORE=	the distribution file is only available 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?200901201729.n0KHTSeZ008791>