summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2018-09-22 09:26:08 +0200
committerMichel Zou2018-09-22 09:26:08 +0200
commit920d94c936b13e5c36a3d9e22f20b24e3839978f (patch)
treea0874843d2080da8b8570cc2b4d056a6cf6a03e7
parentdd48667a6d9cbc4ff6cbafd54dbe9f4d05d3de3a (diff)
downloadaur-920d94c936b13e5c36a3d9e22f20b24e3839978f.tar.gz
drop py2
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD65
2 files changed, 11 insertions, 81 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4f8c26701a1..cc3b51f13c9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,32 +1,21 @@
pkgbase = python-sphinx-git
- pkgver = r5767.1cef30f
+ pkgver = r11542.271ea125f
pkgrel = 1
url = http://sphinx.pocoo.org/
arch = any
license = BSD
checkdepends = python-nose
- checkdepends = python2-nose
checkdepends = texlive-latexextra
checkdepends = python-snowballstemmer
- checkdepends = python2-snowballstemmer
checkdepends = python-babel
- checkdepends = python2-babel
checkdepends = python-sphinx-alabaster-theme
- checkdepends = python2-sphinx-alabaster-theme
checkdepends = python-sphinx_rtd_theme
- checkdepends = python2-sphinx_rtd_theme
- checkdepends = python2-mock
makedepends = git
makedepends = python-setuptools
makedepends = python-docutils
makedepends = python-jinja
makedepends = python-pygments
makedepends = python-six
- makedepends = python2-setuptools
- makedepends = python2-docutils
- makedepends = python2-jinja
- makedepends = python2-pygments
- makedepends = python2-six
source = git+https://github.com/sphinx-doc/sphinx.git
md5sums = SKIP
@@ -44,17 +33,3 @@ pkgname = python-sphinx-git
provides = python-sphinx
conflicts = python-sphinx
-pkgname = python2-sphinx-git
- pkgdesc = Python2 documentation generator
- depends = python2-jinja
- depends = python2-pygments
- depends = python2-docutils
- depends = python2-sphinx_rtd_theme
- depends = python2-sphinx-alabaster-theme
- depends = python2-babel
- depends = python2-snowballstemmer
- depends = python2-six
- optdepends = texlive-latexextra: for generation of PDF documentation
- provides = python2-sphinx
- conflicts = python2-sphinx
-
diff --git a/PKGBUILD b/PKGBUILD
index e8349600b2f..84177c10e38 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,6 @@
-pkgbase=python-sphinx-git
-pkgname=('python-sphinx-git' 'python2-sphinx-git')
-pkgver=r5767.1cef30f
+pkgname=python-sphinx-git
+pkgver=r11542.271ea125f
pkgrel=1
arch=('any')
url='http://sphinx.pocoo.org/'
@@ -12,20 +11,14 @@ makedepends=('git'
'python-jinja'
'python-pygments'
'python-six'
- 'python2-setuptools'
- 'python2-docutils'
- 'python2-jinja'
- 'python2-pygments'
- 'python2-six'
)
checkdepends=(
- 'python-nose' 'python2-nose'
+ 'python-nose'
'texlive-latexextra'
- 'python-snowballstemmer' 'python2-snowballstemmer'
- 'python-babel' 'python2-babel'
- 'python-sphinx-alabaster-theme' 'python2-sphinx-alabaster-theme'
- 'python-sphinx_rtd_theme' 'python2-sphinx_rtd_theme'
- 'python2-mock'
+ 'python-snowballstemmer'
+ 'python-babel'
+ 'python-sphinx-alabaster-theme'
+ 'python-sphinx_rtd_theme'
)
source=("git+https://github.com/sphinx-doc/sphinx.git")
md5sums=('SKIP')
@@ -35,41 +28,18 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-prepare() {
-
- # souce duplication is required because makefile modify source code
- # setyp.py --build tricks don't works well
- cp -a sphinx sphinx2
- # change python2 interpreter
- find sphinx2 -type f -exec \
- sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
- # change sphinx-binaries name in source code
- find sphinx2 -type f -name '*.py' -exec \
- sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \;
-}
-
build() {
- msg2 'Python 3 version'
cd "$srcdir"/sphinx
- make PYTHON=python3 build
- msg2 'Python 2 version'
- cd "$srcdir"/sphinx2
- make PYTHON=python2 build
+ make build
}
check() {
- msg2 'Python 3 version'
cd "$srcdir"/sphinx
-# make PYTHON=python3 test
- rm -r tests
-
- msg2 'Python 2 version'
- cd "$srcdir"/sphinx2
- make PYTHON=python2 test
+ make test
rm -r tests
}
-package_python-sphinx-git() {
+package() {
pkgdesc='Python3 documentation generator'
depends=('python-jinja' 'python-pygments' 'python-docutils' 'python-sphinx_rtd_theme' 'python-sphinx-alabaster-theme' 'python-babel'
'python-snowballstemmer' 'python-six')
@@ -83,18 +53,3 @@ package_python-sphinx-git() {
install -Dm644 "$srcdir"/sphinx/LICENSE "$pkgdir"/usr/share/licenses/python-sphinx/LICENSE
}
-package_python2-sphinx-git() {
- pkgdesc='Python2 documentation generator'
- depends=('python2-jinja' 'python2-pygments' 'python2-docutils' 'python2-sphinx_rtd_theme' 'python2-sphinx-alabaster-theme' 'python2-babel'
-'python2-snowballstemmer' 'python2-six')
- optdepends=('texlive-latexextra: for generation of PDF documentation')
- provides=('python2-sphinx')
- conflicts=('python2-sphinx')
-
- cd sphinx2
- python2 setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 "$srcdir"/sphinx/LICENSE "$pkgdir"/usr/share/licenses/python2-sphinx/LICENSE
-}
-
-# vim:set ts=2 sw=2 et: