1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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/x-modular.eclass,v 1.66 2006/06/30 16:21:38 spyderous Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.67 2006/06/30 23:15:32 spyderous Exp $ |
4 | # |
4 | # |
5 | # Author: Donnie Berkholz <spyderous@gentoo.org> |
5 | # Author: Donnie Berkholz <spyderous@gentoo.org> |
6 | # |
6 | # |
7 | # This eclass is designed to reduce code duplication in the modularized X11 |
7 | # This eclass is designed to reduce code duplication in the modularized X11 |
8 | # ebuilds. |
8 | # ebuilds. |
… | |
… | |
198 | |
198 | |
199 | x-modular_server_supports_drivers_check() { |
199 | x-modular_server_supports_drivers_check() { |
200 | # (#135873) Only certain servers will actually use or be capable of |
200 | # (#135873) Only certain servers will actually use or be capable of |
201 | # building external drivers, including binary drivers. |
201 | # building external drivers, including binary drivers. |
202 | if [[ -n "${DRIVER}" ]]; then |
202 | if [[ -n "${DRIVER}" ]]; then |
203 | if has_version >=x11-base/xorg-server-1.1; then |
203 | if has_version '>=x11-base/xorg-server-1.1'; then |
204 | if ! built_with_use x11-base/xorg-server xorg; then |
204 | if ! built_with_use x11-base/xorg-server xorg; then |
205 | eerror "x11-base/xorg-server is not built with support for external drivers." |
205 | eerror "x11-base/xorg-server is not built with support for external drivers." |
206 | die "You must build x11-base/xorg-server with USE=xorg." |
206 | die "You must build x11-base/xorg-server with USE=xorg." |
207 | fi |
207 | fi |
208 | fi |
208 | fi |