py-Jinja2:moved into main for pisi 2.0
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Licensed under the GNU General Public License, version 3.
|
||||||
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||||
|
|
||||||
|
from pisi.actionsapi import pythonmodules
|
||||||
|
from pisi.actionsapi import pisitools
|
||||||
|
from pisi.actionsapi import autotools
|
||||||
|
from pisi.actionsapi import shelltools
|
||||||
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
|
examples = "%s/%s/examples" % (get.docDIR(), get.srcNAME())
|
||||||
|
|
||||||
|
WorkDir = "Jinja2-%s" % get.srcVERSION()
|
||||||
|
|
||||||
|
def build():
|
||||||
|
pythonmodules.compile()
|
||||||
|
|
||||||
|
def install():
|
||||||
|
pythonmodules.install()
|
||||||
|
|
||||||
|
pisitools.insinto(examples, "examples/*")
|
||||||
|
|
||||||
|
#Create docs with python-Sphinx
|
||||||
|
#shelltools.cd("docs")
|
||||||
|
#autotools.make("html")
|
||||||
|
#shelltools.cd("..")
|
||||||
|
#pisitools.dohtml("Jinja2-%s/docs/_build/html/*" % get.srcVERSION())
|
||||||
|
pisitools.dodoc("CHANGES")
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
Description: drop next import from docs/jinjaext.py
|
||||||
|
next is not available in jinja2/utils.py and all Python versions supported by
|
||||||
|
Jessie already support this function, no need for backwards compatible wrapper
|
||||||
|
Author: Piotr Ożarowski <piotr@debian.org>
|
||||||
|
--- jinja2-2.7.orig/docs/jinjaext.py
|
||||||
|
+++ jinja2-2.7/docs/jinjaext.py
|
||||||
|
@@ -23,7 +23,7 @@ from pygments.style import Style
|
||||||
|
from pygments.token import Keyword, Name, Comment, String, Error, \
|
||||||
|
Number, Operator, Generic
|
||||||
|
from jinja2 import Environment, FileSystemLoader
|
||||||
|
-from jinja2.utils import next
|
||||||
|
+#from jinja2.utils import next
|
||||||
|
|
||||||
|
|
||||||
|
def parse_rst(state, content_offset, doc):
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>python-Jinja2</Name>
|
||||||
|
<Homepage>http://jinja.pocoo.org/2/</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>as-is</License>
|
||||||
|
<IsA>app:console</IsA>
|
||||||
|
<Summary>A small but fast and easy to use stand-alone template engine written in pure python</Summary>
|
||||||
|
<Description>Jinja2 is the rewritten version of Jinja, sandboxed template engine written in pure Python. 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.</Description>
|
||||||
|
<Archive sha1sum="1ce4c8bc722444ec3e77ef9db76faebbd17a40d8" type="targz">https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.7.2.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<!-- For creating documentations-->
|
||||||
|
<!--<Dependency>python-sphinx</Dependency>-->
|
||||||
|
<Dependency>python-setuptools</Dependency>
|
||||||
|
<Dependency>python-MarkupSafe</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch level="1">drop_next_import_from_docs-jinjaext.patch</Patch>
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>python-Jinja2</Name>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="library">/usr/lib/python*</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc/python-Jinja2/LICENSE</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>python-Jinja2-docs</Name>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="doc">/usr/share/doc/python-Jinja2</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="3">
|
||||||
|
<Date>2014-02-27</Date>
|
||||||
|
<Version>2.7.2</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Yusuf Aydemir</Name>
|
||||||
|
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="2">
|
||||||
|
<Date>2013-11-09</Date>
|
||||||
|
<Version>2.7.1</Version>
|
||||||
|
<Comment>Version bump</Comment>
|
||||||
|
<Name>Burak Fazıl Ertürk</Name>
|
||||||
|
<Email>burakerturk@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2012-10-29</Date>
|
||||||
|
<Version>2.6</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Yusuf Aydemir</Name>
|
||||||
|
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>python-Jinja2</Name>
|
||||||
|
<Summary xml:lang="tr">Küçük, hızlı ve kullanımı kolay, sadece python ile yazılmış bir bağımsız şablon üreteci</Summary>
|
||||||
|
<Description xml:lang="tr">Jinja2, sadece python ile yazılmış bir şablon üreteci olan Jinja'nın yeniden yazılmış bir versiyonudur. Django benzeri XML-olmayan bir sözdizimi sağlar ve şablonları derleyip çalıştırılabilir python programları haline getirir. Temel olarak Django şablonları ve python kodunun birleşimi bir programdır.</Description>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>python-Jinja2-docs</Name>
|
||||||
|
<Summary xml:lang="tr">python-Jinja2 için belgelendirme dosyaları</Summary>
|
||||||
|
</Package>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user