1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/www/py-turbogears/Makefile
Vanilla I. Shu 7f9f5e2818 - Stage
- Drop easy_install
- Use auto pkg-plist
- Delete pkg-plist

PR:		ports/188777
Submitted by:	Bartek Rutkowski <ports@robakdesign.com>
Approved by:	portmgr@
2014-05-08 15:59:41 +00:00

63 lines
2.2 KiB
Makefile

# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= TurboGears
PORTVERSION= 1.5.1
PORTREVISION= 2
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Python-Based Framework for Rapid Web Development
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cherrypy>=3.1.2:${PORTSDIR}/www/py-cherrypy \
${PYTHON_PKGNAMEPREFIX}configobj>=4.3.2:${PORTSDIR}/devel/py-configobj \
${PYTHON_PKGNAMEPREFIX}formencode>=1.2.1:${PORTSDIR}/www/py-formencode \
${PYTHON_PKGNAMEPREFIX}PasteScript>=1.7:${PORTSDIR}/www/py-pastescript \
${PYTHON_PKGNAMEPREFIX}PEAK-Rules>=0.5a1:${PORTSDIR}/devel/py-PEAK-Rules \
${PYTHON_PKGNAMEPREFIX}simplejson>=1.9.1:${PORTSDIR}/devel/py-simplejson \
${PYTHON_PKGNAMEPREFIX}TurboCheetah>=1.0:${PORTSDIR}/devel/py-turbocheetah \
${PYTHON_PKGNAMEPREFIX}TurboKid>=1.0.5:${PORTSDIR}/devel/py-turbokid \
${PYTHON_PKGNAMEPREFIX}TurboJson>=1.3:${PORTSDIR}/devel/py-turbojson \
${PYTHON_PKGNAMEPREFIX}tgMochiKit>=1.4.2:${PORTSDIR}/devel/py-tgMochiKit \
${PYTHON_PKGNAMEPREFIX}Genshi>=0.4.4:${PORTSDIR}/textproc/py-genshi \
${PYTHON_PKGNAMEPREFIX}TGScheduler>0:${PORTSDIR}/devel/py-TGScheduler
USES= gettext
USE_PYTHON= 2
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
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
.if ${PORT_OPTIONS:MELIXIR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Elixir>=0.6.1:${PORTSDIR}/databases/py-Elixir
.endif
.if ${PORT_OPTIONS:MNOSE}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}nose>=0.9.1:${PORTSDIR}/devel/py-nose
.endif
.if ${PORT_OPTIONS:MSQLOBJECT}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlobject>=0.10.1:${PORTSDIR}/databases/py-sqlobject
.endif
.if ${PORT_OPTIONS:MSQLALCHEMY}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlalchemy06>=0.3.4:${PORTSDIR}/databases/py-sqlalchemy06
.endif
.include <bsd.port.mk>