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

Contents of /eclass/functions.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue May 21 18:14:08 2002 UTC (15 years, 1 month ago) by danarmak
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
eclass update - removing old eclasses (debug,inherit,functions) for which support is in potage proper
(>=1.8.9_pre32). this breaks support for older portages i.e. profile 1.0_rc6 as warned on themailing
lists 2 weeks ago. the only change to all these ebuilds in the long list is removal of the redundant
". /usr/portage/eclass/inherit.eclass || die" line.

1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author Dan Armak <danarmak@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/eclass/functions.eclass,v 1.9 2002/03/27 22:33:53 danarmak Exp $
5 # This contains everything except things that modify ebuild variables and functions (e.g. $P, src_compile() etc.)
6
7 # Moved into ebuild.sh in portage-1.8.9_pre32. Here for compatibility with rc6 profiles and 1.8.8 portages.
8
9 if [ -z "$COMPAT" ]; then
10
11 einfo "!!! Error: functions.eclass sourced, but compatibility mode not set. This ebuild needs
12 to be updated, please report."
13 exit 1
14
15 else
16
17 # in case someone really wants the old functions.eclass, get this too, it was a part of it once
18 inherit kde-functions
19
20 ECLASS=functions
21
22 # ---------------------
23 # misc helper functions
24 # ---------------------
25
26 # adds all parameters to DEPEND and RDEPEND
27 newdepend() {
28
29 debug-print-function newdepend $*
30 debug-print "newdepend: DEPEND=$DEPEND RDEPEND=$RDEPEND"
31
32 while [ -n "$1" ]; do
33 case $1 in
34 "/autotools")
35 DEPEND="${DEPEND} sys-devel/autoconf sys-devel/automake sys-devel/make"
36 ;;
37 "/c")
38 DEPEND="${DEPEND} sys-devel/gcc virtual/glibc sys-devel/ld.so"
39 RDEPEND="${RDEPEND} virtual/glibc sys-devel/ld.so"
40 ;;
41 *)
42 DEPEND="$DEPEND $1"
43 RDEPEND="$RDEPEND $1"
44 ;;
45 esac
46 shift
47 done
48
49 }
50
51 fi

  ViewVC Help
Powered by ViewVC 1.1.20