diff options
author | Lukasz Strzygowski <lucass@gentoo.org> | 2007-02-21 10:10:32 +0000 |
---|---|---|
committer | Lukasz Strzygowski <lucass@gentoo.org> | 2007-02-21 10:10:32 +0000 |
commit | c0829c99e890e9fbcea08237bfcdf619d9e70c49 (patch) | |
tree | 4b75e7f1a9672b2f2efce71d9bd5187fff52a50e /dev-python/lxml | |
parent | Add pkgconfig to DEPEND, bug 167827 (diff) | |
download | gentoo-2-c0829c99e890e9fbcea08237bfcdf619d9e70c49.tar.gz gentoo-2-c0829c99e890e9fbcea08237bfcdf619d9e70c49.tar.bz2 gentoo-2-c0829c99e890e9fbcea08237bfcdf619d9e70c49.zip |
Version bump: added dep on setuptools, added NEED_PYTHON.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-python/lxml')
-rw-r--r-- | dev-python/lxml/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/lxml/files/digest-lxml-1.2 | 3 | ||||
-rw-r--r-- | dev-python/lxml/lxml-1.2.ebuild | 57 |
3 files changed, 66 insertions, 1 deletions
diff --git a/dev-python/lxml/ChangeLog b/dev-python/lxml/ChangeLog index 8815e4874ee7..c6126baa446f 100644 --- a/dev-python/lxml/ChangeLog +++ b/dev-python/lxml/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/lxml # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.14 2007/01/10 10:22:11 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.15 2007/02/21 10:10:32 lucass Exp $ + +*lxml-1.2 (21 Feb 2007) + + 21 Feb 2007; Lukasz Strzygowski <lucass@gentoo.org> +lxml-1.2.ebuild: + Version bump: added dep on setuptools, added NEED_PYTHON. *lxml-1.1.2 (10 Jan 2007) diff --git a/dev-python/lxml/files/digest-lxml-1.2 b/dev-python/lxml/files/digest-lxml-1.2 new file mode 100644 index 000000000000..988c7551b5bd --- /dev/null +++ b/dev-python/lxml/files/digest-lxml-1.2 @@ -0,0 +1,3 @@ +MD5 d971fc4cb31dc7a18ee397b2f815e0b9 lxml-1.2.tgz 674337 +RMD160 afb4fec871e2e46135794ccd901b22aa44fcd28d lxml-1.2.tgz 674337 +SHA256 1c381effa3294d4d4d9e8d9e118f57ba733c7046c1cb9a44ab2606ec6a44237d lxml-1.2.tgz 674337 diff --git a/dev-python/lxml/lxml-1.2.ebuild b/dev-python/lxml/lxml-1.2.ebuild new file mode 100644 index 000000000000..4b91d57a0cfa --- /dev/null +++ b/dev-python/lxml/lxml-1.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/lxml-1.2.ebuild,v 1.1 2007/02/21 10:10:32 lucass Exp $ + +NEED_PYTHON=2.3 + +inherit distutils eutils multilib + +DESCRIPTION="lxml is a Pythonic binding for the libxml2 and libxslt libraries" +HOMEPAGE="http://codespeak.net/lxml/" +SRC_URI="http://codespeak.net/lxml/${P}.tgz" + +LICENSE="BSD GPL-2 as-is" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~x86" +IUSE="doc examples" + +# Note: This version comes with it's own bundled svn version of pyrex +DEPEND=">=dev-libs/libxml2-2.6.16 + >=dev-libs/libxslt-1.1.12 + dev-python/setuptools" + +src_unpack() { + unpack ${A} + cd "${S}" + + # don't use ez_setup + sed -e '1,3d' -i setup.py +} + +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" +} |