/[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.36
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.36 2009/01/17 16:56:55 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#
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

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

  ViewVC Help
Powered by ViewVC 1.1.20