# New ports collection makefile for: jinja # Date created: 2007-02-14 # Whom: Nicola Vitale # # $FreeBSD$ # PORTNAME= Jinja2 PORTVERSION= 2.6 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 LICENSE= BSD LICENSE_FILE= ${WRKSRC}/LICENSE USE_PYTHON= 2.5+ 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 .if !defined(NOPORTEXAMPLES) post-build: # Bytecode Python ${PYTHON_CMD} -m compileall ${WRKSRC}/examples ; \ ${PYTHON_CMD} -O -m compileall ${WRKSRC}/examples .endif post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @cd ${WRKSRC}/docs/ && \ ${FIND} . -type f -regex '.*\.rst' \ -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \; .endif .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} @cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR} .endif .include .if defined(WITH_SPEEDUPS) RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>=0.11:${PORTSDIR}/textproc/py-MarkupSafe .endif .if defined(WITH_BABEL) # Actually >= 0.9.8 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Babel>=0.9.6:${PORTSDIR}/devel/py-babel .endif .include