Date: Mon, 25 Jul 2011 17:19:23 GMT From: Olivier Duchateau <duchateau.olivier@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/159186: [UPDATE] devel/py-Jinja2 to 2.6 Message-ID: <201107251719.p6PHJNVX029384@red.freebsd.org> Resent-Message-ID: <201107251720.p6PHK9Bb096291@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159186 >Category: ports >Synopsis: [UPDATE] devel/py-Jinja2 to 2.6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 25 17:20:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Olivier Duchateau >Release: FreeBSD 8.2-RELEASE >Organization: >Environment: >Description: ChangeLog: http://jinja.pocoo.org/docs/changelog/#version-2-6 - Add post-build target (for python files examples). It avoid warning when 'pkg_delete delete these files (*.pyc and *.pyo). - Add license blob >How-To-Repeat: >Fix: Patch attached with submission follows: diff -u /usr/ports/devel/py-Jinja2/Makefile py-Jinja2/Makefile --- /usr/ports/devel/py-Jinja2/Makefile 2011-02-25 08:50:36.000000000 +0100 +++ py-Jinja2/Makefile 2011-07-25 18:56:58.000000000 +0200 @@ -6,16 +6,17 @@ # PORTNAME= Jinja2 -PORTVERSION= 2.5.5 -PORTREVISION= 1 +PORTVERSION= 2.6 CATEGORIES= devel python -MASTER_SITES= CHEESESHOP \ - http://nivi.interfree.it/distfiles/${PORTNAME}/ +MASTER_SITES= CHEESESHOP 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 @@ -25,6 +26,13 @@ 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} @@ -40,11 +48,11 @@ .include <bsd.port.pre.mk> .if defined(WITH_SPEEDUPS) -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>=0.11:${PORTSDIR}/textproc/py-MarkupSafe +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>=0.12:${PORTSDIR}/textproc/py-MarkupSafe .endif .if defined(WITH_BABEL) -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Babel-0.9.5:${PORTSDIR}/devel/py-babel +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Babel-0.9.6:${PORTSDIR}/devel/py-babel .endif .include <bsd.port.post.mk> diff -u /usr/ports/devel/py-Jinja2/distinfo py-Jinja2/distinfo --- /usr/ports/devel/py-Jinja2/distinfo 2011-02-25 08:50:36.000000000 +0100 +++ py-Jinja2/distinfo 2011-07-25 18:56:58.000000000 +0200 @@ -1,2 +1,2 @@ -SHA256 (Jinja2-2.5.5.tar.gz) = 22f9675e42dc640c4469d4f7d210baecb5e695823af954c813d51c930235675d -SIZE (Jinja2-2.5.5.tar.gz) = 438586 +SHA256 (Jinja2-2.6.tar.gz) = a85e185375db75c109f99ecde3d55415f035e7068a82252cf4f16c667ac38f49 +SIZE (Jinja2-2.6.tar.gz) = 389741 diff -u /usr/ports/devel/py-Jinja2/pkg-plist py-Jinja2/pkg-plist --- /usr/ports/devel/py-Jinja2/pkg-plist 2010-11-14 22:16:48.000000000 +0100 +++ py-Jinja2/pkg-plist 2011-07-25 18:56:58.000000000 +0200 @@ -147,27 +147,51 @@ %%PORTDOCS%%%%DOCSDIR%%/index.rst %%PORTDOCS%%%%DOCSDIR%%/integration.rst %%PORTDOCS%%%%DOCSDIR%%/intro.rst +%%PORTDOCS%%%%DOCSDIR%%/latexindex.rst %%PORTDOCS%%%%DOCSDIR%%/sandbox.rst %%PORTDOCS%%%%DOCSDIR%%/switching.rst %%PORTDOCS%%%%DOCSDIR%%/templates.rst %%PORTDOCS%%%%DOCSDIR%%/tricks.rst %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/cycle.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/cycle.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/cycle.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/debugger.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/debugger.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/debugger.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/inheritance.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/inheritance.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/inheritance.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/templates/broken.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/templates/subbroken.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test.pyo +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test2.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test2.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test2.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test_filter_and_linestatements.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test_filter_and_linestatements.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test_filter_and_linestatements.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test_loop_filter.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test_loop_filter.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/test_loop_filter.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/translate.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/translate.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic/translate.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/bench.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bench.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bench.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/profile.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/profile.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/profile.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/django/_form.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/django/_input_field.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/django/_textarea.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/django/index.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/django/layout.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/djangoext.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/djangoext.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/djangoext.pyo %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/genshi/helpers.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/genshi/index.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/genshi/layout.html @@ -178,6 +202,8 @@ %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/mako/index.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/mako/layout.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/rwbench.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/rwbench.pyc +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rwbench/rwbench.pyo %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/rwbench/mako %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/rwbench/jinja %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/rwbench/genshi >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107251719.p6PHJNVX029384>