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

Diff of /eclass/base.eclass

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

Revision 1.36 Revision 1.40
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/base.eclass,v 1.36 2009/01/17 16:56:55 mr_bones_ Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.40 2010/01/03 21:07:32 mr_bones_ Exp $
4 4
5# @ECLASS: base.eclass 5# @ECLASS: base.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Peter Alfredsen <loki_val@gentoo.org> 7# Peter Alfredsen <loki_val@gentoo.org>
8# 8#
67# @USAGE: [ unpack ] [ patch ] [ autopatch ] [ all ] 67# @USAGE: [ unpack ] [ patch ] [ autopatch ] [ all ]
68# @DESCRIPTION: 68# @DESCRIPTION:
69# The base_src_util function is the grunt function for base src_unpack 69# The base_src_util function is the grunt function for base src_unpack
70# and base src_prepare. 70# and base src_prepare.
71base_src_util() { 71base_src_util() {
72 local x
72 73
73 debug-print-function $FUNCNAME "$@" 74 debug-print-function $FUNCNAME "$@"
74 75
75 cd "${WORKDIR}" 76 cd "${WORKDIR}"
76 77
148 else 149 else
149 base_src_work $@ 150 base_src_work $@
150 fi 151 fi
151} 152}
152 153
154# placeholder for future api so eclasses can be migrated now.
155base_src_make() {
156 debug-print-function $FUNCNAME "$@"
157 base_src_work make
158}
159
153# @FUNCTION: base_src_work 160# @FUNCTION: base_src_work
154# @USAGE: [ configure ] [ make ] [ all ] 161# @USAGE: [ configure ] [ make ] [ all ]
155# @DESCRIPTION: 162# @DESCRIPTION:
156# The base_src_work function is the grunt function for base src_configure 163# The base_src_work function is the grunt function for base src_configure
157# and base src_compile. 164# and base src_compile.
164 while [ "$1" ]; do 171 while [ "$1" ]; do
165 172
166 case $1 in 173 case $1 in
167 configure) 174 configure)
168 debug-print-section configure 175 debug-print-section configure
176 if [[ -x ${ECONF_SOURCE:-.}/configure ]]
177 then
169 econf || die "died running econf, $FUNCNAME:configure" 178 econf || die "died running econf, $FUNCNAME:configure"
179 fi
170 ;; 180 ;;
171 make) 181 make)
172 debug-print-section make 182 debug-print-section make
183 if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]
184 then
173 emake || die "died running emake, $FUNCNAME:make" 185 emake || die "died running emake, $FUNCNAME:make"
186 fi
174 ;; 187 ;;
175 all) 188 all)
176 debug-print-section all 189 debug-print-section all
177 base_src_work configure make 190 base_src_work configure make
178 ;; 191 ;;

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20