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

Diff of /eclass/eutils.eclass

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

Revision 1.289 Revision 1.290
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.289 2007/09/01 03:24:09 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.290 2007/10/01 13:16:44 vapier Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
1563 [[ -n ${nols} ]] \ 1563 [[ -n ${nols} ]] \
1564 && ewarn "Sorry, but ${PN} does not support the LINGUAs:" ${nols} 1564 && ewarn "Sorry, but ${PN} does not support the LINGUAs:" ${nols}
1565 export LINGUAS=${newls:1} 1565 export LINGUAS=${newls:1}
1566} 1566}
1567 1567
1568# @FUNCTION: set_arch_to_kernel
1569# @DESCRIPTION:
1570# Set the env ARCH to match what the kernel expects.
1571set_arch_to_kernel() {
1572 i=10
1573 while ((i--)) ; do
1574 ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass"
1575 done
1576 export EUTILS_ECLASS_PORTAGE_ARCH="${ARCH}"
1577 case ${ARCH} in
1578 x86) export ARCH="i386";;
1579 amd64) export ARCH="x86_64";;
1580 hppa) export ARCH="parisc";;
1581 mips) export ARCH="mips";;
1582 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!
1583 *) export ARCH="${ARCH}";;
1584 esac
1585}
1586
1587# @FUNCTION: set_arch_to_portage
1588# @DESCRIPTION:
1589# Set the env ARCH to match what portage expects.
1590set_arch_to_portage() {
1591 i=10
1592 while ((i--)) ; do
1593 ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass"
1594 done
1595 export ARCH="${EUTILS_ECLASS_PORTAGE_ARCH}"
1596}
1597
1598# @FUNCTION: preserve_old_lib 1568# @FUNCTION: preserve_old_lib
1599# @USAGE: <libs to preserve> [more libs] 1569# @USAGE: <libs to preserve> [more libs]
1600# @DESCRIPTION: 1570# @DESCRIPTION:
1601# These functions are useful when a lib in your package changes ABI SONAME. 1571# These functions are useful when a lib in your package changes ABI SONAME.
1602# An example might be from libogg.so.0 to libogg.so.1. Removing libogg.so.0 1572# An example might be from libogg.so.0 to libogg.so.1. Removing libogg.so.0

Legend:
Removed from v.1.289  
changed lines
  Added in v.1.290

  ViewVC Help
Powered by ViewVC 1.1.20