From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A932B138330 for ; Fri, 14 Oct 2016 21:30:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A4CBE0B62; Fri, 14 Oct 2016 21:30:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4108AE0B62 for ; Fri, 14 Oct 2016 21:30:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CFA653410CD for ; Fri, 14 Oct 2016 21:30:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0D9A5307 for ; Fri, 14 Oct 2016 21:30:36 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1476480583.e078b241625778b45b2dda481f4eb27df0480c8e.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/lxml/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/lxml/lxml-3.4.4-r1.ebuild X-VCS-Directories: dev-python/lxml/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: e078b241625778b45b2dda481f4eb27df0480c8e X-VCS-Branch: master Date: Fri, 14 Oct 2016 21:30:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e4a0853c-6ae7-4f04-93de-cdddd648af23 X-Archives-Hash: d6ae8fbbf30ee86e79d497177968f39b commit: e078b241625778b45b2dda481f4eb27df0480c8e Author: Mathy Vanvoorden vanvoorden be> AuthorDate: Tue Oct 11 21:35:43 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Fri Oct 14 21:29:43 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e078b241 dev-python/lxml: revision bump 3.4.4-r1 Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/2539 Signed-off-by: David Seifert gentoo.org> dev-python/lxml/lxml-3.4.4-r1.ebuild | 78 ++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/dev-python/lxml/lxml-3.4.4-r1.ebuild b/dev-python/lxml/lxml-3.4.4-r1.ebuild new file mode 100644 index 00000000..522ba36 --- /dev/null +++ b/dev-python/lxml/lxml-3.4.4-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit distutils-r1 eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries" +HOMEPAGE="http://lxml.de/ https://pypi.python.org/pypi/lxml/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD ElementTree GPL-2 PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="doc examples +threads test" + +# Note: lib{xml2,xslt} are used as C libraries, not Python modules. +RDEPEND=" + >=dev-libs/libxml2-2.7.2 + >=dev-libs/libxslt-1.1.23" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/cssselect[${PYTHON_USEDEP}] ) + " +# lxml tarball contains files pregenerated by Cython. + +DISTUTILS_IN_SOURCE_BUILD=1 + +python_prepare_all() { + epatch "${FILESDIR}"/${P}-cross-compile.patch + + # avoid replacing PYTHONPATH in tests. + sed -i '/sys\.path/d' test.py || die + + # seems to be broken + rm src/lxml/tests/test_elementpath.py || die + + distutils-r1_python_prepare_all +} + +python_compile() { + if [[ ${EPYTHON} != python3* ]]; then + local CFLAGS=${CFLAGS} + append-cflags -fno-strict-aliasing + fi + tc-export PKG_CONFIG + distutils-r1_python_compile +} + +python_test() { + cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die + cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die + ln -s "${S}"/doc "${BUILD_DIR}"/ || die + + local test + for test in test.py selftest.py selftest2.py; do + einfo "Running ${test}" + "${PYTHON}" ${test} -vv -p || die "Test ${test} fails with ${EPYTHON}" + done +} + +python_install_all() { + if use doc; then + local DOCS=( *.txt doc/*.txt ) + local HTML_DOCS=( doc/html/. ) + fi + use examples && local EXAMPLES=( samples/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup + optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect +}