/[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.48 Revision 1.51
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.48 2006/03/21 00:31:11 spyderous Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.51 2006/04/03 02:03:04 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.
25# 25#
26# Pretty much everything else should be automatic. 26# Pretty much everything else should be automatic.
27 27
28EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm 28EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
29 29
30inherit eutils libtool toolchain-funcs flag-o-matic 30inherit eutils libtool toolchain-funcs flag-o-matic autotools
31 31
32# Directory prefix to use for everything 32# Directory prefix to use for everything
33XDIR="/usr" 33XDIR="/usr"
34 34
35# Set up default patchset version(s) if necessary 35# Set up default patchset version(s) if necessary
91 >=sys-devel/m4-1.4" 91 >=sys-devel/m4-1.4"
92fi 92fi
93 93
94# If we're a font package, but not the font.alias one 94# If we're a font package, but not the font.alias one
95if [[ "${PN/#font-}" != "${PN}" ]] \ 95if [[ "${PN/#font-}" != "${PN}" ]] \
96 && [[ "${CATEGORY}" = "media-fonts" ]] \
96 && [[ "${PN}" != "font-alias" ]] \ 97 && [[ "${PN}" != "font-alias" ]] \
97 && [[ "${PN}" != "font-util" ]]; then 98 && [[ "${PN}" != "font-util" ]]; then
98 # Activate font code in the rest of the eclass 99 # Activate font code in the rest of the eclass
99 FONT="yes" 100 FONT="yes"
100 101
218 if [[ "${SNAPSHOT}" = "yes" ]] 219 if [[ "${SNAPSHOT}" = "yes" ]]
219 then 220 then
220 # If possible, generate configure if it doesn't exist 221 # If possible, generate configure if it doesn't exist
221 if [ -f "${S}/configure.ac" ] 222 if [ -f "${S}/configure.ac" ]
222 then 223 then
223 einfo "Running autoreconf..." 224 eautoreconf
224 autoreconf -v --force --install
225 fi 225 fi
226 fi 226 fi
227 227
228} 228}
229 229
230x-modular_src_unpack() { 230x-modular_src_unpack() {
231 if [[ ${PN:0:11} = "xorg-server" ]] || [[ -n "${DRIVER}" ]]; then 231 if [[ ${PN:0:11} = "xorg-server" ]] || [[ -n "${DRIVER}" ]]; then
232 if gcc-specs-now; then 232 if gcc-specs-now; then
233 msg="Do not emerge ${PN} without vanilla gcc specs!" 233 msg="${PN} does not work with hardened gcc specs. Switch to vanilla gcc specs to emerge ${PN}."
234 eerror "$msg" 234 eerror "$msg"
235 die "$msg" 235 die "$msg"
236 fi 236 fi
237 fi 237 fi
238 238

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.20