python3-docutils: update to 0.17.1, remove python-docutils.
This commit is contained in:
parent
47d9453c16
commit
31f91c0583
|
@ -1,20 +0,0 @@
|
|||
--- a/test/DocutilsTestSupport.py
|
||||
+++ b/test/DocutilsTestSupport.py
|
||||
@@ -51,14 +51,9 @@
|
||||
|
||||
testroot = os.path.abspath(os.path.dirname(__file__) or os.curdir)
|
||||
os.chdir(testroot)
|
||||
-if sys.version_info >= (3, 0):
|
||||
- sys.path.insert(0, os.path.normpath(os.path.join(testroot,
|
||||
- '..', 'build', 'lib')))
|
||||
- sys.path.append(os.path.normpath(os.path.join(testroot, '..',
|
||||
- 'build', 'lib', 'extras')))
|
||||
-else:
|
||||
- sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..')))
|
||||
- sys.path.append(os.path.normpath(os.path.join(testroot, '..', 'extras')))
|
||||
+builddir = 'build-%d.%d' % (sys.version_info.major, sys.version_info.minor)
|
||||
+sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..', builddir, 'lib')))
|
||||
+sys.path.append(os.path.normpath(os.path.join(testroot, '..', builddir, 'lib', 'extras')))
|
||||
sys.path.insert(0, testroot)
|
||||
|
||||
try:
|
|
@ -1,62 +0,0 @@
|
|||
# Template file for 'python-docutils'
|
||||
pkgname=python-docutils
|
||||
version=0.16
|
||||
revision=3
|
||||
wrksrc="docutils-${version}"
|
||||
build_style=python-module
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
# docutils/writers/odf_odt/pygmentsformatter.py
|
||||
depends="python python-Pygments"
|
||||
short_desc="Python2 documentation utilities"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
license="custom:Public Domain, BSD-2-Clause, GPL-3.0-or-later, Python-2.0"
|
||||
homepage="http://docutils.sourceforge.net"
|
||||
distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz"
|
||||
checksum=c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc
|
||||
checkdepends+="$depends python3-Pygments"
|
||||
|
||||
alternatives="
|
||||
docutils:rst2html:/usr/bin/rst2html.py2
|
||||
docutils:rst2html4:/usr/bin/rst2html4.py2
|
||||
docutils:rst2html5:/usr/bin/rst2html5.py2
|
||||
docutils:rst2latex:/usr/bin/rst2latex.py2
|
||||
docutils:rst2man:/usr/bin/rst2man.py2
|
||||
docutils:rst2odt:/usr/bin/rst2odt.py2
|
||||
docutils:rst2odt_prepstyles:/usr/bin/rst2odt_prepstyles.py2
|
||||
docutils:rst2pseudoxml:/usr/bin/rst2pseudoxml.py2
|
||||
docutils:rst2s5:/usr/bin/rst2s5.py2
|
||||
docutils:rst2xetex:/usr/bin/rst2xetex.py2
|
||||
docutils:rst2xml:/usr/bin/rst2xml.py2
|
||||
docutils:rstpep2html:/usr/bin/rstpep2html.py2"
|
||||
|
||||
do_check() {
|
||||
cd test
|
||||
python3 alltests.py
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING.txt COPYING
|
||||
}
|
||||
|
||||
python3-docutils_package() {
|
||||
alternatives="
|
||||
docutils:rst2html:/usr/bin/rst2html.py3
|
||||
docutils:rst2html4:/usr/bin/rst2html4.py3
|
||||
docutils:rst2html5:/usr/bin/rst2html5.py3
|
||||
docutils:rst2latex:/usr/bin/rst2latex.py3
|
||||
docutils:rst2man:/usr/bin/rst2man.py3
|
||||
docutils:rst2odt:/usr/bin/rst2odt.py3
|
||||
docutils:rst2odt_prepstyles:/usr/bin/rst2odt_prepstyles.py3
|
||||
docutils:rst2pseudoxml:/usr/bin/rst2pseudoxml.py3
|
||||
docutils:rst2s5:/usr/bin/rst2s5.py3
|
||||
docutils:rst2xetex:/usr/bin/rst2xetex.py3
|
||||
docutils:rst2xml:/usr/bin/rst2xml.py3
|
||||
docutils:rstpep2html:/usr/bin/rstpep2html.py3"
|
||||
depends="python3 python3-Pygments"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove "usr/bin/*3"
|
||||
vmove "usr/lib/python3*"
|
||||
vlicense COPYING.txt COPYING
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
python-docutils
|
|
@ -0,0 +1,39 @@
|
|||
# Template file for 'python3-docutils'
|
||||
pkgname=python3-docutils
|
||||
version=0.17.1
|
||||
revision=1
|
||||
wrksrc="docutils-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
# docutils/writers/odf_odt/pygmentsformatter.py
|
||||
depends="python3-Pygments"
|
||||
checkdepends="${depends}"
|
||||
short_desc="Python3 documentation utilities"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
license="Public Domain, BSD-2-Clause, GPL-3.0-or-later, Python-2.0"
|
||||
homepage="http://docutils.sourceforge.net"
|
||||
distfiles="${PYPI_SITE}/d/docutils/docutils-${version}.tar.gz"
|
||||
checksum=686577d2e4c32380bb50cbb22f575ed742d58168cee37e99117a854bcd88f125
|
||||
|
||||
alternatives="
|
||||
docutils:rst2html:/usr/bin/rst2html.py
|
||||
docutils:rst2html4:/usr/bin/rst2html4.py
|
||||
docutils:rst2html5:/usr/bin/rst2html5.py
|
||||
docutils:rst2latex:/usr/bin/rst2latex.py
|
||||
docutils:rst2man:/usr/bin/rst2man.py
|
||||
docutils:rst2odt:/usr/bin/rst2odt.py
|
||||
docutils:rst2odt_prepstyles:/usr/bin/rst2odt_prepstyles.py
|
||||
docutils:rst2pseudoxml:/usr/bin/rst2pseudoxml.py
|
||||
docutils:rst2s5:/usr/bin/rst2s5.py
|
||||
docutils:rst2xetex:/usr/bin/rst2xetex.py
|
||||
docutils:rst2xml:/usr/bin/rst2xml.py
|
||||
docutils:rstpep2html:/usr/bin/rstpep2html.py"
|
||||
|
||||
do_check() {
|
||||
cd test
|
||||
python3 alltests.py
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING.txt COPYING
|
||||
}
|
Loading…
Reference in New Issue