svn commit: r314837 - head/www/py-turbogears

Ruslan Mahmatkhanov rm at FreeBSD.org
Thu Mar 21 11:42:43 UTC 2013


Author: rm
Date: Thu Mar 21 11:42:42 2013
New Revision: 314837
URL: http://svnweb.freebsd.org/changeset/ports/314837

Log:
  - trim Makefile header
  - limit python version to 2.x branch
  - convert to optionsng
  - relax checks for dateutil versions to fix runtime with our 2.1 version
  - tab -> space change in pkg-descr:WWW

Modified:
  head/www/py-turbogears/Makefile
  head/www/py-turbogears/pkg-descr

Modified: head/www/py-turbogears/Makefile
==============================================================================
--- head/www/py-turbogears/Makefile	Thu Mar 21 11:13:49 2013	(r314836)
+++ head/www/py-turbogears/Makefile	Thu Mar 21 11:42:42 2013	(r314837)
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	turbogears
-# Date created:		2006-01-08
-# Whom:			Nicola Vitale	<nivit at email.it>
-#
+# Created by: Nicola Vitale <nivit at email.it>
 # $FreeBSD$
-#
 
 PORTNAME=	TurboGears
 PORTVERSION=	1.5.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -29,31 +25,37 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cher
 		${PYTHON_PKGNAMEPREFIX}TGScheduler>0:${PORTSDIR}/devel/py-TGScheduler
 
 USE_GETTEXT=	yes
-USE_PYTHON=	2.5+
+USE_PYTHON=	-2.7
 USE_PYDISTUTILS=	easy_install
 
 OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
-OPTIONS+=	ELIXIR	"Use Elixir as plugin" off \
-		NOSE	"Use nose TG[testtools]" off \
-		SQLOBJECT	"Use SQLObject as DB backend" on \
-		SQLALCHEMY	"Use SQLAlchemy as DB backend TG[future]" off
+OPTIONS_DEFINE=	ELIXIR NOSE SQLOBJECT SQLALCHEMY
+OPTIONS_DEFAULT=SQLOBJECT
+ELIXIR_DESC=	Use Elixir as plugin
+NOSE_DESC=	Use nose TG[testtools]
+SQLOBJECT_DESC=	Use SQLObject as DB backend
+SQLALCHEMY_DESC=Use SQLAlchemy as DB backend TG[future]
+
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,< 2.0a,!=2.0,g' ${WRKSRC}/setup.py \
+		${WRKSRC}/TurboGears.egg-info/requires.txt
 
-.include <bsd.port.pre.mk>
-
-.if defined (WITH_ELIXIR)
+.if ${PORT_OPTIONS:MELIXIR}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}Elixir>=0.6.1:${PORTSDIR}/databases/py-Elixir
 .endif
 
-.if defined (WITH_NOSE)
+.if ${PORT_OPTIONS:MNOSE}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}nose>=0.9.1:${PORTSDIR}/devel/py-nose
 .endif
 
-.if defined (WITH_SQLOBJECT)
+.if ${PORT_OPTIONS:MSQLOBJECT}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}sqlobject>=0.10.1:${PORTSDIR}/databases/py-sqlobject
 .endif
 
-.if defined (WITH_SQLALCHEMY)
+.if ${PORT_OPTIONS:MSQLALCHEMY}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}sqlalchemy06>=0.3.4:${PORTSDIR}/databases/py-sqlalchemy06
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/www/py-turbogears/pkg-descr
==============================================================================
--- head/www/py-turbogears/pkg-descr	Thu Mar 21 11:13:49 2013	(r314836)
+++ head/www/py-turbogears/pkg-descr	Thu Mar 21 11:42:42 2013	(r314837)
@@ -9,5 +9,4 @@ around those tools.
 
 TurboGears is easy to use for a wide range of web applications.
 
-Author:	Kevin Dangoor et alii
-WWW:	http://www.turbogears.org/
+WWW: http://www.turbogears.org/


More information about the svn-ports-head mailing list