1 |
commit: f4695c7585148436eab8b444488605c44db58352 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 06:36:08 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 07:11:23 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4695c75 |
7 |
|
8 |
dev-python/lxml: Drop optional runtime deps and add optfeature |
9 |
|
10 |
Package-Manager: portage-2.2.21 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/lxml/lxml-3.4.4.ebuild | 13 +++++++------ |
14 |
1 file changed, 7 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/lxml/lxml-3.4.4.ebuild b/dev-python/lxml/lxml-3.4.4.ebuild |
17 |
index d42bd06..a4ea22d 100644 |
18 |
--- a/dev-python/lxml/lxml-3.4.4.ebuild |
19 |
+++ b/dev-python/lxml/lxml-3.4.4.ebuild |
20 |
@@ -15,16 +15,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
21 |
LICENSE="BSD ElementTree GPL-2 PSF-2" |
22 |
SLOT="0" |
23 |
KEYWORDS="~alpha ~amd64 ~arm ~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 ~arm64" |
24 |
-IUSE="beautifulsoup3 doc examples +threads test" |
25 |
+IUSE="doc examples +threads test" |
26 |
|
27 |
# Note: lib{xml2,xslt} are used as C libraries, not Python modules. |
28 |
RDEPEND=" |
29 |
>=dev-libs/libxml2-2.7.2 |
30 |
- >=dev-libs/libxslt-1.1.23 |
31 |
- beautifulsoup3? ( |
32 |
- $(python_gen_cond_dep 'dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]' 'python2*') |
33 |
- $(python_gen_cond_dep 'dev-python/beautifulsoup:python-3[${PYTHON_USEDEP}]' 'python3*') |
34 |
- )" |
35 |
+ >=dev-libs/libxslt-1.1.23" |
36 |
DEPEND="${RDEPEND} |
37 |
dev-python/setuptools[${PYTHON_USEDEP}] |
38 |
test? ( dev-python/cssselect[${PYTHON_USEDEP}] ) |
39 |
@@ -75,3 +71,8 @@ python_install_all() { |
40 |
|
41 |
distutils-r1_python_install_all |
42 |
} |
43 |
+ |
44 |
+pkg_postinst() { |
45 |
+ optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup-3* |
46 |
+ optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect |
47 |
+} |