summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Raschbacher <lordvan@gentoo.org>2012-09-07 12:54:58 +0000
committerThomas Raschbacher <lordvan@gentoo.org>2012-09-07 12:54:58 +0000
commit99963687a8f8fe82e61db73fa89f152bbfc354ff (patch)
treec3037138b9acf1e80c10d8c62922478ec37827d0 /dev-python/cssutils
parentfix bug #425966 (diff)
downloadgentoo-2-99963687a8f8fe82e61db73fa89f152bbfc354ff.tar.gz
gentoo-2-99963687a8f8fe82e61db73fa89f152bbfc354ff.tar.bz2
gentoo-2-99963687a8f8fe82e61db73fa89f152bbfc354ff.zip
version bump
(Portage version: 2.1.11.12/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/cssutils')
-rw-r--r--dev-python/cssutils/ChangeLog9
-rw-r--r--dev-python/cssutils/cssutils-0.9.10_beta1.ebuild66
2 files changed, 73 insertions, 2 deletions
diff --git a/dev-python/cssutils/ChangeLog b/dev-python/cssutils/ChangeLog
index 86a82823eb46..9ce29f10ce12 100644
--- a/dev-python/cssutils/ChangeLog
+++ b/dev-python/cssutils/ChangeLog
@@ -1,11 +1,16 @@
# ChangeLog for dev-python/cssutils
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cssutils/ChangeLog,v 1.24 2012/05/29 11:23:17 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cssutils/ChangeLog,v 1.25 2012/09/07 12:54:58 lordvan Exp $
05 May 2012; Tomáš Chvátal <scarabeus@gentoo.org> cssutils-0.9.9.ebuild,
-cssutils-0.9.7.ebuild:
Stable on amd64 x86 and ppc wrt bug#414633.
-
+
+*cssutils-0.9.10_beta1 (07 Sep 2012)
+
+ 07 Sep 2012; <lordvan@gentoo.org> +cssutils-0.9.10_beta1.ebuild:
+ new version. fixes bug #416513
+
*cssutils-0.9.9 (02 Mar 2012)
02 Mar 2012; Dirkjan Ochtman <djc@gentoo.org> +cssutils-0.9.9.ebuild:
diff --git a/dev-python/cssutils/cssutils-0.9.10_beta1.ebuild b/dev-python/cssutils/cssutils-0.9.10_beta1.ebuild
new file mode 100644
index 000000000000..59155902e66a
--- /dev/null
+++ b/dev-python/cssutils/cssutils-0.9.10_beta1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cssutils/cssutils-0.9.10_beta1.ebuild,v 1.1 2012/09/07 12:54:58 lordvan Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS=""
+DISTUTILS_SRC_TEST="nosetests"
+PYTHON_TESTS_RESTRICTED_ABIS="3.*"
+
+inherit distutils
+
+MY_P="${P/_beta/b}"
+
+DESCRIPTION="A CSS Cascading Style Sheets library"
+HOMEPAGE="http://pypi.python.org/pypi/cssutils/ https://bitbucket.org/cthedot/cssutils"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="examples test"
+
+RDEPEND="dev-python/setuptools"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ test? ( dev-python/mock )"
+
+PYTHON_MODNAME="cssutils encutils"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ distutils_src_prepare
+
+ # 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
+
+ # https://bitbucket.org/cthedot/cssutils/issue/8/test-failure
+ sed -e "s/test_cssText2/_&/" -i src/tests/test_cssvariablesdeclaration.py
+}
+
+src_install() {
+ distutils_src_install
+
+ # Don't install tests.
+ delete_tests() {
+ rm -fr "${ED}$(python_get_sitedir)/tests"
+ }
+ python_execute_function -q delete_tests
+
+ # Don't install py3 stuff on py2. Breaks py25
+ deletion_of_unneeded_files() {
+ [[ "${PYTHON_ABI}" == 3.* ]] && return
+ rm -f "${ED}$(python_get_sitedir)/cssutils/_codec3.py"
+ }
+ python_execute_function -q deletion_of_unneeded_files
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}