1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/py-turbogears/Makefile
Nicola Vitale 9eb260c8cd - Update to 1.0.8
- Add ELIXIR, SQLOBJECT to OPTIONS
- Add switch -N to PYEASYINSTALL_UNINSTALLARGS when ${PYTHON_REL} < 250
- Move easy_install support to <bsd.python.mk>
- Option PYSQLITE available only for Python < 2.5
- Remove TGFASTDATA from OPTIONS
- Set USE_PYTHON to 2.4+

PR:		ports/130180
Submitted by:	Wen Heping <wenheping at gmail dot com>
2009-01-18 17:31:10 +00:00

72 lines
2.5 KiB
Makefile

# New ports collection makefile for: turbogears
# Date created: 2006-01-08
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= TurboGears
PORTVERSION= 1.0.8
CATEGORIES= www python
MASTER_SITES= http://files.turbogears.org/eggs/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Python-Based Framework for Rapid Web Development
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cherrypy-old>=2.3:${PORTSDIR}/www/py-cherrypy-old \
${PYTHON_PKGNAMEPREFIX}configobj>=4.5.3:${PORTSDIR}/devel/py-configobj \
${PYTHON_PKGNAMEPREFIX}formencode>=0.6_1:${PORTSDIR}/www/py-formencode \
${PYTHON_PKGNAMEPREFIX}PasteScript>=1.7.3:${PORTSDIR}/www/py-pastescript \
${PYTHON_PKGNAMEPREFIX}RuleDispatch>=0.5.a0.r2303:${PORTSDIR}/devel/py-ruledispatch \
${PYTHON_PKGNAMEPREFIX}simplejson>=1.4:${PORTSDIR}/devel/py-simplejson \
${PYTHON_PKGNAMEPREFIX}TurboCheetah>=1.0:${PORTSDIR}/devel/py-turbocheetah \
${PYTHON_PKGNAMEPREFIX}TurboKid>=1.0.4:${PORTSDIR}/devel/py-turbokid \
${PYTHON_PKGNAMEPREFIX}TurboJson>=1.1.4:${PORTSDIR}/devel/py-turbojson
USE_GETTEXT= yes
USE_PYTHON= 2.4+
USE_PYDISTUTILS= easy_install
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS+= ELIXIR "Use Elixir as plugin" off \
GENSHI "Use Genshi as plugin TG[future]" off \
NOSE "Use nose TG[testtools]" off \
PYSQLITE "Use SQLite as DB backend" off \
SQLOBJECT "Use SQLObject as DB backend" on \
SQLALCHEMY "Use SQLAlchemy as DB backend TG[future]" off
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 250
PYEASYINSTALL_UNINSTALLARGS= -q -m -N -S ${PYTHON_SITELIBDIR} -d ${PYEASYINSTALL_SITELIBDIR} -s ${PYEASYINSTALL_BINDIR} ${PYDISTUTILS_PKGNAME}==${PYDISTUTILS_PKGVERSION}
.endif
.if defined (WITH_ELIXIR)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Elixir>=0.6.1:${PORTSDIR}/databases/py-Elixir
.endif
.if defined (WITH_GENSHI)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Genshi>=0.3.6:${PORTSDIR}/textproc/py-genshi
.endif
.if defined (WITH_NOSE)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}nose>=0.9.1:${PORTSDIR}/devel/py-nose
.endif
# Python 2.5 already includes SQLite
.if defined (WITH_PYSQLITE) && (${PYTHON_REL} < 250)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pysqlite>=2.0.7_1:${PORTSDIR}/databases/py-pysqlite22
.endif
.if defined (WITH_SQLOBJECT)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlobject>=0.10.1:${PORTSDIR}/databases/py-sqlobject
.endif
.if defined (WITH_SQLALCHEMY)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlalchemy>=0.3.4:${PORTSDIR}/databases/py-sqlalchemy
.endif
.include <bsd.port.post.mk>