freebsd-ports/devel/py-Jinja2/Makefile
Nicola Vitale 08f579fd64 - Update to 2.5.2
- Add options WITH_SPEEDUPS (on) and WITH_BABEL (off)
- Remove files/patch-*
2010-09-14 22:05:46 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: jinja
# Date created: 2007-02-14
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Jinja2
PORTVERSION= 2.5.2
PORTREVISION= 0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP \
http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A fast, and easy to use stand-alone template engine
USE_PYTHON= 2.4+
USE_PYDISTUTILS= easy_install
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
OPTIONS= SPEEDUPS "Enable speedups" on
OPTIONS+= BABEL "Enable Babel extension" off
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/docs/_build/html && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_SPEEDUPS)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>=0.11:${PORTSDIR}/textproc/py-MarkupSafe
.endif
.if defined(WITH_BABEL)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Babel-0.9.5:${PORTSDIR}/devel/py-babel
.endif
.include <bsd.port.post.mk>