| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.33 2009/12/21 17:27:28 abcd Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.34 2010/03/04 21:18:27 abcd Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass can be used for packages that needs a working X environment to build |
7 | # This eclass can be used for packages that needs a working X environment to build |
| 8 | |
8 | |
| … | |
… | |
| 15 | # the dependency? Default is "test" |
15 | # the dependency? Default is "test" |
| 16 | : ${VIRTUALX_USE:=test} |
16 | : ${VIRTUALX_USE:=test} |
| 17 | |
17 | |
| 18 | # Dep string available for use outside of eclass, in case a more |
18 | # Dep string available for use outside of eclass, in case a more |
| 19 | # complicated dep is needed |
19 | # complicated dep is needed |
| 20 | VIRTUALX_DEPEND="x11-base/xorg-server |
20 | VIRTUALX_DEPEND="!prefix? ( x11-base/xorg-server ) |
| 21 | x11-apps/xhost" |
21 | x11-apps/xhost" |
| 22 | |
22 | |
| 23 | case ${VIRTUALX_REQUIRED} in |
23 | case ${VIRTUALX_REQUIRED} in |
| 24 | always) |
24 | always) |
| 25 | DEPEND="${VIRTUALX_DEPEND}" |
25 | DEPEND="${VIRTUALX_DEPEND}" |