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

Diff of /eclass/base.eclass

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

Revision 1.35 Revision 1.37
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.35 2008/11/09 15:47:47 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.37 2009/01/18 18:21:08 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#
36# "all" is assumed if EAPI!=2, "unpack" if EAPI=2. 36# "all" is assumed if EAPI!=2, "unpack" if EAPI=2.
37base_src_unpack() { 37base_src_unpack() {
38 38
39 debug-print-function $FUNCNAME "$@" 39 debug-print-function $FUNCNAME "$@"
40 40
41 if [ -z "$1" ] 41 if [ -z "$1" ] ; then
42 then
43 case "${EAPI:-0}" in 42 case "${EAPI:-0}" in
44 2) 43 2)
45 base_src_util unpack 44 base_src_util unpack
46 ;; 45 ;;
47 *) 46 *)
78 while [ "$1" ]; do 77 while [ "$1" ]; do
79 78
80 case $1 in 79 case $1 in
81 unpack) 80 unpack)
82 debug-print-section unpack 81 debug-print-section unpack
82 if [ ! -z "$A" ] ; then
83 unpack ${A} 83 unpack ${A}
84 fi
84 ;; 85 ;;
85 patch) 86 patch)
86 debug-print-section patch 87 debug-print-section patch
87 cd "${S}" 88 cd "${S}"
88 epatch "${FILESDIR}/${P}-gentoo.diff" 89 epatch "${FILESDIR}/${P}-gentoo.diff"
89 ;; 90 ;;
90 autopatch) 91 autopatch)
91 debug-print-section autopatch 92 debug-print-section autopatch
92 debug-print "$FUNCNAME: autopatch: PATCHES=$PATCHES, PATCHES1=$PATCHES1" 93 debug-print "$FUNCNAME: autopatch: PATCHES=$PATCHES, PATCHES1=$PATCHES1"
93 cd "${S}" 94 cd "${S}"
94 if [[ ${#PATCHES[@]} -gt 1 ]]; then 95 if [[ ${#PATCHES[@]} -gt 1 ]] ; then
95 for x in "${PATCHES[@]}"; do 96 for x in "${PATCHES[@]}"; do
96 debug-print "$FUNCNAME: autopatch: patching from ${x}" 97 debug-print "$FUNCNAME: autopatch: patching from ${x}"
97 epatch "${x}" 98 epatch "${x}"
98 done 99 done
99 else 100 else
163 while [ "$1" ]; do 164 while [ "$1" ]; do
164 165
165 case $1 in 166 case $1 in
166 configure) 167 configure)
167 debug-print-section configure 168 debug-print-section configure
169 if [[ -x ${ECONF_SOURCE:-.}/configure ]]
170 then
168 econf || die "died running econf, $FUNCNAME:configure" 171 econf || die "died running econf, $FUNCNAME:configure"
172 fi
169 ;; 173 ;;
170 make) 174 make)
171 debug-print-section make 175 debug-print-section make
176 if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]
177 then
172 emake || die "died running emake, $FUNCNAME:make" 178 emake || die "died running emake, $FUNCNAME:make"
179 fi
173 ;; 180 ;;
174 all) 181 all)
175 debug-print-section all 182 debug-print-section all
176 base_src_work configure make 183 base_src_work configure make
177 ;; 184 ;;

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20