[arch-commits] Commit in python-sphinx/repos/community-any (PKGBUILD PKGBUILD)

Sébastien Luttringer seblu at nymeria.archlinux.org
Thu Jan 16 02:37:00 UTC 2014


    Date: Thursday, January 16, 2014 @ 03:37:00
  Author: seblu
Revision: 104114

archrelease: copy trunk to community-any

Added:
  python-sphinx/repos/community-any/PKGBUILD
    (from rev 104113, python-sphinx/trunk/PKGBUILD)
Deleted:
  python-sphinx/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  154 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 79 insertions(+), 75 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-16 02:36:47 UTC (rev 104113)
+++ PKGBUILD	2014-01-16 02:37:00 UTC (rev 104114)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer <seblu at aur.archlinux.org>
-# Contributor: Angel Velasquez <angvp at archlinux.org>
-# Contributor: Fabio Volpe <volpefabio at gmail.com>
-
-pkgbase=python-sphinx
-pkgname=('python-sphinx' 'python2-sphinx')
-pkgver=1.1.3
-pkgrel=3
-arch=('any')
-url='http://sphinx.pocoo.org/'
-license=('GPL')
-makedepends=(
-  'python-distribute'
-  'python-docutils'
-  'python-jinja'
-  'python-pygments'
-  'python2-distribute'
-  'python2-docutils'
-  'python2-jinja'
-  'python2-pygments'
-)
-checkdepends=(
-  'python-nose'
-  'python2-nose'
-  'texlive-latexextra'
-)
-source=("http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz")
-md5sums=('8f55a6d4f87fc6d528120c5d1f983e98')
-
-build() {
-  cd Sphinx-$pkgver
-  # remove build directory (avoid sed issues)
-  [[ -e build ]] && rm -rf build
-  # python builds
-  python setup.py build --build-lib=build/python
-  python2 setup.py build --build-lib=build/python2
-  # change python2 interpreter
-  find build/python2 -type f -exec \
-    sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
-  # change sphinx-binaries name in source code
-  find build/python2 -type f -name '*.py' -exec \
-    sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \;
-}
-
-check() {
-  #(cd Sphinx-$pkgver/build/python/ && python ../../tests/run.py -d)
-  (cd Sphinx-$pkgver/build/python2/ && python2 ../../tests/run.py -d)
-}
-
-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 build --build-lib=build/python \
-                  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
-  python2 setup.py build --build-lib=build/python2 \
-                   install --root="$pkgdir" --optimize=1
-  # fix python3 conflict
-  for _f in "$pkgdir"/usr/bin/*; do
-      mv -v "$_f" "${_f}2"
-  done
-}
-
-# vim:set ts=2 sw=2 ft=sh et:

Copied: python-sphinx/repos/community-any/PKGBUILD (from rev 104113, python-sphinx/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-01-16 02:37:00 UTC (rev 104114)
@@ -0,0 +1,79 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Fabio Volpe <volpefabio at gmail.com>
+
+pkgbase=python-sphinx
+pkgname=('python-sphinx' 'python2-sphinx')
+pkgver=1.2
+pkgrel=1
+arch=('any')
+url='http://sphinx.pocoo.org/'
+license=('GPL')
+makedepends=(
+  'python-distribute'
+  'python-docutils'
+  'python-jinja'
+  'python-pygments'
+  'python2-distribute'
+  'python2-docutils'
+  'python2-jinja'
+  'python2-pygments'
+)
+checkdepends=(
+  'python-nose'
+  'python2-nose'
+  'texlive-latexextra'
+)
+source=("http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz")
+md5sums=('8516046aad73fe46dedece4e8e434328')
+
+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 build
+  msg2 'Python 2 version'
+  cd "$srcdir"/Sphinx-${pkgver}2
+  make build
+}
+
+check() {
+  msg2 'Python 3 version'
+  cd "$srcdir"/Sphinx-$pkgver
+  make test
+  msg2 'Python 2 version'
+  cd "$srcdir"/Sphinx-${pkgver}2
+  make test
+}
+
+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:




More information about the arch-commits mailing list