Date: Thu, 19 Nov 2015 23:56:36 +0000 (UTC) From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401979 - in head/devel: . py3-Jinja2 Message-ID: <201511192356.tAJNuaIf040065@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bofh Date: Thu Nov 19 23:56:36 2015 New Revision: 401979 URL: https://svnweb.freebsd.org/changeset/ports/401979 Log: [NEW] devel/py3-Jinja2: Fast and easy to use stand-alone template engine - Python3 version of devel/py-Jinja2 Jinja is a sandboxed template engine written in pure Python licensed under the BSD license. It provides a Django-like non-XML syntax and compiles templates into executable python code. It's basically a combination of Django templates and python code. WWW: http://jinja.pocoo.org/ Added: head/devel/py3-Jinja2/ head/devel/py3-Jinja2/Makefile (contents, props changed) head/devel/py3-Jinja2/distinfo (contents, props changed) head/devel/py3-Jinja2/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Nov 19 23:47:28 2015 (r401978) +++ head/devel/Makefile Thu Nov 19 23:56:36 2015 (r401979) @@ -4472,6 +4472,7 @@ SUBDIR += py-zope.testing SUBDIR += py-zope.traversing SUBDIR += py-zope.viewlet + SUBDIR += py3-Jinja2 SUBDIR += py3-babel SUBDIR += py3-dbus SUBDIR += py3-gobject3 Added: head/devel/py3-Jinja2/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py3-Jinja2/Makefile Thu Nov 19 23:56:36 2015 (r401979) @@ -0,0 +1,49 @@ +# Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= Jinja2 +PORTVERSION= 2.8 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX?= + +MAINTAINER= bofh@FreeBSD.org +COMMENT= Fast and easy to use stand-alone template engine + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>=0.18:${PORTSDIR}/textproc/py3-MarkupSafe +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>=0.18:${PORTSDIR}/textproc/py3-MarkupSafe + +NO_ARCH= yes +USES= python:3 +USE_PYTHON= autoplist distutils + +EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} + +OPTIONS_DEFINE= BABEL EXAMPLES +OPTIONS_DEFAULT= BABEL +BABEL_DESC= Enable Babel extension + +BABEL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:${PORTSDIR}/devel/py3-babel + +PY2TO3_CMD= ${LOCALBASE}/bin/2to3-${PYTHON_VER} +PY2TO3_ARGS= --fix=all --no-diffs --nobackups --verbose --write + +PORTEXAMPLES= * + +post-build-EXAMPLES-on: + ${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/examples + ${PYTHON_CMD} -m compileall ${WRKSRC}/examples ; \ + ${PYTHON_CMD} -O -m compileall ${WRKSRC}/examples + +do-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + +check regression-test test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test + +.include <bsd.port.mk> Added: head/devel/py3-Jinja2/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py3-Jinja2/distinfo Thu Nov 19 23:56:36 2015 (r401979) @@ -0,0 +1,2 @@ +SHA256 (Jinja2-2.8.tar.gz) = bc1ff2ff88dbfacefde4ddde471d1417d3b304e8df103a7a9437d47269201bf4 +SIZE (Jinja2-2.8.tar.gz) = 357055 Added: head/devel/py3-Jinja2/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py3-Jinja2/pkg-descr Thu Nov 19 23:56:36 2015 (r401979) @@ -0,0 +1,6 @@ +Jinja is a sandboxed template engine written in pure Python licensed +under the BSD license. It provides a Django-like non-XML syntax and +compiles templates into executable python code. It's basically a +combination of Django templates and python code. + +WWW: http://jinja.pocoo.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511192356.tAJNuaIf040065>