/[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.38
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.38 2009/05/17 09:25:55 loki_val 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
164 while [ "$1" ]; do 165 while [ "$1" ]; do
165 166
166 case $1 in 167 case $1 in
167 configure) 168 configure)
168 debug-print-section configure 169 debug-print-section configure
170 if [[ -x ${ECONF_SOURCE:-.}/configure ]]
171 then
169 econf || die "died running econf, $FUNCNAME:configure" 172 econf || die "died running econf, $FUNCNAME:configure"
173 fi
170 ;; 174 ;;
171 make) 175 make)
172 debug-print-section make 176 debug-print-section make
177 if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]
178 then
173 emake || die "died running emake, $FUNCNAME:make" 179 emake || die "died running emake, $FUNCNAME:make"
180 fi
174 ;; 181 ;;
175 all) 182 all)
176 debug-print-section all 183 debug-print-section all
177 base_src_work configure make 184 base_src_work configure make
178 ;; 185 ;;

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

  ViewVC Help
Powered by ViewVC 1.1.20