commit:     fbad5dea10cb8751a8775703c638849d71482552
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 11 08:18:55 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Nov 11 08:29:19 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbad5dea

dev-python/cssutils: Version Bump

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 dev-python/cssutils/Manifest              |  1 +
 dev-python/cssutils/cssutils-1.0.1.ebuild | 47 +++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-python/cssutils/Manifest b/dev-python/cssutils/Manifest
index dccbcc8..1cc575f 100644
--- a/dev-python/cssutils/Manifest
+++ b/dev-python/cssutils/Manifest
@@ -1,2 +1,3 @@
 DIST cssutils-0.9.10.tar.gz 622919 SHA256 
08e2481f53d57e27fffb781bf8c313132c1079b8b1c18ff4f633f2df47011ca6 SHA512 
c8fabc808a6d31f0d4a1b48b566277a15bb91974eb797d11d857b05e9e548e03d510d90265e43b9fa9b173eccb5f571c9306bda57c2515878e646b2be32b736e
 WHIRLPOOL 
8d8455b5c6a0fb49d87c7097169c2670e7a2e09ade9fcaa70344a6aab70d7420e3e982488eb88ef118457936d9f917080ea576b879905ebff7dc8bf47815c9b2
+DIST cssutils-1.0.1.tar.gz 353621 SHA256 
d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063 SHA512 
932a128443cc31f689d91c7c75a04ddc79824b4e5c0779e48d30fa0a3a760cad82d8208264ec95a3b120c38962f2eabf6b3456aa8f81d24e9c9718e95fd6bf83
 WHIRLPOOL 
b3cf4f4e94671a7cef49956f40b6ea67264fdeb305197e125d059c8fa815747a872bd5e15c2745c6fc602dc7d27881a2258219817b2abc7b9953bb3bb371e808
 DIST cssutils-1.0.tar.gz 622909 SHA256 
050f4e78a9c24a619cbb15c395105e73f3b3bec0204991a6d5e2f8bcca031753 SHA512 
673e1de1028acbc8e3fe298b88207da73ee704b7eb89eb22d4606d5086c46a943e3bb48d2ba9b5a1685a253553bbd13d89f41546dca3deaf2d54d8d6f61f9b65
 WHIRLPOOL 
726a5f557e70bdc612ca70b8203ecf1670c4385eaf5c77aa3b21c3a13e80928e38fc7766efa2ae682a52b0a890675f5746190e0740389dee5427740bab817bff

diff --git a/dev-python/cssutils/cssutils-1.0.1.ebuild 
b/dev-python/cssutils/cssutils-1.0.1.ebuild
new file mode 100644
index 0000000..60fc741
--- /dev/null
+++ b/dev-python/cssutils/cssutils-1.0.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="A CSS Cascading Style Sheets library"
+HOMEPAGE="https://pypi.python.org/pypi/cssutils/ 
https://bitbucket.org/cthedot/cssutils http://cthedot.de/cssutils/";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+       test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+
+python_prepare_all() {
+       # Disable test failing with dev-python/pyxml installed.
+       if has_version dev-python/pyxml; then
+               sed -e "s/test_linecol/_&/" -i src/tests/test_errorhandler.py
+       fi
+
+       # requires old pbr, does it really?
+       sed \
+               -e '/tests_require/d' \
+               -i setup.py || die
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       # https://bitbucket.org/cthedot/cssutils/issues/55
+       [[ "${EPYTHON}" =~ "pypy" ]] && return
+       ln -s "${S}/sheets" "${BUILD_DIR}/sheets" || die
+       # esetup.py test
+       # exclude tests that connect to the network
+       set --  nosetests \
+               -e test_parseUrl -e test_handlers -P 
"${BUILD_DIR}/lib/cssutils/tests"
+       echo "$@"
+       "$@" || die "Testing failed with ${EPYTHON}"
+}

Reply via email to