summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-04-30 13:22:00 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-04-30 13:22:00 (GMT)
commitccbca905ebd76c0643ec1e5a06364c428e036566 (patch)
tree5bd0f3acc1c63765f7f50d2905c21dd8d9dfb345
parent593cf54c6c5cd88164bfe85441a2a993a09a89e3 (diff)
downloadlinhes_pkgbuild-ccbca905ebd76c0643ec1e5a06364c428e036566.zip
linhes_pkgbuild-ccbca905ebd76c0643ec1e5a06364c428e036566.tar.gz
linhes_pkgbuild-ccbca905ebd76c0643ec1e5a06364c428e036566.tar.bz2
python-sphinx: initial inclusion. dep of llvm
-rw-r--r--abs/core/python_modules/python-sphinx/PKGBUILD76
-rw-r--r--abs/core/python_modules/python-sphinx/__changelog1
2 files changed, 77 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-sphinx/PKGBUILD b/abs/core/python_modules/python-sphinx/PKGBUILD
new file mode 100644
index 0000000..1012e75
--- /dev/null
+++ b/abs/core/python_modules/python-sphinx/PKGBUILD
@@ -0,0 +1,76 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Fabio Volpe <volpefabio@gmail.com>
+
+pkgbase=python-sphinx
+pkgname=('python2-sphinx')
+pkgver=1.2.2
+pkgrel=3
+arch=('any')
+url='http://sphinx.pocoo.org/'
+license=('GPL')
+makedepends=(
+ 'python2-setuptools'
+ 'python2-docutils'
+ 'python2-jinja'
+ 'python2-pygments'
+)
+checkdepends=(
+ 'python2-nose'
+ 'texlive-latexextra'
+)
+source=("http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz")
+md5sums=('3dc73ccaa8d0bfb2d62fb671b1f7e8a4')
+
+prepare() {
+ # souce duplication is required because makefile modify source code
+ # setyp.py --build tricks don't works well
+ cp -a Sphinx-$pkgver Sphinx-${pkgver}2
+ # change python2 interpreter
+ find Sphinx-${pkgver}2 -type f -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+ # change sphinx-binaries name in source code
+ find Sphinx-${pkgver}2 -type f -name '*.py' -exec \
+ sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \;
+}
+
+build() {
+# msg2 'Python 3 version'
+# cd "$srcdir"/Sphinx-$pkgver
+# make PYTHON=python3 build
+ msg2 'Python 2 version'
+ cd "$srcdir"/Sphinx-${pkgver}2
+ make PYTHON=python2 build
+}
+
+check() {
+# msg2 'Python 3 version'
+# cd "$srcdir"/Sphinx-$pkgver
+# make PYTHON=python3 test
+# rm -r build/lib/tests
+ msg2 'Python 2 version'
+ cd "$srcdir"/Sphinx-${pkgver}2
+ make PYTHON=python2 test
+ rm -r build/lib/tests
+}
+
+#package_python-sphinx() {
+# pkgdesc='Python3 documentation generator'
+# depends=('python-jinja' 'python-pygments' 'python-docutils')
+# optdepends=('texlive-latexextra: for generation of PDF documentation')
+
+# cd Sphinx-$pkgver
+# python setup.py install --root="$pkgdir" --optimize=1
+#}
+
+package_python2-sphinx() {
+ pkgdesc='Python2 documentation generator'
+ depends=('python2-jinja' 'python2-pygments' 'python2-docutils')
+ optdepends=('texlive-latexextra: for generation of PDF documentation')
+
+ cd Sphinx-${pkgver}2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-sphinx/__changelog b/abs/core/python_modules/python-sphinx/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-sphinx/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff