Date: Thursday, April 11, 2019 @ 21:06:23
  Author: polyzen
Revision: 451170

archrelease: copy trunk to community-any

Added:
  python2-sphinx/repos/community-any/
  python2-sphinx/repos/community-any/PKGBUILD
    (from rev 451169, python2-sphinx/trunk/PKGBUILD)

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

Copied: python2-sphinx/repos/community-any/PKGBUILD (from rev 451169, 
python2-sphinx/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2019-04-11 21:06:23 UTC (rev 451170)
@@ -0,0 +1,66 @@
+# Maintainer: Johannes Löthberg <johan...@kyriasis.com>
+# Maintainer: Daniel M. Capella <poly...@archlinux.org>
+# Contributor: SĂ©bastien Luttringer
+# Contributor: Angel Velasquez <an...@archlinux.org>
+# Contributor: Fabio Volpe <volpefa...@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:

Reply via email to