summaryrefslogtreecommitdiff
path: root/dev-python/cssutils
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/cssutils
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/cssutils')
-rw-r--r--dev-python/cssutils/Manifest8
-rw-r--r--dev-python/cssutils/cssutils-1.0.1.ebuild53
-rw-r--r--dev-python/cssutils/cssutils-1.0.2.ebuild49
-rw-r--r--dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch32
-rw-r--r--dev-python/cssutils/metadata.xml20
5 files changed, 162 insertions, 0 deletions
diff --git a/dev-python/cssutils/Manifest b/dev-python/cssutils/Manifest
new file mode 100644
index 000000000000..2a71da9490cb
--- /dev/null
+++ b/dev-python/cssutils/Manifest
@@ -0,0 +1,8 @@
+AUX cssutils-1.0.1-pypy-test-backport.patch 1215 SHA256 380dc6d6e1dacbb4dc5b332b99d4dd730776a47dcf131eea21851fdca62ccc1d SHA512 a0072d67f034b066a30ec9cd35b5f618ce8e0beea2b1236b6900d7e028b1ed7d6095ca0beaf0eacb3f7e8a4649e22b98951df9a303d4761f15d7472e2e57b41e WHIRLPOOL b92e961b09042d1deb1625f4a6685691b7e61b3c33e033d57fee219e7b07066fcc2b2a90285b0013adb59e182fc390c4ac3116a15912c36c19e10a75e8cd7477
+DIST cssutils-1.0.1.tar.gz 353621 SHA256 d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063 SHA512 932a128443cc31f689d91c7c75a04ddc79824b4e5c0779e48d30fa0a3a760cad82d8208264ec95a3b120c38962f2eabf6b3456aa8f81d24e9c9718e95fd6bf83 WHIRLPOOL b3cf4f4e94671a7cef49956f40b6ea67264fdeb305197e125d059c8fa815747a872bd5e15c2745c6fc602dc7d27881a2258219817b2abc7b9953bb3bb371e808
+DIST cssutils-1.0.2.tar.gz 367038 SHA256 a2fcf06467553038e98fea9cfe36af2bf14063eb147a70958cfcaa8f5786acaf SHA512 4988893875a03923d3127e334654799e5c2ebcdc0a7f5b3fb5c9ab27d1b331caa5bf197161312a298531e0757843aa3259ceba5fa19947353eea24a5da53ceda WHIRLPOOL ffabc8132b9fdc4f3bf6748f8c1892641d0552df4a7ad99b8679fb970903215481d62468a68b151c4f964d05ee2bf589ef00baa7df9de33b8f4aad512bfcc441
+EBUILD cssutils-1.0.1.ebuild 1307 SHA256 a6b3491fa2e9b5cc6771700efb2adcfc1098c50b6afd5a2a371aeb997a7bbf63 SHA512 084e4279202b1453fa14a33e7e584b79926b5e9ce0b2bc0f82de16e62d47d1bf092a457d2fc620688d2bd7b0c2449d93e5ab38c422f184824e8d4e2716e801ef WHIRLPOOL e09ee271459a4de62dbac735c851667903787c3fe452a582258970085a2c4675a083297f686c3fbda215c0e3d1fcf202c4a3c73588126173a0d48672b4077328
+EBUILD cssutils-1.0.2.ebuild 1254 SHA256 b055f9214805234d951f2faa20241c3d32976b7169962f4f4797bf49d1df9944 SHA512 7b825cdefd5caa1623bd238ed8f8b99026717896ecd9a84d0625264414a4f795c53ed968039f4ba68aef3649b075c5949b9ba1b2bc1b5942e2d6783fc5a96e72 WHIRLPOOL 244d9ddcc81c5eb753e0767dee70001e33a01d9ed61bb280efb0130bbf2396457a1d3ddd32cee4d04dd705843191df84b5db66b3555e8d13b3c9fb0a2c01393d
+MISC ChangeLog 4235 SHA256 37473ccc2d70731c8b8e17e60085288c24b824e5a9cc091ec9e391027893fc07 SHA512 ef03eb47b7584c8945f76c14f18e8bfd89cef7b4ff806f39ee525cb5fab3ffad06925c73c757eb91d11591b133f6b7a6378a0486ac43689de3112f3e0cbdb0ee WHIRLPOOL f3265342c6b16ee853fd61a39233316e60ef91289b78ca4e1e5b97217d466523d9176fd24ff5e2cf5e588f29e87f0c148c3835946475ebcaf00b4284faad04f0
+MISC ChangeLog-2015 6774 SHA256 6f189a1893e278df2963eae7a7fefaa3f7cccd7624476830fb7d4008e5dcf97b SHA512 180ed17fbf11174ed6bc433711c80081fdee1abe5ec875f53f06fd20247fe147a013d2766a17461af232a603b59c98c729269662d236d7ff82630fe50c4a8f11 WHIRLPOOL a80393a8a360b2ed32c11178b1ea27fe6bbead6c400cdd3c87fbdf06fce6eb0cae9bc917a31614a22aaf86787d7c8a0b3cde25a35cf06b06a8aa11eaed899d48
+MISC metadata.xml 669 SHA256 4d7c2ebe59f83d7d8531eb64a4a6525622e48b2ba2e84ddf8eea40606de59fa3 SHA512 3fe0661179833d29c8a5e5ae2b7d872ad860354c58bff8e18935f5876fd95cf8fdfbb4ebda9719198dfce891647d04f263d213b74eca635005098a89a0402294 WHIRLPOOL 1fa2ccb67261e43ec37afac5d27a179a55b59320f375256b79eadefb008d0613718cc87d51a0a9ecbd4129ad8b9d1438cf7ea6d675566e61305385fc7f43c8bd
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 000000000000..dc4289b6fe2b
--- /dev/null
+++ b/dev-python/cssutils/cssutils-1.0.1.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=( python{2_7,3_{4,5,6}} 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}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-pypy-test-backport.patch
+)
+
+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
+
+ EPATCH_OPTS="--binary"
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ 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}"
+}
diff --git a/dev-python/cssutils/cssutils-1.0.2.ebuild b/dev-python/cssutils/cssutils-1.0.2.ebuild
new file mode 100644
index 000000000000..c07182ec400e
--- /dev/null
+++ b/dev-python/cssutils/cssutils-1.0.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} 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}]
+ dev-python/nose[${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/cssutils/tests/test_errorhandler.py \
+ || die
+ fi
+
+ # requires old pbr, does it really?
+ sed \
+ -e '/tests_require/d' \
+ -i setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ 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}"
+}
diff --git a/dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch b/dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch
new file mode 100644
index 000000000000..f5f1bda3516d
--- /dev/null
+++ b/dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch
@@ -0,0 +1,32 @@
+# HG changeset patch
+# User Daniel <kingdread@gmx.de>
+# Date 1448482419 -3600
+# Node ID 01a19d494b6f31e91c54ae39c5a6f43f6292a85d
+# Parent 3a01bd18118a6466ad93aa23caaa4164528b59ac
+Fix tests on PyPy 2
+
+Tests fail because of the extra "u" prefix in the error message
+
+diff --git a/src/cssutils/tests/test_profiles.py b/src/cssutils/tests/test_profiles.py
+--- a/src/cssutils/tests/test_profiles.py
++++ b/src/cssutils/tests/test_profiles.py
+@@ -2,6 +2,7 @@
+ __version__ = '$Id: test_cssvalue.py 1443 2008-08-31 13:54:39Z cthedot $'
+
+ import sys
++import platform
+ import basetest
+ import cssutils
+
+@@ -124,6 +125,11 @@
+ expmsg = u"invalid literal for int(): x"
+ elif sys.platform.startswith('java'):
+ expmsg = u"invalid literal for int() with base 10: x"
++ # PyPy adds the u prefix, but only in versions lower than Python 3
++ elif (platform.python_implementation() == "PyPy" and
++ sys.version_info < (3, 0)):
++ expmsg = u"invalid literal for int() with base 10: u'x'"
++
+
+ self.assertRaisesMsg(Exception, expmsg,
+ cssutils.profile.validate, u'-test-funcval', u'x')
diff --git a/dev-python/cssutils/metadata.xml b/dev-python/cssutils/metadata.xml
new file mode 100644
index 000000000000..fbd9010455e4
--- /dev/null
+++ b/dev-python/cssutils/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lordvan@gentoo.org</email>
+ <name>Thomas Raschbacher</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <longdescription lang="en">
+A Python package to parse and build CSS Cascading Style Sheets.
+</longdescription>
+ <upstream>
+ <remote-id type="google-code">cssutils</remote-id>
+ <remote-id type="pypi">cssutils</remote-id>
+ <remote-id type="bitbucket">cthedot/cssutils</remote-id>
+ </upstream>
+</pkgmetadata>