From 2f51c9978dda4c6e8debca43e4235ecc86914032 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 25 Dec 2017 17:37:52 +0000 Subject: gentoo resync : 25.12.2017 --- dev-python/utidylib/Manifest | 1 + dev-python/utidylib/utidylib-0.3-r1.ebuild | 47 ++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 dev-python/utidylib/utidylib-0.3-r1.ebuild (limited to 'dev-python/utidylib') diff --git a/dev-python/utidylib/Manifest b/dev-python/utidylib/Manifest index 2c3f49753274..d0a7f42e0be8 100644 --- a/dev-python/utidylib/Manifest +++ b/dev-python/utidylib/Manifest @@ -3,5 +3,6 @@ AUX utidylib-0.2-no-docs-in-site-packages.patch 475 BLAKE2B c909872b10b569b879d6 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.ebuild 968 BLAKE2B 4abb04af906eb0d4c1a5fe381cbd4043f13f87bdf83e436ae380f70d0aaff090f5fa189668ac8a7e153ff17d4107d8cd64438504792d92df3cdec98ee5158739 SHA512 8ab4a0ee4b7953250bb049c06bc8bc1ac2a787f6faab73bd714bab4aa087d5b435a833e7efd382de1e53c52091adbe4687c25bade1f23cf464c0726b42b85637 MISC metadata.xml 372 BLAKE2B 58932a89c0765511f1231a3ea43ac6509792a03b345655f7d15ec306a33a0264d49b32352c57e8d3cc73294c8cfcbd679289011312bdbed55459f6751dabffa0 SHA512 d6602ff98aa2ae6a69cad590ab014cbe5b3f1fc1b28c64e91025140fbecaa78c49d6e45bc8b8b5432b0cfe4c91402db3d3954db92905ddc42c13540a9c1e2ab5 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 +} -- cgit v1.2.3