/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

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

Revision 1.177 Revision 1.178
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/eutils.eclass,v 1.177 2005/05/26 15:13:36 carlo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.178 2005/05/26 22:09:26 vapier Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
249 # New ARCH dependant patch naming scheme ... 249 # New ARCH dependant patch naming scheme ...
250 # 250 #
251 # ???_arch_foo.patch 251 # ???_arch_foo.patch
252 # 252 #
253 if [ -f ${x} ] && \ 253 if [ -f ${x} ] && \
254 ([ "${SINGLE_PATCH}" = "yes" -o "${x/_all_}" != "${x}" -o "`eval echo \$\{x/_${ARCH}_\}`" != "${x}" ] || \ 254 ([ "${SINGLE_PATCH}" = "yes" -o "${x/_all_}" != "${x}" -o "${x/_${ARCH}_}" != "${x}" ] || \
255 [ "${EPATCH_FORCE}" = "yes" ]) 255 [ "${EPATCH_FORCE}" = "yes" ])
256 then 256 then
257 local count=0 257 local count=0
258 local popts="${EPATCH_OPTS}" 258 local popts="${EPATCH_OPTS}"
259 local patchname=${x##*/} 259 local patchname=${x##*/}
1450 while ((i--)) ; do 1450 while ((i--)) ; do
1451 ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass" 1451 ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass"
1452 done 1452 done
1453 export EUTILS_ECLASS_PORTAGE_ARCH="${ARCH}" 1453 export EUTILS_ECLASS_PORTAGE_ARCH="${ARCH}"
1454 case ${ARCH} in 1454 case ${ARCH} in
1455 x86) export ARCH="i386";; 1455 x86) export ARCH="i386";;
1456 amd64) export ARCH="x86_64";; 1456 amd64) export ARCH="x86_64";;
1457 hppa) export ARCH="parisc";; 1457 hppa) export ARCH="parisc";;
1458 mips) export ARCH="mips";; 1458 mips) export ARCH="mips";;
1459 sparc) export ARCH="$(tc-arch-kernel)";; # Yeah this is ugly, but it's even WORSE if you don't do this. linux-info.eclass's set_arch_to_kernel is fixed, but won't get used over this one! 1459 sparc) export ARCH="$(tc-arch-kernel)";; # Yeah this is ugly, but it's even WORSE if you don't do this. linux-info.eclass's set_arch_to_kernel is fixed, but won't get used over this one!
1460 *) export ARCH="${ARCH}";; 1460 *) export ARCH="${ARCH}";;
1461 esac 1461 esac
1462} 1462}
1463 1463
1464# set's ARCH back to what portage expects 1464# set's ARCH back to what portage expects
1465set_arch_to_portage() { 1465set_arch_to_portage() {

Legend:
Removed from v.1.177  
changed lines
  Added in v.1.178

  ViewVC Help
Powered by ViewVC 1.1.20