Version bump, bug #148776. Dropped old versions.
authorTiziano Müller <dev-zero@gentoo.org>
Wed, 10 Jan 2007 10:22:11 +0000 (10:22 +0000)
committerTiziano Müller <dev-zero@gentoo.org>
Wed, 10 Jan 2007 10:22:11 +0000 (10:22 +0000)
Package-Manager: portage-2.1.2_rc4-r1

dev-python/lxml/ChangeLog
dev-python/lxml/files/digest-lxml-1.1.2 [new file with mode: 0644]
dev-python/lxml/files/lxml-1.1.2-distutils.patch [new file with mode: 0644]
dev-python/lxml/lxml-1.1.2.ebuild [new file with mode: 0644]

index cefbbf3463ac3824bcedd4533ea31c24d48943db..8815e4874ee74488e6114073c7fa40bfd966b6c0 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for dev-python/lxml
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.13 2006/10/15 17:51:03 kloeri Exp $
+# 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 $
+
+*lxml-1.1.2 (10 Jan 2007)
+
+  10 Jan 2007; Tiziano Müller <dev-zero@gentoo.org>
+  +files/lxml-1.1.2-distutils.patch, -lxml-1.0.ebuild, -lxml-1.0.3.ebuild,
+  +lxml-1.1.2.ebuild:
+  Version bump, bug #148776. Dropped old versions.
 
   15 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> lxml-1.0.2.ebuild:
   Stable on ia64.
diff --git a/dev-python/lxml/files/digest-lxml-1.1.2 b/dev-python/lxml/files/digest-lxml-1.1.2
new file mode 100644 (file)
index 0000000..89adc1d
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 d18ecaacdecf7c9f02a6e9aecb16c720 lxml-1.1.2.tgz 640469
+RMD160 3864b7fe781bedbdc7334e6ebac9dcd4e38d1880 lxml-1.1.2.tgz 640469
+SHA256 b0139b3e1443ab5ce7dd2b63e67ac987f1e4caddf5f9bc72c90c63199265c278 lxml-1.1.2.tgz 640469
diff --git a/dev-python/lxml/files/lxml-1.1.2-distutils.patch b/dev-python/lxml/files/lxml-1.1.2-distutils.patch
new file mode 100644 (file)
index 0000000..9fc6a33
--- /dev/null
@@ -0,0 +1,19 @@
+--- setup.py.orig      2007-01-09 23:10:58.000000000 +0100
++++ setup.py   2007-01-09 23:11:36.000000000 +0100
+@@ -9,14 +9,8 @@
+ ext_args   = {}
+ DEFINES = []
+-try:
+-    from setuptools import setup
+-    from setuptools.extension import Extension
+-    # prevent setuptools from making local etree.so copies:
+-    setup_args['zip_safe'] = False
+-except ImportError:
+-    from distutils.core import setup
+-    from distutils.extension import Extension
++from distutils.core import setup
++from distutils.extension import Extension
+ # This is called if the '--static' option is passed
+ def setupStaticBuild():
diff --git a/dev-python/lxml/lxml-1.1.2.ebuild b/dev-python/lxml/lxml-1.1.2.ebuild
new file mode 100644 (file)
index 0000000..7147a14
--- /dev/null
@@ -0,0 +1,53 @@
+# 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.1.2.ebuild,v 1.1 2007/01/10 10:22:11 dev-zero Exp $
+
+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"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}/${P}-distutils.patch"
+}
+
+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"
+}