summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2014-04-08 08:31:12 +0000
committerIan Delaney <idella4@gentoo.org>2014-04-08 08:31:12 +0000
commit2eb2e77b3f304d43893cd2e9574ffeb797ded819 (patch)
tree5af9416c3e10dc1736ff5fa125803398b49c0517 /dev-python
parentVersion bump to 0.0.15. (diff)
downloadgentoo-2-2eb2e77b3f304d43893cd2e9574ffeb797ded819.tar.gz
gentoo-2-2eb2e77b3f304d43893cd2e9574ffeb797ded819.tar.bz2
gentoo-2-2eb2e77b3f304d43893cd2e9574ffeb797ded819.zip
bump; Add IUSE doc, doc build & install & related patch, update deps, add test phase
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cairocffi/ChangeLog11
-rw-r--r--dev-python/cairocffi/cairocffi-0.5.3.ebuild42
-rw-r--r--dev-python/cairocffi/files/mapping.patch10
3 files changed, 61 insertions, 2 deletions
diff --git a/dev-python/cairocffi/ChangeLog b/dev-python/cairocffi/ChangeLog
index a76f0ab2bfca..1d762fd3c9f1 100644
--- a/dev-python/cairocffi/ChangeLog
+++ b/dev-python/cairocffi/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/cairocffi
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cairocffi/ChangeLog,v 1.2 2013/09/16 05:56:31 patrick Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cairocffi/ChangeLog,v 1.3 2014/04/08 08:31:12 idella4 Exp $
+
+*cairocffi-0.5.3 (08 Apr 2014)
+
+ 08 Apr 2014; Ian Delaney <idella4@gentoo.org> +cairocffi-0.5.3.ebuild,
+ +files/mapping.patch:
+ bump; Add IUSE doc, doc build & install & related patch, update deps, add test
+ phase
16 Sep 2013; Patrick Lauer <patrick@gentoo.org> cairocffi-0.5.1.ebuild:
Add more python targets
diff --git a/dev-python/cairocffi/cairocffi-0.5.3.ebuild b/dev-python/cairocffi/cairocffi-0.5.3.ebuild
new file mode 100644
index 000000000000..34d64a4cdfc4
--- /dev/null
+++ b/dev-python/cairocffi/cairocffi-0.5.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cairocffi/cairocffi-0.5.3.ebuild,v 1.1 2014/04/08 08:31:11 idella4 Exp $
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
+
+inherit distutils-r1
+
+DESCRIPTION="CFFI-based drop-in replacement for Pycairo"
+MY_PN="${PN}"
+MY_P="${MY_PN}-${PV}"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+HOMEPAGE="https://github.com/SimonSapin/cairocffi"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND=">=dev-python/cffi-0.6[${PYTHON_USEDEP}]
+ x11-libs/cairo"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}"/mapping.patch )
+
+S="${WORKDIR}/${MY_P}"
+
+python_compile_all() {
+ use doc && esetup.py build_sphinx
+}
+
+python_test() {
+ py.test ${PN}/ || die "testsuite failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/cairocffi/files/mapping.patch b/dev-python/cairocffi/files/mapping.patch
new file mode 100644
index 000000000000..14cae286617c
--- /dev/null
+++ b/dev-python/cairocffi/files/mapping.patch
@@ -0,0 +1,10 @@
+diff -ur cairocffi-0.5.3.orig/docs/conf.py cairocffi-0.5.3/docs/conf.py
+--- docs/conf.py 2013-05-24 10:33:32.000000000 +0800
++++ docs/conf.py 2014-04-08 16:09:39.648229837 +0800
+@@ -14,6 +14,3 @@
+ exclude_patterns = ['_build']
+ autodoc_member_order = 'bysource'
+ autodoc_default_flags = ['members']
+-intersphinx_mapping = {
+- 'http://docs.python.org/': None,
+- 'http://cairographics.org/documentation/pycairo/2/': None}