summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-06-08 00:38:56 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-06-08 00:38:56 +0000
commit989e50c13075cf685cb1743cc34b6984324a389a (patch)
treec547790ccf80613c9b104ba1f1d9b9418a912440 /dev-python
parentStable for HPPA (bug #272819). (diff)
downloadgentoo-2-989e50c13075cf685cb1743cc34b6984324a389a.tar.gz
gentoo-2-989e50c13075cf685cb1743cc34b6984324a389a.tar.bz2
gentoo-2-989e50c13075cf685cb1743cc34b6984324a389a.zip
Version bump. Add "threads" USE flag (bug #240360).
(Portage version: 13634-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/lxml/ChangeLog8
-rw-r--r--dev-python/lxml/lxml-2.2.1.ebuild62
2 files changed, 69 insertions, 1 deletions
diff --git a/dev-python/lxml/ChangeLog b/dev-python/lxml/ChangeLog
index ceb5a93c853c..4a0089a66198 100644
--- a/dev-python/lxml/ChangeLog
+++ b/dev-python/lxml/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/lxml
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.48 2009/02/23 16:34:05 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.49 2009/06/08 00:38:56 arfrever Exp $
+
+*lxml-2.2.1 (07 Jun 2009)
+
+ 07 Jun 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +lxml-2.2.1.ebuild:
+ Version bump. Add "threads" USE flag (bug #240360).
23 Feb 2009; Joseph Jezak <josejx@gentoo.org> lxml-2.0.3.ebuild:
Marked ~ppc for bug #215557.
diff --git a/dev-python/lxml/lxml-2.2.1.ebuild b/dev-python/lxml/lxml-2.2.1.ebuild
new file mode 100644
index 000000000000..558c0138d90a
--- /dev/null
+++ b/dev-python/lxml/lxml-2.2.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/lxml-2.2.1.ebuild,v 1.1 2009/06/08 00:38:56 arfrever Exp $
+
+EAPI="2"
+
+NEED_PYTHON="2.3"
+
+inherit distutils
+
+DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
+HOMEPAGE="http://codespeak.net/lxml/"
+SRC_URI="http://codespeak.net/lxml/${P}.tgz"
+LICENSE="BSD ElementTree GPL-2 PSF-2.4"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples +threads"
+
+RDEPEND=">=dev-libs/libxml2-2.7.2
+ >=dev-libs/libxslt-1.1.15"
+DEPEND="${RDEPEND}
+ >=dev-python/cython-0.9.8
+ >=dev-python/setuptools-0.6_rc5"
+
+src_prepare() {
+ # Use Cython instead of own bundled version of Pyrex.
+ epatch "${FILESDIR}/${PN}-2.0.3-no-fake-pyrex.patch"
+}
+
+src_compile() {
+ local myconf
+ use threads || myconf+=" --without-threading"
+ ${python} setup.py build ${myconf} || die "compilation failed"
+}
+
+src_install() {
+ distutils_src_install
+
+ if use doc; then
+ dohtml doc/html/*
+ dodoc *.txt
+ docinto doc
+ dodoc doc/*.txt
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r samples/*
+ fi
+}
+
+src_test() {
+ distutils_python_version
+ python setup.py build_ext -i || die "building extensions for test use failed"
+ einfo "Running test"
+ "${python}" test.py || die "tests failed"
+ export PYTHONPATH="${PYTHONPATH}:${S}/src"
+ einfo "Running selftest"
+ "${python}" selftest.py || die "selftest failed"
+ einfo "Running selftest2"
+ "${python}" selftest2.py || die "selftest2 failed"
+}