[arch-commits] Commit in python2-sphinx/repos/community-any (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Jan 1 22:56:27 UTC 2020
Date: Wednesday, January 1, 2020 @ 22:56:26
Author: arojas
Revision: 545966
archrelease: copy trunk to community-any
Added:
python2-sphinx/repos/community-any/PKGBUILD
(from rev 545965, python2-sphinx/trunk/PKGBUILD)
Deleted:
python2-sphinx/repos/community-any/PKGBUILD
----------+
PKGBUILD | 144 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 78 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-01 22:55:57 UTC (rev 545965)
+++ PKGBUILD 2020-01-01 22:56:26 UTC (rev 545966)
@@ -1,66 +0,0 @@
-# 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:
Copied: python2-sphinx/repos/community-any/PKGBUILD (from rev 545965, python2-sphinx/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-01 22:56:26 UTC (rev 545966)
@@ -0,0 +1,78 @@
+# 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>
+
+pkgbase=python2-sphinx
+pkgname=(python2-sphinx python-sphinx-1)
+pkgver=1.8.5
+pkgrel=3
+pkgdesc='Python2 documentation generator'
+arch=('any')
+url='https://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')
+makedepends=(python-setuptools)
+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() {
+ cp -r Sphinx-$pkgver{,-py2}
+ # change python2 interpreter
+ find Sphinx-$pkgver-py2 -type f -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+ # change sphinx-binaries name in source code
+ find Sphinx-$pkgver-py2 -type f -name '*.py' -exec \
+ sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \;
+}
+
+build() {
+ cd Sphinx-$pkgver
+ make build
+
+ cd ../Sphinx-$pkgver-py2
+ make PYTHON=python2 build
+}
+
+package_python2-sphinx() {
+ cd Sphinx-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+package_python-sphinx-1() {
+ pkgdesc='Python documentation generator (legacy version)'
+ depends=('python-babel'
+ 'python-docutils'
+ 'python-imagesize'
+ 'python-jinja'
+ 'python-pygments'
+ 'python-requests'
+ 'python-setuptools'
+ 'python-six'
+ 'python-snowballstemmer'
+ 'python-sphinx-alabaster-theme'
+ 'python-sphinxcontrib-websupport')
+ conflicts=(python-sphinx)
+ provides=(python-sphinx=$pkgver)
+ cd Sphinx-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
More information about the arch-commits
mailing list