aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-jinja2
diff options
context:
space:
mode:
authorMatt Smith <mcs@darkregion.net>2011-03-23 16:02:23 -0500
committerMatt Smith <mcs@darkregion.net>2011-03-23 16:02:23 -0500
commit361e3c80fdc8214a51dc981fc1e829d8625a7d04 (patch)
treed2a995a075627fb3f6c93036387ba78da6c83728 /main/py-jinja2
parentc1a0116d48216ee0d64ce2633e26e7d40680b35d (diff)
downloadaports-361e3c80fdc8214a51dc981fc1e829d8625a7d04.tar.bz2
aports-361e3c80fdc8214a51dc981fc1e829d8625a7d04.tar.xz
main/py-jinja2: moved from testing
Diffstat (limited to 'main/py-jinja2')
-rw-r--r--main/py-jinja2/APKBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/main/py-jinja2/APKBUILD b/main/py-jinja2/APKBUILD
new file mode 100644
index 0000000000..5eaf70cf0f
--- /dev/null
+++ b/main/py-jinja2/APKBUILD
@@ -0,0 +1,66 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py-jinja2
+_pkgname=Jinja2
+pkgver=2.5.5
+pkgrel=2
+pkgdesc="A small but fast and easy to use stand-alone template engine written in pure python."
+url="http://jinja.pocoo.org/"
+arch="noarch"
+license="BSD"
+depends="python"
+makedepends="python-dev py-setuptools"
+install=
+subpackages="$pkgname-doc"
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root "$pkgdir" || return 1
+}
+
+doc() {
+ cd "$_builddir"
+
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1
+ for _doc in AUTHORS CHANGES LICENSE; do
+ install -Dm644 $_doc "$subpkgdir"/usr/share/doc/$pkgname/$_doc \
+ || return 1
+ done
+
+ # Note: The documentation in the docs directory needs to be generated
+ # by py-sphinx, however, this package (py-jinja2) is a dependency of
+ # Sphinx itself!
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/docs || return 1
+ cp -R ./docs/* "$subpkgdir"/usr/share/doc/$pkgname/docs/ || return 1
+ chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/docs/ || return 1
+
+ mkdir -p "$subpkgdir"/usr/share/$pkgname || return 1
+ for _dir in artwork examples ext; do
+ mkdir -p "$subpkgdir"/usr/share/$pkgname/$_dir/ || return 1
+ cp -R ./$_dir/* "$subpkgdir"/usr/share/$pkgname/$_dir/ \
+ || return 1
+ chmod -R 644 "$subpkgdir"/usr/share/$pkgname/$_dir/ \
+ || return 1
+ done
+
+ # Fix subdir perms
+ find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \
+ -exec chmod 755 '{}' \; || return 1
+ find "$subpkgdir"/usr/share/$pkgname/ -type d \
+ -exec chmod 755 '{}' \; || return 1
+}
+
+md5sums="83b20c1eeb31f49d8e6392efae91b7d5 Jinja2-2.5.5.tar.gz"