1 |
commit: ad26a0ba070d1e3f7cf391ec0889a0586c12a43e |
2 |
Author: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 24 14:10:34 2011 +0000 |
4 |
Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 24 14:10:34 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=ad26a0ba |
7 |
|
8 |
Add common dependency handling for video drivers into eclass. |
9 |
|
10 |
--- |
11 |
eclass/xorg-2.eclass | 38 +++++++++++++++++++++++++++++++++++--- |
12 |
1 files changed, 35 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass |
15 |
index 04eeb56..103979b 100644 |
16 |
--- a/eclass/xorg-2.eclass |
17 |
+++ b/eclass/xorg-2.eclass |
18 |
@@ -174,9 +174,34 @@ fi |
19 |
|
20 |
DEPEND+=" >=dev-util/pkgconfig-0.23" |
21 |
|
22 |
-# Check deps on xorg-server |
23 |
-has dri ${IUSE//+} && DEPEND+=" dri? ( >=x11-base/xorg-server-1.6.3.901-r2[-minimal] )" |
24 |
-[[ -n "${DRIVER}" ]] && DEPEND+=" x11-base/xorg-server[xorg]" |
25 |
+# Check deps on drivers |
26 |
+if has dri ${IUSE//+}; then |
27 |
+ COMMON_DEPEND+=" dri? ( |
28 |
+ x11-base/xorg-server[-minimal] |
29 |
+ x11-libs/libdrm |
30 |
+ )" |
31 |
+ DEPEND+=" dri? ( |
32 |
+ x11-proto/xf86driproto |
33 |
+ x11-proto/glproto |
34 |
+ x11-proto/dri2proto |
35 |
+ )" |
36 |
+fi |
37 |
+if [[ -n "${DRIVER}" ]]; then |
38 |
+ COMMON_DEPEND+=" |
39 |
+ x11-base/xorg-server[xorg] |
40 |
+ x11-libs/libpciaccess |
41 |
+ " |
42 |
+ # we also needs some protos and libs in all cases |
43 |
+ DEPEND+=" |
44 |
+ x11-proto/fontsproto |
45 |
+ x11-proto/randrproto |
46 |
+ x11-proto/renderproto |
47 |
+ x11-proto/videoproto |
48 |
+ x11-proto/xextproto |
49 |
+ x11-proto/xineramaproto |
50 |
+ x11-proto/xproto |
51 |
+ " |
52 |
+fi |
53 |
|
54 |
# Add deps on documentation |
55 |
# Most docbooks use dtd version 4.2 and 4.3 add more when found |
56 |
@@ -191,6 +216,13 @@ if has doc ${IUSE//+}; then |
57 |
" |
58 |
fi |
59 |
|
60 |
+DEPEND+=" ${COMMON_DEPEND}" |
61 |
+RDEPEND+=" ${COMMON_DEPEND}" |
62 |
+unset COMMON_DEPEND |
63 |
+ |
64 |
+debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND=${DEPEND}" |
65 |
+debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND=${RDEPEND}" |
66 |
+ |
67 |
# @FUNCTION: xorg-2_pkg_setup |
68 |
# @DESCRIPTION: |
69 |
# Setup prefix compat |