summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-11-15 22:12:37 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-11-15 22:12:37 (GMT)
commit88cb991090cf0a89a61676fbc3a36b69c778cc2f (patch)
tree32c9a776041f35e644146edc3c2ee09b52b3b86b /abs/core
parentfa6e63ee2fbb007113dd88e2ca43e16e2d6f70df (diff)
downloadlinhes_pkgbuild-88cb991090cf0a89a61676fbc3a36b69c778cc2f.zip
linhes_pkgbuild-88cb991090cf0a89a61676fbc3a36b69c778cc2f.tar.gz
linhes_pkgbuild-88cb991090cf0a89a61676fbc3a36b69c778cc2f.tar.bz2
python-jinja: 2.11.2
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-jinja/PKGBUILD48
1 files changed, 24 insertions, 24 deletions
diff --git a/abs/core/python_modules/python-jinja/PKGBUILD b/abs/core/python_modules/python-jinja/PKGBUILD
index 1bcd44e..c9822bd 100644
--- a/abs/core/python_modules/python-jinja/PKGBUILD
+++ b/abs/core/python_modules/python-jinja/PKGBUILD
@@ -1,49 +1,49 @@
-# $Id$
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+# Contributor: David Runge <dave@sleepmap.de>
# Contributor: Peter Baldwin <bald_pete@hotmail.com>
pkgname=('python-jinja' 'python2-jinja')
-pkgver=2.10
-pkgrel=1
+pkgver=2.11.2
+pkgrel=4
pkgdesc="A simple pythonic template language written in Python"
arch=('any')
-url="http://jinja.pocoo.org/"
+url="https://palletsprojects.com/p/jinja/"
license=('BSD')
makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe'
'python2-markupsafe')
-source=(https://pypi.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
-sha256sums=('f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4')
+checkdepends=('python-pytest' 'python2-pytest')
+source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
+sha256sums=('89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0')
build() {
- cd "$srcdir"
-
- rm -rf python{2,3}-build
- for builddir in python{2,3}-build; do
- cp -r Jinja2-$pkgver $builddir
- pushd $builddir
- ${builddir%-build} setup.py build
- popd
- done
+ cd Jinja2-$pkgver
+ python3 setup.py build
+}
+
+check() {
+ cd Jinja2-$pkgver
+ export PYTHONPATH=build/lib:$PYTHONPATH
+ py.test
+ py.test2
}
package_python-jinja() {
depends=('python-setuptools' 'python-markupsafe')
+ optdepends=('python-babel: for i18n support')
- cd "$srcdir/python3-build"
-
- python3 setup.py install --root="$pkgdir" -O1
+ cd Jinja2-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 ext/Vim/jinja.vim -t "$pkgdir/usr/share/vim/vimfiles/syntax"
}
package_python2-jinja() {
depends=('python2-setuptools' 'python2-markupsafe')
- cd "$srcdir/python2-build"
-
- python2 setup.py install --root="$pkgdir" -O1
-
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd Jinja2-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim:set ts=2 sw=2 et: