| 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.54 2006/04/21 06:58:52 spyderous Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.55 2006/04/21 07:01:00 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. |
| … | |
… | |
| 183 | die "$msg" |
183 | die "$msg" |
| 184 | fi |
184 | fi |
| 185 | fi |
185 | fi |
| 186 | } |
186 | } |
| 187 | |
187 | |
| 188 | x-modular_unpack_source() { |
188 | x-modular_dri_check() { |
| 189 | # (#120057) Enabling DRI in drivers requires that the server was built with |
189 | # (#120057) Enabling DRI in drivers requires that the server was built with |
| 190 | # support for it |
190 | # support for it |
| 191 | if [[ -n "${DRIVER}" ]]; then |
191 | if [[ -n "${DRIVER}" ]]; then |
| 192 | if has dri ${IUSE} && use dri; then |
192 | if has dri ${IUSE} && use dri; then |
| 193 | einfo "Checking for direct rendering capabilities ..." |
193 | einfo "Checking for direct rendering capabilities ..." |
| 194 | if ! built_with_use x11-base/xorg-server dri; then |
194 | if ! built_with_use x11-base/xorg-server dri; then |
| 195 | die "You must build x11-base/xorg-server with USE=dri." |
195 | die "You must build x11-base/xorg-server with USE=dri." |
| 196 | fi |
196 | fi |
| 197 | fi |
197 | fi |
| 198 | fi |
198 | fi |
|
|
199 | } |
| 199 | |
200 | |
|
|
201 | x-modular_unpack_source() { |
| 200 | unpack ${A} |
202 | unpack ${A} |
| 201 | cd ${S} |
203 | cd ${S} |
| 202 | |
204 | |
| 203 | if [[ -n ${FONT_OPTIONS} ]]; then |
205 | if [[ -n ${FONT_OPTIONS} ]]; then |
| 204 | einfo "Detected font directory: ${FONT_DIR}" |
206 | einfo "Detected font directory: ${FONT_DIR}" |
| … | |
… | |
| 251 | elibtoolize |
253 | elibtoolize |
| 252 | } |
254 | } |
| 253 | |
255 | |
| 254 | x-modular_src_unpack() { |
256 | x-modular_src_unpack() { |
| 255 | x-modular_specs_check |
257 | x-modular_specs_check |
|
|
258 | x-modular_dri_check |
| 256 | x-modular_unpack_source |
259 | x-modular_unpack_source |
| 257 | x-modular_patch_source |
260 | x-modular_patch_source |
| 258 | x-modular_reconf_source |
261 | x-modular_reconf_source |
| 259 | } |
262 | } |
| 260 | |
263 | |