1 |
commit: e795094d40965db8811a59d97e89bac4eb5a970c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 29 21:03:14 2013 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 29 21:03:14 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=e795094d |
7 |
|
8 |
media-libs/mesa: Convert to python-any-r1, using the new python_gen_any_dep function. |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
media-libs/mesa/mesa-9999.ebuild | 11 +++++++---- |
14 |
1 file changed, 7 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild |
17 |
index f953f45..ee11af7 100644 |
18 |
--- a/media-libs/mesa/mesa-9999.ebuild |
19 |
+++ b/media-libs/mesa/mesa-9999.ebuild |
20 |
@@ -14,7 +14,7 @@ fi |
21 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
22 |
|
23 |
inherit base autotools multilib multilib-minimal flag-o-matic \ |
24 |
- python-single-r1 toolchain-funcs ${GIT_ECLASS} |
25 |
+ python-any-r1 toolchain-funcs ${GIT_ECLASS} |
26 |
|
27 |
OPENGL_DIR="xorg-x11" |
28 |
|
29 |
@@ -136,8 +136,6 @@ DEPEND="${RDEPEND} |
30 |
>=sys-devel/clang-3.3[${MULTILIB_USEDEP}] |
31 |
>=sys-devel/gcc-4.6 |
32 |
) |
33 |
- ${PYTHON_DEPS} |
34 |
- dev-libs/libxml2[python,${PYTHON_USEDEP}] |
35 |
sys-devel/bison |
36 |
sys-devel/flex |
37 |
virtual/pkgconfig |
38 |
@@ -146,8 +144,13 @@ DEPEND="${RDEPEND} |
39 |
>=x11-proto/xextproto-7.0.99.1[${MULTILIB_USEDEP}] |
40 |
x11-proto/xf86driproto[${MULTILIB_USEDEP}] |
41 |
x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}] |
42 |
+ $(python_gen_any_dep 'dev-libs/libxml2[python,${PYTHON_USEDEP}]') |
43 |
" |
44 |
|
45 |
+python_check_deps() { |
46 |
+ has_version "dev-libs/libxml2[python,${PYTHON_USEDEP}]" |
47 |
+} |
48 |
+ |
49 |
S="${WORKDIR}/${MY_P}" |
50 |
|
51 |
# It is slow without texrels, if someone wants slow |
52 |
@@ -161,7 +164,7 @@ pkg_setup() { |
53 |
# workaround toc-issue wrt #386545 |
54 |
use ppc64 && append-flags -mminimal-toc |
55 |
|
56 |
- python-single-r1_pkg_setup |
57 |
+ python-any-r1_pkg_setup |
58 |
} |
59 |
|
60 |
src_unpack() { |