This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
config BR2_PACKAGE_PYTHON_JINJA2
bool "python-jinja2"
select BR2_PACKAGE_PYTHON_MARKUPSAFE # runtime
help
Jinja2 is a template engine written in pure Python. It
provides a Django inspired non-XML syntax but supports
inline expressions and an optional sandboxed environment.
http://jinja.pocoo.org/

View File

@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/jinja2/json
md5 0ae535be40fd215a8114a090c8b68e5a Jinja2-2.10.1.tar.gz
sha256 065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013 Jinja2-2.10.1.tar.gz
# Locally computed sha256
sha256 26fcd436fdc8a39d44896ac03e6f1dfd25e38499c48f20d8bc1dd3bf0aaa8a5b LICENSE

View File

@@ -0,0 +1,30 @@
################################################################################
#
# python-jinja2
#
################################################################################
PYTHON_JINJA2_VERSION = 2.10.1
PYTHON_JINJA2_SOURCE = Jinja2-$(PYTHON_JINJA2_VERSION).tar.gz
PYTHON_JINJA2_SITE = https://files.pythonhosted.org/packages/93/ea/d884a06f8c7f9b7afbc8138b762e80479fb17aedbbe2b06515a12de9378d
PYTHON_JINJA2_SETUP_TYPE = setuptools
PYTHON_JINJA2_LICENSE = BSD-3-Clause
PYTHON_JINJA2_LICENSE_FILES = LICENSE
# In host build, setup.py tries to download markupsafe if it is not installed
HOST_PYTHON_JINJA2_DEPENDENCIES = host-python-markupsafe
# Both asyncsupport.py and asyncfilters.py use async feature, that is
# not available in Python 2 and some features available in Python 3.6.
# So in both cases *.py compilation would produce compiler errors.
# Hence remove both files after package extraction.
ifeq ($(BR2_PACKAGE_PYTHON),y)
define PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
rm $(@D)/jinja2/asyncsupport.py $(@D)/jinja2/asyncfilters.py
endef
PYTHON_JINJA2_POST_EXTRACT_HOOKS = PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
endif
$(eval $(python-package))
$(eval $(host-python-package))