diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/docutils |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/docutils')
-rw-r--r-- | dev-python/docutils/Manifest | 12 | ||||
-rw-r--r-- | dev-python/docutils/docutils-0.11.ebuild | 68 | ||||
-rw-r--r-- | dev-python/docutils/docutils-0.12.ebuild | 67 | ||||
-rw-r--r-- | dev-python/docutils/docutils-0.13.1.ebuild | 67 | ||||
-rw-r--r-- | dev-python/docutils/docutils-0.14.ebuild | 67 | ||||
-rw-r--r-- | dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch | 30 | ||||
-rw-r--r-- | dev-python/docutils/metadata.xml | 11 |
7 files changed, 322 insertions, 0 deletions
diff --git a/dev-python/docutils/Manifest b/dev-python/docutils/Manifest new file mode 100644 index 000000000000..caad85a235bc --- /dev/null +++ b/dev-python/docutils/Manifest @@ -0,0 +1,12 @@ +AUX docutils-0.11-python3.3-odt-writer.patch 1057 SHA256 4a25fb0e5cd8cd7f94963a389f2f6c2efad6cd5830cbdeba9d25ff6484a45e77 SHA512 c92a00f5bf2b44f66a1aed1df21280e3f190f3a9d8f87cdbce6851068eb31feeed04c0b057b0685cf2783e0a2bf0a2daef9cb1c4a5dba57b09bc32a5c199398f WHIRLPOOL b6b1a11b874b16378fb6ef630b389087d9bfd074bcf9ae5a06b01626f0a411f2a8337184dcc244509c9adb7bbe45baea8f8531911fc34f36a344b678f1c965b2 +DIST docutils-0.11.tar.gz 1611755 SHA256 9af4166adf364447289c5c697bb83c52f1d6f57e77849abcccd6a4a18a5e7ec9 SHA512 8e87581b27ce4fb5e97dcef56047f4bf3a076b98e9e42f5dc66f4c370e5893d1571e46f00fee6f1c8b9f8c8a79e128e4599b9ee213ad1dee2bf16a0246e187df WHIRLPOOL 0231e34e8c84a29f52f244dfe8d3fdbb8f2db9f6e5f26d0a5953c109a2620b15f86874e3b7604aeccf805f789abef7e7af5cc076dde25f2e2947bad11d2ae58c +DIST docutils-0.12.tar.gz 1618353 SHA256 c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa SHA512 0087433f8b76e1d0302d2fab77fdbda941132d16ac1fcecb26ca66119687eefd9e2f6901e05d705f857fa31e2526136c9827dfd57c44cd295bd10dcce3faebf9 WHIRLPOOL 9b9d9d7315351e4b803195a157836df13a10fc706c0aea2c6ac7c6d01bd034870106d0ceedfbd7e9fae17420f3d116df30cc222ad5b3c7205d5eca767d550564 +DIST docutils-0.13.1.tar.gz 1735216 SHA256 718c0f5fb677be0f34b781e04241c4067cbd9327b66bdd8e763201130f5175be SHA512 6a68b27dac3705ff532cb79d6b6808071206544a1c653e6a24d46971a5e10edffc7d275834eec4e80d948eb066bb099cae0195c0ab674e68747820e54f0ea64e WHIRLPOOL 08fb2511bbf60b8b7e7cb160c5a04ebc7c4bd7a8b29263a63ab8fe4506d6655e8649af3d7bfd93097c463e2a0da8995de416689895228dab1bfadb0d41e56d90 +DIST docutils-0.14.tar.gz 1727105 SHA256 51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274 SHA512 1ed72c2ef7d2ca38d1c6f3154b7986ea46f599d9bd826405a5257fdd7740c8626957d6298aa95fb0edea8a24515de22f1ad9b2ecbd59341a1ab7a2bab30f500c WHIRLPOOL f415ca2492bc4ccece104e69e9e2b611c0f5c86530906f2a1110ee6a53d4020b245ba973fda236dbd432877556c16f07aaffab69fa8c2cf6bb4c70e92ffbee37 +EBUILD docutils-0.11.ebuild 1880 SHA256 27736ac1de08bffef8135fbf175fedcc8302ee94d070eb067c7c629163f9b1b1 SHA512 46663d7ddab4817db565b0c45893796f09535d8f529e93758ecceace6a6c8b4b3fc7f466ffbc596cd20deb393bed8c9b347e8a0adc285c380d80eb16eefa5d3b WHIRLPOOL cad8063e4fbf9ad50ab16518627f46d04d3b69a9c0d082062b55bab57e1ce1b93781aa8806ca36529f022e276ee32afbf9eeab50156f8069baf9df16786e1289 +EBUILD docutils-0.12.ebuild 1830 SHA256 cfe32ae466035032e050dc1df926187609d952b06d7dfa52e018698ff7527d4c SHA512 d6fe937fda326cc62b6e747f5e9dee812309539ccc3990b74d8ccfff66e8c8a470e57872dd46c8dba93dbc3cb721ab490765704998ad75087c1b602449f1f64f WHIRLPOOL cfa5eda74d291930491430cb27161859e2a171f0fb7e273c27cd01746118e55835dc365a30a74eb3ed3d0254c053ae2b545e4936dd3779f293d2709f118f1d4b +EBUILD docutils-0.13.1.ebuild 1844 SHA256 cee7a7e0bb5cd493835e319e627062a008722c36c83afc3521beb3e54413f076 SHA512 f72cd90c9d34825a1a310759cde12e9b1b815e2a6ff7680410e8f3a2fe0acc3975a73356c67596b412074b4d576cf26fedaeabdca3c7149b815072a978028fe3 WHIRLPOOL 2c96e52235c8327610a1688524d6b32488dcf9d029b044b185701f530257cc3af158c458034cf8016123c171b2a4e117ce8007c3a9065c1a33051b9bf3988872 +EBUILD docutils-0.14.ebuild 1854 SHA256 7f64c129090c1afcf4e87ff1f8272110aa6526dbe39d766321713431bfa23970 SHA512 66e6f8afc471b48ce3719cb435fdcc450e997b2af9a97b595662cf89f8622fb2593591a8d425972e9d074cdbef68a9f7f1304c67a86b55ef1a5cb0bda1cce7c1 WHIRLPOOL 8a44568dad393f45b4dd1282f5a3c65abee4071962deacfd6ae456a122732853cb412c37f215b7f63b11ba8c59e7c333a11556f63c1d2a9656217cfe71be1210 +MISC ChangeLog 5944 SHA256 df2f6b6e3af310258f402eade9aa37ee8f2543e4ec60c821261a6b96ad63435f SHA512 9fc0b017832f75d26823b74c1899b80b4c40534a08f94b53661ac0b2666c5125023f5c877178a7c6c5402a43a6cf4a988181bbd3d0a2d11a19bc12956d1c2286 WHIRLPOOL 7dc29fc52c17a8d5cbaf047bea7d2d9b9499f831457f216027cd4881281ccc516b5a37660f1d4be2317b24665a04cde8a54ffa7ab14ace2eeedf0b336b794219 +MISC ChangeLog-2015 29096 SHA256 7f00344a2d694a55ddc99915c727ce6ac92d1e53d375443dc00a5ed45537ca3b SHA512 346423f639b788cdb1b6e5bbc54b7100f077650893f05fdcb02d839e9feb1c81808c0a7b7f1e792f5d8e64da280d0a2500e20b7c5e1b74e13585f32a9161bc97 WHIRLPOOL 190c76721de345eb9437b806826a862f34862ba2f49c2fd96cf02de3ebc8b564fd64b4a805387226482945c47b9acbbb10b2031852dea4dd4c3c9028de6f8d1b +MISC metadata.xml 318 SHA256 5c7c673cfaeff6380c8de04c083277ada036db3bf4440a40c7f3c4560a039b3f SHA512 3cf09c6d943288ec0fd9fa92d4475ac184a87b47b7bc8df80fc24a712d8bf0363d4c2a08efb2ace4d94adcd59fdd6f82ae9fd9bbe58561ead5715f7daf84a96f WHIRLPOOL a1f69ea092eace7fed4da95313f7a2698d3a31c93dd98b28d93137e2a7340499aced6a98735a6f466f778a0aebb03eb1e27a60c15231b959bd76f8b629db6488 diff --git a/dev-python/docutils/docutils-0.11.ebuild b/dev-python/docutils/docutils-0.11.ebuild new file mode 100644 index 000000000000..74f4ef82f19b --- /dev/null +++ b/dev-python/docutils/docutils-0.11.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Python Documentation Utilities" +HOMEPAGE="http://docutils.sourceforge.net/ https://pypi.python.org/pypi/docutils" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD-2 GPL-3 public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="dev-python/pygments[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/docutils-0.11-python3.3-odt-writer.patch ) + +python_compile_all() { + # Generate html docs from reStructured text sources. + + # Place html4css1.css in base directory to ensure that the generated reference to it is correct. + cp docutils/writers/html4css1/html4css1.css . || die + + cd tools || die + "${PYTHON}" buildhtml.py --input-encoding=utf-8 \ + --stylesheet-path=../html4css1.css, --traceback ../docs || die +} + +python_test() { + if python_is_python3; then + pushd test3 > /dev/null || die + else + pushd test > /dev/null || die + fi + "${PYTHON}" alltests.py || die "Testing failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_install() { + distutils-r1_python_install + + # Install tools. + python_doscript tools/{buildhtml,quicktest}.py +} + +install_txt_doc() { + local doc="${1}" + local dir="txt/$(dirname ${doc})" + docinto "${dir}" + dodoc "${doc}" +} + +python_install_all() { + local DOCS=( *.txt ) + local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) + + distutils-r1_python_install_all + + local doc + while IFS= read -r -d '' doc; do + install_txt_doc "${doc}" + done < <(find docs tools -name '*.txt' -print0) +} diff --git a/dev-python/docutils/docutils-0.12.ebuild b/dev-python/docutils/docutils-0.12.ebuild new file mode 100644 index 000000000000..76c56c7b0a09 --- /dev/null +++ b/dev-python/docutils/docutils-0.12.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Python Documentation Utilities" +HOMEPAGE="http://docutils.sourceforge.net/ https://pypi.python.org/pypi/docutils" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD-2 GPL-3 public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="dev-python/pygments[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +python_compile_all() { + # Generate html docs from reStructured text sources. + + # Place html4css1.css in base directory to ensure that the generated reference to it is correct. + cp docutils/writers/html4css1/html4css1.css . || die + + cd tools || die + "${PYTHON}" buildhtml.py --input-encoding=utf-8 \ + --stylesheet-path=../html4css1.css, --traceback ../docs || die +} + +python_test() { + if python_is_python3; then + pushd test3 > /dev/null || die + else + pushd test > /dev/null || die + fi + "${PYTHON}" alltests.py || die "Testing failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_install() { + distutils-r1_python_install + + # Install tools. + python_doscript tools/{buildhtml,quicktest}.py +} + +install_txt_doc() { + local doc="${1}" + local dir="txt/$(dirname ${doc})" + docinto "${dir}" + dodoc "${doc}" +} + +python_install_all() { + local DOCS=( *.txt ) + local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) + + distutils-r1_python_install_all + + local doc + while IFS= read -r -d '' doc; do + install_txt_doc "${doc}" + done < <(find docs tools -name '*.txt' -print0) +} diff --git a/dev-python/docutils/docutils-0.13.1.ebuild b/dev-python/docutils/docutils-0.13.1.ebuild new file mode 100644 index 000000000000..2822eef75a65 --- /dev/null +++ b/dev-python/docutils/docutils-0.13.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Python Documentation Utilities" +HOMEPAGE="http://docutils.sourceforge.net/ https://pypi.python.org/pypi/docutils" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD-2 GPL-3 public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="dev-python/pygments[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +python_compile_all() { + # Generate html docs from reStructured text sources. + + # Place html4css1.css in base directory to ensure that the generated reference to it is correct. + cp docutils/writers/html4css1/html4css1.css . || die + + cd tools || die + "${EPYTHON}" buildhtml.py --input-encoding=utf-8 \ + --stylesheet-path=../html4css1.css, --traceback ../docs || die +} + +python_test() { + if python_is_python3; then + pushd test3 > /dev/null || die + else + pushd test > /dev/null || die + fi + "${EPYTHON}" alltests.py || die "Testing failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_install() { + distutils-r1_python_install + + # Install tools. + python_doscript tools/{buildhtml,quicktest}.py +} + +install_txt_doc() { + local doc="${1}" + local dir="txt/$(dirname ${doc})" + docinto "${dir}" + dodoc "${doc}" +} + +python_install_all() { + local DOCS=( *.txt ) + local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) + + distutils-r1_python_install_all + + local doc + while IFS= read -r -d '' doc; do + install_txt_doc "${doc}" + done < <(find docs tools -name '*.txt' -print0) +} diff --git a/dev-python/docutils/docutils-0.14.ebuild b/dev-python/docutils/docutils-0.14.ebuild new file mode 100644 index 000000000000..47f8bb06d9fa --- /dev/null +++ b/dev-python/docutils/docutils-0.14.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Python Documentation Utilities" +HOMEPAGE="http://docutils.sourceforge.net/ https://pypi.python.org/pypi/docutils" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD-2 GPL-3 public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="dev-python/pygments[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +python_compile_all() { + # Generate html docs from reStructured text sources. + + # Place html4css1.css in base directory to ensure that the generated reference to it is correct. + cp docutils/writers/html4css1/html4css1.css . || die + + cd tools || die + "${EPYTHON}" buildhtml.py --input-encoding=utf-8 \ + --stylesheet-path=../html4css1.css, --traceback ../docs || die +} + +python_test() { + if python_is_python3; then + pushd test3 > /dev/null || die + else + pushd test > /dev/null || die + fi + "${EPYTHON}" alltests.py || die "Testing failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_install() { + distutils-r1_python_install + + # Install tools. + python_doscript tools/{buildhtml,quicktest}.py +} + +install_txt_doc() { + local doc="${1}" + local dir="txt/$(dirname ${doc})" + docinto "${dir}" + dodoc "${doc}" +} + +python_install_all() { + local DOCS=( *.txt ) + local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) + + distutils-r1_python_install_all + + local doc + while IFS= read -r -d '' doc; do + install_txt_doc "${doc}" + done < <(find docs tools -name '*.txt' -print0) +} diff --git a/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch b/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch new file mode 100644 index 000000000000..e84256f3dc43 --- /dev/null +++ b/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch @@ -0,0 +1,30 @@ +--- a/docutils/writers/odf_odt/__init__.py ++++ b/docutils/writers/odf_odt/__init__.py +@@ -88,16 +88,20 @@ + # that support for the ability to get the parent of an element. + # + if WhichElementTree == 'elementtree': +- class _ElementInterfaceWrapper(etree._ElementInterface): ++ import weakref ++ _parents = weakref.WeakKeyDictionary() ++ if isinstance(etree.Element, type): ++ _ElementInterface = etree.Element ++ else: ++ _ElementInterface = etree._ElementInterface ++ class _ElementInterfaceWrapper(_ElementInterface): + def __init__(self, tag, attrib=None): +- etree._ElementInterface.__init__(self, tag, attrib) +- if attrib is None: +- attrib = {} +- self.parent = None ++ _ElementInterface.__init__(self, tag, attrib) ++ _parents[self] = None + def setparent(self, parent): +- self.parent = parent ++ _parents[self] = parent + def getparent(self): +- return self.parent ++ return _parents[self] + + + # diff --git a/dev-python/docutils/metadata.xml b/dev-python/docutils/metadata.xml new file mode 100644 index 000000000000..6ee5bb862e04 --- /dev/null +++ b/dev-python/docutils/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">docutils</remote-id> + </upstream> +</pkgmetadata> |