/[gentoo-x86]/eclass/x-modular.eclass
Gentoo

Diff of /eclass/x-modular.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.54 Revision 1.56
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.56 2006/05/14 19:17:09 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.
180 if gcc-specs-now; 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}." 181 msg="${PN} does not work with hardened gcc specs. Switch to vanilla gcc specs to emerge ${PN}."
182 eerror "$msg" 182 eerror "$msg"
183 die "$msg" 183 die "$msg"
184 fi 184 fi
185 fi
186}
187 185
188x-modular_unpack_source() { 186 # (#116698) breaks loading
187 filter-ldflags -Wl,-z,now
188 fi
189}
190
191x-modular_dri_check() {
189 # (#120057) Enabling DRI in drivers requires that the server was built with 192 # (#120057) Enabling DRI in drivers requires that the server was built with
190 # support for it 193 # support for it
191 if [[ -n "${DRIVER}" ]]; then 194 if [[ -n "${DRIVER}" ]]; then
192 if has dri ${IUSE} && use dri; then 195 if has dri ${IUSE} && use dri; then
193 einfo "Checking for direct rendering capabilities ..." 196 einfo "Checking for direct rendering capabilities ..."
194 if ! built_with_use x11-base/xorg-server dri; then 197 if ! built_with_use x11-base/xorg-server dri; then
195 die "You must build x11-base/xorg-server with USE=dri." 198 die "You must build x11-base/xorg-server with USE=dri."
196 fi 199 fi
197 fi 200 fi
198 fi 201 fi
202}
199 203
204x-modular_unpack_source() {
200 unpack ${A} 205 unpack ${A}
201 cd ${S} 206 cd ${S}
202 207
203 if [[ -n ${FONT_OPTIONS} ]]; then 208 if [[ -n ${FONT_OPTIONS} ]]; then
204 einfo "Detected font directory: ${FONT_DIR}" 209 einfo "Detected font directory: ${FONT_DIR}"
251 elibtoolize 256 elibtoolize
252} 257}
253 258
254x-modular_src_unpack() { 259x-modular_src_unpack() {
255 x-modular_specs_check 260 x-modular_specs_check
261 x-modular_dri_check
256 x-modular_unpack_source 262 x-modular_unpack_source
257 x-modular_patch_source 263 x-modular_patch_source
258 x-modular_reconf_source 264 x-modular_reconf_source
259} 265}
260 266

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.56

  ViewVC Help
Powered by ViewVC 1.1.20