freebsd-ports/www/py-turbogears/Makefile
Nicola Vitale 903460fc41 - Bumped PORTREVISION
- Removed option -D (ignored by the new version of easy_install),
  added -q to files/pkg-deinstall.in
- Updated path to the Python egg of devel/py-kid (dependency),
  fixing build on pointyhat (reported by kris@)

Approved by:	alexbl (mentor, implicit)
2007-01-11 14:12:22 +00:00

62 lines
2.1 KiB
Makefile

# New ports collection makefile for: turbogears
# Date created: 2006-01-08
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= TurboGears
PORTVERSION= 0.8.9
PORTREVISION= 4
CATEGORIES= www python
MASTER_SITES= http://nivi.interfree.it/distfiles/${PORTNAME}/ \
http://www.turbogears.org/download/eggs/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Python-Based Framework for Rapid Web Development
BUILD_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools \
${PYTHON_SITELIBDIR}/${PYKID_EGG}/kid/__init__.py:${PORTSDIR}/devel/py-kid \
sqlobject-admin:${PORTSDIR}/databases/py-sqlobject \
${PYTHON_SITELIBDIR}/cherrypy/__init__.py:${PORTSDIR}/www/py-cherrypy-old \
${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree \
${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree \
${PYTHON_SITELIBDIR}/${PYFORMENCODE_EGG}/formencode/__init__.py:${PORTSDIR}/www/py-formencode \
${PYTHON_SITELIBDIR}/json.py:${PORTSDIR}/devel/py-json-py \
${PYTHON_SITELIBDIR}/TestGears-0.2-py2.4.egg:${PORTSDIR}/devel/py-testgears
USE_PYTHON= 2.4+
USE_PYDISTUTILS= yes
OPTIONS= CHEETAH "Install py-cheetah add-on" off
# bypass infrastructure bug (taken from www/py-django)
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
PLIST_SUB= PORTVERSION=${PORTVERSION} EGGEXT=py2.4.egg
SUB_FILES= pkg-deinstall
SUB_LIST= EGGS=${EGGS} PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
EGGS= ${PORTNAME}-${PORTVERSION}-py2.4.egg
EASY_INSTALL= easy_install
do-install:
for FILE in ${DISTFILES}; do \
${EASY_INSTALL} --no-deps --script-dir=${PREFIX}/bin ${DISTDIR}/$${FILE}; \
done;
post-install:
${RM} ${PYTHON_SITELIBDIR}/${PORTNAME}-${PORTVERSION}-py2.4.egg/EGG-INFO/requires.txt
.include <bsd.port.pre.mk>
.if defined(WITH_CHEETAH)
RUN_DEPENDS+= cheetah:${PORTSDIR}/devel/py-cheetah
.endif
PYFORMENCODE_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-formencode/Makefile -V PYFORMENCODE_EGG
PYKID_EGG!= ${MAKE} -f ${PORTSDIR}/devel/py-kid/Makefile -V PYKID_EGG
.include <bsd.port.post.mk>