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.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-Jinja2 listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py311-Jinja2-3.1.6:
BABEL=on: Enable Babel extension
EXAMPLES=on: Build and/or install examples
===> Use 'make config' to modify these settings
port moved here from devel/py-types-Jinja2 on 2025-08-12 REASON: Remove obsoleted port. The Jinja2 package includes type annotations or type stubs since version 3.0. Use devel/py-Jinja2 instead
devel/py-Jinja2: Update to 3.1.6 (security release)
- Set the PYTHONPATH variable to find the Jinja2 module required by
tests without installing it in the system.
Release
changes: https://jinja.palletsprojects.com/en/stable/changes/#version-3-1-6
Reported by: pallets/jinja <jinja@noreply.github.com>
Security: CVE-2025-27516
devel/py-Jinja2: Update to 3.1.4
- This is a security release, which fixes security issues and bugs but
does not otherwise change behavior and should not result in breaking
changes. [1]
- Convert from distutils to pep517
- Pet portclippy(1)
Reference: https://github.com/advisories/GHSA-h75v-3vvj-5mfj [1]
Security: CVE-2024-34064
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
devel/py-Jinja2: fix build of the slave port devel/py-Jinja2-doc
The slave port requires a version of the dependecy
textproc/py-pallets-sphinx-themes >= 2.0.2.
Poudriere log: https://gist.github.com/nivit/01f2cb9a413b7c97c48435b9cf923df3
Reported by: pkg-fallout
Fix WWW in parent/child ports
Many of the WWW are overwritten later which means the wrong value
is used. This did not happen before where the children were either
a) just using the pkg-descr from the parents
b) or had their own separate pkg-descr with custom WWW
Use WWW?= in parents when the child's WWW is different.
Children that use the same WWW as the parent can just inherit it,
i.e., the child WWW can be removed.
Approved by: portmgr (implicit)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above )
Mk: switch PYTHON_REL to 5 digits to support python 3.10.x
PR: 255013
Differential Revision: https://reviews.freebsd.org/D29418
Exp-run by: antoine
Approved by: wen@, no objection from python@ or portmgr@
- Fix build of slave port devel/py-Jinja2-doc by adding missing dependencies:
devel/gmake, textproc/py-pallets-sphinx-themes, textproc/py-sphinx-issues,
textproc/py-sphinxcontrib-log-cabinet
Update Sphinx
- Repocopy textproc/py-sphinx to textproc/py-sphinx18
Update it to 1.8.5 (latest version from 1.8.X).
This version supports Python 2 and 3.
Add test target.
- textproc/py-sphinx: Update to 3.0.2
Python 3 only (3.5+).
Add test target.
- Mk/Uses/python.mk: Add PY_SPHINX
(Only the first 15 lines of the commit message are shown above )
Use the correct variable for dependency lines.
PKGNAMEPREFIX the name of the current package prefix, it is not correct
to use it for other package names.
Sponsored by: Absolight
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
Switch PYTHON_REL from a 3 digits number to a 4 digits number to handle
python 2.7.10
Differential Revision: https://reviews.freebsd.org/D2639
Reviewed by: sunpoet, mva
devel/py-Jinja2: support staging and do general clean-up
- clarify license (BSD3C)
- do not use easy_install for installation and convert to auto-generated packing
list
- add staging support
- utilize options helpers
- use PYTHON_REL instead of PYTHON_VERSION to build docs for python >= 3.2, not
only for 3.2
- unmute installation commands
- remove inclusion of devel/py-virtualenv/files/py3k-fix-pkg-plist.inc - it's
implemented in bsd.python.mk
- bump PORTREVISION because of package change
Approved by: nivit (maintainer, explicitly for such changes in his ports)
- Fix build with Python 3.2 [1]
- Put all options for the command 2to3 in PY2TO3_ARGS
Build log: http://goo.gl/AxzsT
Reported by: eadler (via private email) [1]
- Update WWW, and remove Author field (pkg-descr)
- Bump PORTREVISION (change pkg-plist)
- Convert to the new options framework
- Remove LICENSE_FILE variable
- Remove address no longer available from MASTER_SITES
- Run 2to3 script on examples/docs dir, and include
devel/py-virtualenv/files/py3-fix-pkg-plist.inc when
Python version >= 3.0
- Rearrange Makefile to support a slave port (Jinja2-doc),
that only installs documentation. That is to avoid a
circular dependency between this port and textproc/py-sphinx,
which is necessary to build docs
- Add a test target to Makefile
BuildLog: http://goo.gl/yfMhR
- Update to 2.6
- Add LICENSE stuff to Makefile
- Add post-build target to install the bytecode of the examples files
PR: ports/159186
Submitted by: Olivier Duchateau <duchateau.olivier at gmail.com>
- Update to 2.5.5
- Install only the reStructured files as documentation, because we should
install textproc/py-sphinx to create other formats, but py-sphinx requires
Jinja2 as dependency.
PR: ports/151575
Submitted by: Olivier Duchateau <duchateau.olivier at gmail.com>