| 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.53 2006/04/20 23:43:48 spyderous Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.54 2006/04/21 06:58:52 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. |
| … | |
… | |
| 173 | !<=x11-base/xorg-x11-6.9 |
173 | !<=x11-base/xorg-x11-6.9 |
| 174 | >=sys-apps/man-1.6b-r2" |
174 | >=sys-apps/man-1.6b-r2" |
| 175 | # Provides virtual/x11 for temporary use until packages are ported |
175 | # Provides virtual/x11 for temporary use until packages are ported |
| 176 | # x11-base/x11-env" |
176 | # x11-base/x11-env" |
| 177 | |
177 | |
|
|
178 | x-modular_specs_check() { |
|
|
179 | if [[ ${PN:0:11} = "xorg-server" ]] || [[ -n "${DRIVER}" ]]; then |
|
|
180 | if gcc-specs-now; then |
|
|
181 | msg="${PN} does not work with hardened gcc specs. Switch to vanilla gcc specs to emerge ${PN}." |
|
|
182 | eerror "$msg" |
|
|
183 | die "$msg" |
|
|
184 | fi |
|
|
185 | fi |
|
|
186 | } |
|
|
187 | |
| 178 | x-modular_unpack_source() { |
188 | x-modular_unpack_source() { |
| 179 | # (#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 |
| 180 | # support for it |
190 | # support for it |
| 181 | if [[ -n "${DRIVER}" ]]; then |
191 | if [[ -n "${DRIVER}" ]]; then |
| 182 | if has dri ${IUSE} && use dri; then |
192 | if has dri ${IUSE} && use dri; then |
| … | |
… | |
| 234 | then |
244 | then |
| 235 | eautoreconf |
245 | eautoreconf |
| 236 | fi |
246 | fi |
| 237 | fi |
247 | fi |
| 238 | |
248 | |
|
|
249 | # Joshua Baergen - October 23, 2005 |
|
|
250 | # Fix shared lib issues on MIPS, FBSD, etc etc |
|
|
251 | elibtoolize |
| 239 | } |
252 | } |
| 240 | |
253 | |
| 241 | x-modular_src_unpack() { |
254 | x-modular_src_unpack() { |
| 242 | if [[ ${PN:0:11} = "xorg-server" ]] || [[ -n "${DRIVER}" ]]; then |
255 | x-modular_specs_check |
| 243 | if gcc-specs-now; then |
|
|
| 244 | msg="${PN} does not work with hardened gcc specs. Switch to vanilla gcc specs to emerge ${PN}." |
|
|
| 245 | eerror "$msg" |
|
|
| 246 | die "$msg" |
|
|
| 247 | fi |
|
|
| 248 | fi |
|
|
| 249 | |
|
|
| 250 | x-modular_unpack_source |
256 | x-modular_unpack_source |
| 251 | x-modular_patch_source |
257 | x-modular_patch_source |
| 252 | x-modular_reconf_source |
258 | x-modular_reconf_source |
| 253 | |
|
|
| 254 | # Joshua Baergen - October 23, 2005 |
|
|
| 255 | # Fix shared lib issues on MIPS, FBSD, etc etc |
|
|
| 256 | elibtoolize |
|
|
| 257 | } |
259 | } |
| 258 | |
260 | |
| 259 | x-modular_font_configure() { |
261 | x-modular_font_configure() { |
| 260 | if [[ -n "${FONT}" ]]; then |
262 | if [[ -n "${FONT}" ]]; then |
| 261 | # Might be worth adding an option to configure your desired font |
263 | # Might be worth adding an option to configure your desired font |