summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-29 01:13:12 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-29 01:13:12 +0000
commit60291f8a03e7607fb60daa8f76e7583530834cc6 (patch)
treee33a3d0fa5a4936f01159a003ed952fc05fd5fa4 /dev-python/pycairo
parentDeprecate wxlib.eclass (diff)
downloadgentoo-2-60291f8a03e7607fb60daa8f76e7583530834cc6.tar.gz
gentoo-2-60291f8a03e7607fb60daa8f76e7583530834cc6.tar.bz2
gentoo-2-60291f8a03e7607fb60daa8f76e7583530834cc6.zip
Version bump.
(Portage version: 14166-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pycairo')
-rw-r--r--dev-python/pycairo/ChangeLog8
-rw-r--r--dev-python/pycairo/pycairo-1.8.8.ebuild81
2 files changed, 88 insertions, 1 deletions
diff --git a/dev-python/pycairo/ChangeLog b/dev-python/pycairo/ChangeLog
index f4b1b4262fba..19a363fceaa0 100644
--- a/dev-python/pycairo/ChangeLog
+++ b/dev-python/pycairo/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pycairo
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v 1.70 2009/08/08 20:36:20 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v 1.71 2009/08/29 01:13:12 arfrever Exp $
+
+*pycairo-1.8.8 (29 Aug 2009)
+
+ 29 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +pycairo-1.8.8.ebuild:
+ Version bump.
08 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
pycairo-1.8.6.ebuild:
diff --git a/dev-python/pycairo/pycairo-1.8.8.ebuild b/dev-python/pycairo/pycairo-1.8.8.ebuild
new file mode 100644
index 000000000000..94dabc8923ea
--- /dev/null
+++ b/dev-python/pycairo/pycairo-1.8.8.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/pycairo-1.8.8.ebuild,v 1.1 2009/08/29 01:13:12 arfrever Exp $
+
+EAPI="2"
+
+NEED_PYTHON="2.6"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils
+
+DESCRIPTION="Python wrapper for cairo vector graphics library"
+HOMEPAGE="http://cairographics.org/pycairo/"
+SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
+
+LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="doc examples"
+
+RDEPEND=">=x11-libs/cairo-1.8.8"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ doc? ( dev-python/sphinx )"
+
+RESTRICT_PYTHON_ABIS="2.4 2.5 3*"
+
+PYTHON_MODNAME="cairo"
+DOCS="AUTHORS NEWS README"
+
+src_prepare() {
+ # Don't run py-compile.
+ sed -i \
+ -e '/if test -n "$$dlist"; then/,/else :; fi/d' \
+ src/Makefile.in || die "sed in src/Makefile.in failed"
+}
+
+src_configure() {
+ if use doc; then
+ econf
+ fi
+}
+
+src_compile() {
+ distutils_src_compile
+
+ if use doc; then
+ emake html || die "emake html failed"
+ fi
+}
+
+src_test() {
+ testing() {
+ pushd test > /dev/null
+ PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" test.py || return 1
+ popd > /dev/null
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+
+ if use doc; then
+ dohtml -r doc/.build/html/ || die "dohtml -r doc/.build/html/ failed"
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r examples/*
+ rm "${D}"/usr/share/doc/${PF}/examples/Makefile*
+ fi
+
+ # dev-python/pycairo-1.8.8 doesn't install __init__.py automatically.
+ # http://lists.cairographics.org/archives/cairo/2009-August/018044.html
+ installation() {
+ insinto "$(python_get_sitedir)/cairo"
+ doins src/__init__.py
+ }
+ python_execute_function -q installation
+}