summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/Jinja2/Jinja2.SlackBuild61
-rw-r--r--libraries/Jinja2/Jinja2.info10
-rw-r--r--libraries/Jinja2/README17
-rw-r--r--libraries/Jinja2/slack-desc19
4 files changed, 107 insertions, 0 deletions
diff --git a/libraries/Jinja2/Jinja2.SlackBuild b/libraries/Jinja2/Jinja2.SlackBuild
new file mode 100644
index 0000000000..d20d8b48b5
--- /dev/null
+++ b/libraries/Jinja2/Jinja2.SlackBuild
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Slackware build script for Jinja2
+
+# Written by Mikko Värri (vmj@linuxbox.fi)
+# Public domain.
+
+PRGNAM=Jinja2
+VERSION=${VERSION:-2.5}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS=${DOCS:-no}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+python setup.py install --root=$PKG
+
+if [ "$DOCS" == "yes" ]; then
+ make -C docs html
+fi
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS CHANGES LICENSE ext examples $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a docs/_build/html $PKG/usr/doc/$PRGNAM-$VERSION || cp -a docs $PKG/usr/doc/$PKGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/Jinja2/Jinja2.info b/libraries/Jinja2/Jinja2.info
new file mode 100644
index 0000000000..f985b2feda
--- /dev/null
+++ b/libraries/Jinja2/Jinja2.info
@@ -0,0 +1,10 @@
+PRGNAM="Jinja2"
+VERSION="2.5"
+HOMEPAGE="http://pypi.python.org/pypi/Jinja2"
+DOWNLOAD="http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.5.tar.gz"
+MD5SUM="d02f82e33afe918cef8a9abcd23ccd78"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Mikko Värri"
+EMAIL="vmj@linuxbox.fi"
+APPROVED="dsomero"
diff --git a/libraries/Jinja2/README b/libraries/Jinja2/README
new file mode 100644
index 0000000000..7e7c5d6eee
--- /dev/null
+++ b/libraries/Jinja2/README
@@ -0,0 +1,17 @@
+Jinja2 (Template engine for Python)
+
+Jinja2 is a template engine written in pure Python. It provides a
+Django inspired non-XML syntax but supports inline expressions and
+an optional sandboxed environment.
+
+To build, this requires pysetuptools.
+
+Circular dependencies warning:
+
+The DOCS=yes flag needs Sphinx to build python docs, it and needs Jinja2
+but that needs Sphinx because you have set its DOCS=yes flag.
+If you really need the docs, build Jinja2 without the DOCS=yes flag
+and build Sphinx then rebuild Jinja2 with DOCS=yes.
+
+Incidentally, unless you are a developer, you don't normally need the
+DOCS=yes flag.
diff --git a/libraries/Jinja2/slack-desc b/libraries/Jinja2/slack-desc
new file mode 100644
index 0000000000..8bd8535643
--- /dev/null
+++ b/libraries/Jinja2/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+Jinja2: Jinja2 (Template engine for Python)
+Jinja2:
+Jinja2: Jinja2 is a template engine written in pure Python. It provides a
+Jinja2: Django inspired non-XML syntax but supports inline expressions and
+Jinja2: an optional sandboxed environment.
+Jinja2:
+Jinja2:
+Jinja2:
+Jinja2:
+Jinja2:
+Jinja2: