aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-turbogears
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2013-03-21 19:42:42 +0800
committerrm <rm@FreeBSD.org>2013-03-21 19:42:42 +0800
commit55544ef2193e52905a21e1ea488c8a0800eb6e71 (patch)
treeb7d98de44f03fee4e3d0757398ceeaff76fddf7c /www/py-turbogears
parent610d7b81600075ec09cf66afa38ad6dbc7dd74a5 (diff)
downloadfreebsd-ports-gnome-55544ef2193e52905a21e1ea488c8a0800eb6e71.tar.gz
freebsd-ports-gnome-55544ef2193e52905a21e1ea488c8a0800eb6e71.tar.zst
freebsd-ports-gnome-55544ef2193e52905a21e1ea488c8a0800eb6e71.zip
- 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
Diffstat (limited to 'www/py-turbogears')
-rw-r--r--www/py-turbogears/Makefile36
-rw-r--r--www/py-turbogears/pkg-descr3
2 files changed, 20 insertions, 19 deletions
diff --git a/www/py-turbogears/Makefile b/www/py-turbogears/Makefile
index 0654234234f0..47a122755597 100644
--- a/www/py-turbogears/Makefile
+++ b/www/py-turbogears/Makefile
@@ -1,13 +1,9 @@
-# New ports collection makefile for: turbogears
-# Date created: 2006-01-08
-# Whom: Nicola Vitale <nivit@email.it>
-#
+# Created by: Nicola Vitale <nivit@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}cherrypy>=3.1.2:${PORTSDIR}/www/py-cherrypy
${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.pre.mk>
+.include <bsd.port.options.mk>
-.if defined (WITH_ELIXIR)
+post-patch:
+ @${REINPLACE_CMD} -e 's,< 2.0a,!=2.0,g' ${WRKSRC}/setup.py \
+ ${WRKSRC}/TurboGears.egg-info/requires.txt
+
+.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>
diff --git a/www/py-turbogears/pkg-descr b/www/py-turbogears/pkg-descr
index c7be73974ae2..b56ac15cdd5e 100644
--- a/www/py-turbogears/pkg-descr
+++ b/www/py-turbogears/pkg-descr
@@ -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/