diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/utidylib | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/utidylib')
-rw-r--r-- | dev-python/utidylib/Manifest | 9 | ||||
-rw-r--r-- | dev-python/utidylib/files/utidylib-0.2-fix_tests.patch | 48 | ||||
-rw-r--r-- | dev-python/utidylib/files/utidylib-0.2-no-docs-in-site-packages.patch | 11 | ||||
-rw-r--r-- | dev-python/utidylib/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/utidylib/utidylib-0.2-r2.ebuild | 53 | ||||
-rw-r--r-- | dev-python/utidylib/utidylib-0.3-r1.ebuild | 47 | ||||
-rw-r--r-- | dev-python/utidylib/utidylib-0.3-r2.ebuild | 47 | ||||
-rw-r--r-- | dev-python/utidylib/utidylib-0.3.ebuild | 48 |
8 files changed, 275 insertions, 0 deletions
diff --git a/dev-python/utidylib/Manifest b/dev-python/utidylib/Manifest new file mode 100644 index 000000000000..fd8bd19b1495 --- /dev/null +++ b/dev-python/utidylib/Manifest @@ -0,0 +1,9 @@ +AUX utidylib-0.2-fix_tests.patch 2084 BLAKE2B e17a306a25f14806c33b05a350028ae4f2c8abf58055c5776f2736886dcc6a70d4dda3796b00ecaa50f36367983653507093b209e064e6d310d637eca57dd3ca SHA512 64d66929c0c318f2033877b51b8564fe32ac82512b08e28fb2c6252f591eeaa6ff84d2a23d7e5ea82a1e293371c84049f68033a21c8258fc9483cfb9f7c615cb +AUX utidylib-0.2-no-docs-in-site-packages.patch 475 BLAKE2B c909872b10b569b879d65eb7a886953e0b2d1b180704a616da6816604414b9f4a16cce90170e93264e7528fb1ff9100f7a76088ecfd136c51f6ad2278d2668ff SHA512 ffa0d4c261adfa9d49b5b0a3e559d80a627098a07667f935528a41b18a11ef18dbd86d6b48f99a8f10ff3c0ed91b966c00c5a78b9400b9caf7c9c57036b6d1f7 +DIST uTidylib-0.2.zip 17575 BLAKE2B f13964dc452d05e01fcd4dca601f35b6aaa4675cd0c10086998570e0deb0b8a0f53a1e6c243db8466862feeb1746299895946e381205280c62c6cb741619bc68 SHA512 02f6611f1c7dd42db96012f7067ada8ccd841532744a569492a2f1c0524a3f1777b8f997a716b9bb18f69f31cb922dc89328d0bd284830620a930a038b303893 +DIST uTidylib-0.3.tar.bz2 13809 BLAKE2B c6b495933ecdc21543c79e3ff200cc06ec4ebc1682cf9172bd988a08afef8b69db17eec4b88665aff5dc6cef371f3c665f6de3ffcc1dc515f778b523333c891b SHA512 4503f2a6366e5110740b312df2300d62bb68e1e1032184e9b56dee75995309c76d4f8e5851c73e7c8e08cca7bba9c74436d8dfc0524f115f3abb2bdf5529cc35 +EBUILD utidylib-0.2-r2.ebuild 1074 BLAKE2B e932e1a56825dd6897dc32503d30a776d936a58b9100184e64a6721de30313f42ef80ec67826d304eecd391601ea20f1d368424b2d9f2ebe9c5783f4b805dc68 SHA512 105a3114c8541c6d6377a03a3ecceb1e8aa38e3154b941c8936a5c9adeaceb2c0dc8f8b47fdae4932f455f719fc4568831200dbac50cdba90f6098b139f506d7 +EBUILD utidylib-0.3-r1.ebuild 996 BLAKE2B 00a939d1b4fcebac9501c4f3e85eaf8ef2dc38e56247b765ff1a4e7037d4ca7f1b9fca9be7e8b9c771d246c36b7983045d423d03d74cca91c0af31157803d720 SHA512 b466417d355b1b501453993d1102c7cc557ada59ccd3aa116b8b204bd485c961f5b7dc948aa0c49221cfa3a35b5ab5687e6c02575f58127cd72f15211675f277 +EBUILD utidylib-0.3-r2.ebuild 971 BLAKE2B 9a9ac9901c711d7f5370e90809a19a7f9eded6175202cb7cb3ddbaa336ae2df93dd07d955f352d070181ce8a2b7a5a192189ba1fd45bf9d3a69ca82241864cb5 SHA512 23526ebcd3476b74d9d795e6738be76ae501b07e76f38f8948f3fa0388df1c4702e20188d1ddfe9d0f4a30e382da78b31ec353865cc72a7579de67c19cd83d4a +EBUILD utidylib-0.3.ebuild 968 BLAKE2B 4abb04af906eb0d4c1a5fe381cbd4043f13f87bdf83e436ae380f70d0aaff090f5fa189668ac8a7e153ff17d4107d8cd64438504792d92df3cdec98ee5158739 SHA512 8ab4a0ee4b7953250bb049c06bc8bc1ac2a787f6faab73bd714bab4aa087d5b435a833e7efd382de1e53c52091adbe4687c25bade1f23cf464c0726b42b85637 +MISC metadata.xml 372 BLAKE2B 58932a89c0765511f1231a3ea43ac6509792a03b345655f7d15ec306a33a0264d49b32352c57e8d3cc73294c8cfcbd679289011312bdbed55459f6751dabffa0 SHA512 d6602ff98aa2ae6a69cad590ab014cbe5b3f1fc1b28c64e91025140fbecaa78c49d6e45bc8b8b5432b0cfe4c91402db3d3954db92905ddc42c13540a9c1e2ab5 diff --git a/dev-python/utidylib/files/utidylib-0.2-fix_tests.patch b/dev-python/utidylib/files/utidylib-0.2-fix_tests.patch new file mode 100644 index 000000000000..b55a15119ba4 --- /dev/null +++ b/dev-python/utidylib/files/utidylib-0.2-fix_tests.patch @@ -0,0 +1,48 @@ +diff -uNr uTidylib-0.2.orig/tidy/test_tidy.py uTidylib-0.2/tidy/test_tidy.py +--- uTidylib-0.2.orig/tidy/test_tidy.py 2004-02-24 08:53:52.000000000 +0000 ++++ uTidylib-0.2/tidy/test_tidy.py 2009-07-25 15:50:56.000000000 +0000 +@@ -4,6 +4,10 @@ + + class TidyTestCase(unittest.TestCase): + def __init__(self, *args, **kwargs): ++ super(unittest.TestCase, self).__init__(*args, **kwargs) ++ self._shared = False ++ self._parents = [] ++ + foo = u'''<html> + <h1>woot</h1> + <hr> +@@ -13,13 +17,13 @@ + </body> + </html> + '''.encode('utf8') +- file('foo.htm', 'w').write(foo) ++ file('foo.htm', 'w').write(foo) + self.input1 = "<html><script>1>2</script>" + self.input2 = "<html>\n" + "<p>asdkfjhasldkfjhsldjas\n" * 100 + def defaultDocs(self): + doc1 = tidy.parseString(self.input1) + doc2 = tidy.parseString(self.input2) +- doc3 = tidy.parse("foo.htm") ++ doc3 = tidy.parse("../foo.htm") + doc4 = tidy.parse("bar.htm") # doesn't exist + return (doc1, doc2, doc3, doc4) + def test_badOptions(self): +@@ -33,7 +37,7 @@ + self.fail("Invalid option %s should have raised an error" % + repr(dct)) + def test_encodings(self): +- foo = file('foo.htm').read().decode('utf8').encode('ascii', ++ foo = file('../foo.htm').read().decode('utf8').encode('ascii', + 'xmlcharrefreplace') + doc1u = tidy.parseString(foo, input_encoding='ascii', + output_encoding='latin1') +@@ -58,7 +62,7 @@ + ## self.failIf(len(doc2.errors)>1) # FIXME - tidylib doesn't + ## # support this? + self.failUnless(str(doc2).find('\n')<0) +- doc3 = tidy.parse('foo.htm', char_encoding='utf8', ++ doc3 = tidy.parse('../foo.htm', char_encoding='utf8', + alt_text='foo') + self.failUnless(str(doc3).find('alt="foo"')>=0) + self.failUnless(str(doc3).find('\xc3\xa9')>=0) diff --git a/dev-python/utidylib/files/utidylib-0.2-no-docs-in-site-packages.patch b/dev-python/utidylib/files/utidylib-0.2-no-docs-in-site-packages.patch new file mode 100644 index 000000000000..761c4947dfa8 --- /dev/null +++ b/dev-python/utidylib/files/utidylib-0.2-no-docs-in-site-packages.patch @@ -0,0 +1,11 @@ +--- uTidylib-0.2-orig/setup.py 2005-12-01 00:48:14.000000000 +0100 ++++ uTidylib-0.2/setup.py 2005-12-01 01:10:33.000000000 +0100 +@@ -54,7 +54,7 @@ + + + setup_data = dict(packages=['tidy', ], +- data_files=data_files, ++# data_files=data_files, + cmdclass=dict(install_data=install_data_utidylib, + bdist_wininst=bdist_wininst_utidylib, + install=install_utidylib, diff --git a/dev-python/utidylib/metadata.xml b/dev-python/utidylib/metadata.xml new file mode 100644 index 000000000000..a9a29c978e98 --- /dev/null +++ b/dev-python/utidylib/metadata.xml @@ -0,0 +1,12 @@ +<?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="github">nijel/utidylib</remote-id> + <remote-id type="sourceforge">utidylib</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/utidylib/utidylib-0.2-r2.ebuild b/dev-python/utidylib/utidylib-0.2-r2.ebuild new file mode 100644 index 000000000000..e71c0277816b --- /dev/null +++ b/dev-python/utidylib/utidylib-0.2-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +MY_P="uTidylib-${PV}" + +DESCRIPTION="TidyLib Python wrapper" +HOMEPAGE="https://cihar.com/software/utidylib/" +#SRC_URI="mirror://berlios/${PN}/${MY_P}.zip" +SRC_URI="mirror://gentoo/${MY_P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="doc test" + +RDEPEND="app-text/htmltidy" +DEPEND="${RDEPEND} + app-arch/unzip + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/epydoc[${PYTHON_USEDEP}] ) + test? ( dev-python/twisted-core[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/${P}-no-docs-in-site-packages.patch" + "${FILESDIR}/${P}-fix_tests.patch" + ) + + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + "${PYTHON}" gendoc.py || die + fi +} + +python_test() { + trial tidy || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( apidoc/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/utidylib/utidylib-0.3-r1.ebuild b/dev-python/utidylib/utidylib-0.3-r1.ebuild new file mode 100644 index 000000000000..f4930840d563 --- /dev/null +++ b/dev-python/utidylib/utidylib-0.3-r1.ebuild @@ -0,0 +1,47 @@ +# 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} ) + +inherit distutils-r1 + +MY_P="uTidylib-${PV}" + +DESCRIPTION="TidyLib Python wrapper" +HOMEPAGE="https://cihar.com/software/utidylib/" +SRC_URI="http://dl.cihar.com/${PN}/${MY_P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc test" + +RDEPEND=" + || ( app-text/tidy-html5 app-text/htmltidy ) + dev-python/six[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +RESTRICT="test" # 1/11 tests fail + +S="${WORKDIR}/${MY_P}" + +python_compile_all() { + if use doc; then + ${EPYTHON} setup.py build_sphinx || die + fi +} + +python_test() { + py.test || die "testsuite failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( build/sphinx/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/utidylib/utidylib-0.3-r2.ebuild b/dev-python/utidylib/utidylib-0.3-r2.ebuild new file mode 100644 index 000000000000..180247a06a16 --- /dev/null +++ b/dev-python/utidylib/utidylib-0.3-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +MY_P="uTidylib-${PV}" + +DESCRIPTION="TidyLib Python wrapper" +HOMEPAGE="https://cihar.com/software/utidylib/" +SRC_URI="http://dl.cihar.com/${PN}/${MY_P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc test" + +RDEPEND=" + app-text/tidy-html5 + dev-python/six[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +RESTRICT="test" # 1/11 tests fail + +S="${WORKDIR}/${MY_P}" + +python_compile_all() { + if use doc; then + ${EPYTHON} setup.py build_sphinx || die + fi +} + +python_test() { + py.test || die "testsuite failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( build/sphinx/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/utidylib/utidylib-0.3.ebuild b/dev-python/utidylib/utidylib-0.3.ebuild new file mode 100644 index 000000000000..177e0d3644c2 --- /dev/null +++ b/dev-python/utidylib/utidylib-0.3.ebuild @@ -0,0 +1,48 @@ +# 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} ) + +inherit distutils-r1 + +MY_P="uTidylib-${PV}" + +DESCRIPTION="TidyLib Python wrapper" +HOMEPAGE="https://cihar.com/software/utidylib/" +SRC_URI="http://dl.cihar.com/${PN}/${MY_P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="doc test" + +RDEPEND=" + app-text/htmltidy + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" + +RESTRICT="test" # 1/11 tests fail + +S="${WORKDIR}/${MY_P}" + +python_compile_all() { + if use doc; then + ${EPYTHON} setup.py build_sphinx || die + fi +} + +python_test() { + py.test || die "testsuite failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( build/sphinx/html/. ) + distutils-r1_python_install_all +} |