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

Diff of /eclass/eutils.eclass

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

Revision 1.139 Revision 1.140
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.139 2005/01/10 02:40:00 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.140 2005/01/11 04:24:39 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.
1481# the following functions are useful in kernel module ebuilds, etc. 1481# the following functions are useful in kernel module ebuilds, etc.
1482# for an example see ivtv or drbd ebuilds 1482# for an example see ivtv or drbd ebuilds
1483 1483
1484# set's ARCH to match what the kernel expects 1484# set's ARCH to match what the kernel expects
1485set_arch_to_kernel() { 1485set_arch_to_kernel() {
1486 i=10
1487 while ((i--)) ; do
1488 ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass"
1489 done
1486 export EUTILS_ECLASS_PORTAGE_ARCH="${ARCH}" 1490 export EUTILS_ECLASS_PORTAGE_ARCH="${ARCH}"
1487 case ${ARCH} in 1491 case ${ARCH} in
1488 x86) export ARCH="i386";; 1492 x86) export ARCH="i386";;
1489 amd64) export ARCH="x86_64";; 1493 amd64) export ARCH="x86_64";;
1490 hppa) export ARCH="parisc";; 1494 hppa) export ARCH="parisc";;
1493 esac 1497 esac
1494} 1498}
1495 1499
1496# set's ARCH back to what portage expects 1500# set's ARCH back to what portage expects
1497set_arch_to_portage() { 1501set_arch_to_portage() {
1502 i=10
1503 while ((i--)) ; do
1504 ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass"
1505 done
1498 export ARCH="${EUTILS_ECLASS_PORTAGE_ARCH}" 1506 export ARCH="${EUTILS_ECLASS_PORTAGE_ARCH}"
1499} 1507}
1500 1508
1501# Jeremy Huddleston <eradicator@gentoo.org>: 1509# Jeremy Huddleston <eradicator@gentoo.org>:
1502# preserve_old_lib /path/to/libblah.so.0 1510# preserve_old_lib /path/to/libblah.so.0

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

  ViewVC Help
Powered by ViewVC 1.1.20