[arch-commits] Commit in (4 files)

Daniel M. Capella polyzen at archlinux.org
Thu Apr 11 21:05:54 UTC 2019


    Date: Thursday, April 11, 2019 @ 21:05:53
  Author: polyzen
Revision: 451169

Python 2 not supported past this version

Added:
  python2-sphinx/
  python2-sphinx/repos/
  python2-sphinx/trunk/
  python2-sphinx/trunk/PKGBUILD

----------+
 PKGBUILD |   66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

Added: python2-sphinx/trunk/PKGBUILD
===================================================================
--- python2-sphinx/trunk/PKGBUILD	                        (rev 0)
+++ python2-sphinx/trunk/PKGBUILD	2019-04-11 21:05:53 UTC (rev 451169)
@@ -0,0 +1,66 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Sébastien Luttringer
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Fabio Volpe <volpefabio at gmail.com>
+
+pkgname=python2-sphinx
+pkgver=1.8.5
+pkgrel=2
+pkgdesc='Python2 documentation generator'
+arch=('any')
+url=http://www.sphinx-doc.org/
+license=('BSD')
+depends=('python2-babel'
+         'python2-docutils'
+         'python2-imagesize'
+         'python2-jinja'
+         'python2-pygments'
+         'python2-requests'
+         'python2-setuptools'
+         'python2-six'
+         'python2-snowballstemmer'
+         'python2-sphinx-alabaster-theme'
+         'python2-sphinxcontrib-websupport'
+         'python2-typing')
+#checkdepends=('imagemagick' 'librsvg'
+#              'python2-enum34'
+#              'python2-html5lib'
+#              'python2-mock'
+#              'python2-pytest'
+#              'texlive-latexextra')
+optdepends=('imagemagick: for ext.imgconverter'
+            'texlive-latexextra: for generation of PDF documentation')
+source=("https://pypi.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz"{,.asc})
+sha512sums=('d7e6a7a6186d1d4e4de0233fb6859da1ef3e02f628512ff9096ef4775b9fb8589edb9052d752925d7a2f1cb7901291af96b5036a5d00f5f58966609bd42872f4'
+            'SKIP')
+validpgpkeys=('8A11B79A5D0D749A66F0A030102C2C17498D6B9E'  # Takeshi KOMIYA
+              'E9BEABB07E7B9CC3F56E62C91425F8CE5EBA0E07') # Takayuki Shimizukawa
+
+prepare() {
+  # change python2 interpreter
+  find Sphinx-$pkgver -type f -exec \
+    sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+  # change sphinx-binaries name in source code
+  find Sphinx-$pkgver -type f -name '*.py' -exec \
+    sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \;
+}
+
+build() {
+  cd Sphinx-$pkgver
+  make PYTHON=python2 build
+}
+
+#check() {
+#  cd Sphinx-$pkgver
+#  LC_ALL="en_US.UTF-8" make PYTHON=python2 test
+#  rm -r tests
+#}
+
+package() {
+  cd Sphinx-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list