pkgsrc/textproc/py-jinja2/Makefile

34 lines
896 B
Makefile
Raw Normal View History

2017-05-04 22:23:31 +02:00
# $NetBSD: Makefile,v 1.22 2017/05/04 20:23:31 adam Exp $
DISTNAME= Jinja2-2.9.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= textproc python
2016-06-08 19:43:20 +02:00
MASTER_SITES= ${MASTER_SITE_PYPI:=J/Jinja2/}
Update to Jinja2 2.5 drop maintainership. Version 2.5 * improved the sort filter (should have worked like this for a long time) by adding support for case insensitive searches. * fixed a bug for getattribute constant folding. * support for newstyle gettext translations which result in a nicer in-template user interface and more consistent catalogs. (Newstyle Gettext) * it's now possible to register extensions after an environment was created. Version 2.4.1 * fixed an error reporting bug for undefineds. Version 2.4 * the environment template loading functions now transparently pass through a template object if it was passed to it. This makes it possible to import or extend from a template object that was passed to the template. * added a ModuleLoader that can load templates from precompiled sources. The environment now features a method to compile the templates from a configured loader into a zip file or folder. * the _speedups C extension now supports Python 3. * added support for autoescaping toggling sections and support for evaluation contexts (Evaluation Context). * extensions have a priority now. Version 2.3.1 * fixed an error reporting bug on all python versions * fixed an error reporting bug on Python 2.4 Version 2.3 * fixes issue with code generator that causes unbound variables to be generated if set was used in if-blocks and other small identifier problems. * include tags are now able to select between multiple templates and take the first that exists, if a list of templates is given. * fixed a problem with having call blocks in outer scopes that have an argument that is also used as local variable in an inner frame * greatly improved error message reporting * implicit tuple expressions can no longer be totally empty. This change makes {% if %}...{% endif %} a syntax error now. * added support for translator comments if extracted via babel. * added with-statement extension. * experimental Python 3 support. Version 2.2.1 * fixes some smaller problems for Jinja2 on Jython. Version 2.2 * Include statements can now be marked with ignore missing to skip non existing templates. * Priority of not raised. It's now possible to write not foo in bar as an alias to foo not in bar like in python. Previously the grammar required parentheses (not (foo in bar)) which was odd. * Fixed a bug that caused syntax errors when defining macros or using the {% call %} tag inside loops. * Fixed a bug in the parser that made {{ foo[1, 2] }} impossible. * Made it possible to refer to names from outer scopes in included templates that were unused in the callers frame * Fixed a bug that caused internal errors if names where used as iteration variable and regular variable after the loop if that variable was unused before the loop. * Added support for optional scoped modifier to blocks. * Added support for line-comments. * Added the meta module. * Renamed (undocumented) attribute overlay to overlayed on the environment because it was clashing with a method of the same name. * speedup extension is now disabled by default.
2010-06-06 01:54:22 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
2014-08-13 22:07:56 +02:00
HOMEPAGE= http://jinja.pocoo.org/
COMMENT= Small but fast and easy to use stand-alone template engine
LICENSE= modified-bsd
USE_LANGUAGES= # none
2012-02-04 13:35:12 +01:00
DEPENDS+= ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe
2012-10-18 00:16:36 +02:00
2013-05-24 21:30:54 +02:00
SUBST_CLASSES+= unicode
SUBST_FILES.unicode= jinja2/*.py
SUBST_STAGE.unicode= pre-install
SUBST_SED.unicode+= -e "s,u',',g"
SUBST_SED.unicode+= -e 's,u",",g'
2013-05-24 21:30:54 +02:00
2017-05-04 22:23:31 +02:00
.include "../../lang/python/pyversion.mk"
# async byte-compilation fails for Python < 3.6
# see https://github.com/pallets/jinja/issues/643
PLIST_VARS+= async
.if "${PYPKGPREFIX}" == "py36"
PLIST.async= yes
.endif
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"