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

Diff of /eclass/base.eclass

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

Revision 1.50 Revision 1.53
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.50 2010/04/12 15:33:03 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.53 2010/05/27 08:09:33 scarabeus Exp $
4 4
5# @ECLASS: base.eclass 5# @ECLASS: base.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# QA Team <qa@gentoo.org> 7# QA Team <qa@gentoo.org>
8# 8#
63} 63}
64 64
65# @FUNCTION: base_src_prepare 65# @FUNCTION: base_src_prepare
66# @DESCRIPTION: 66# @DESCRIPTION:
67# The base src_prepare function, which is exported 67# The base src_prepare function, which is exported
68# EAPI is greater or equal to 2. 68# EAPI is greater or equal to 2. Here the PATCHES array is evaluated.
69base_src_prepare() { 69base_src_prepare() {
70 debug-print-function $FUNCNAME "$@" 70 debug-print-function $FUNCNAME "$@"
71 debug-print "$FUNCNAME: PATCHES=$PATCHES" 71 debug-print "$FUNCNAME: PATCHES=$PATCHES"
72 72
73 local patches_failed=0 73 local patches_failed=0
114} 114}
115 115
116# @FUNCTION: base_src_configure 116# @FUNCTION: base_src_configure
117# @DESCRIPTION: 117# @DESCRIPTION:
118# The base src_configure function, which is exported when 118# The base src_configure function, which is exported when
119# EAPI is greater or equal to 2. Runs basic econf. Here the PATCHES array is 119# EAPI is greater or equal to 2. Runs basic econf.
120# evaluated.
121base_src_configure() { 120base_src_configure() {
122 debug-print-function $FUNCNAME "$@" 121 debug-print-function $FUNCNAME "$@"
123 122
124 # there is no pushd ${S} so we can override its place where to run 123 # there is no pushd ${S} so we can override its place where to run
125 [[ -x ${ECONF_SOURCE:-.}/configure ]] && econf 124 [[ -x ${ECONF_SOURCE:-.}/configure ]] && econf "$@"
126} 125}
127 126
128# @FUNCTION: base_src_compile 127# @FUNCTION: base_src_compile
129# @DESCRIPTION: 128# @DESCRIPTION:
130# The base src_compile function, calls src_configure with 129# The base src_compile function, calls src_configure with
131# EAPI older than 2. 130# EAPI older than 2.
132base_src_compile() { 131base_src_compile() {
133 debug-print-function $FUNCNAME "$@" 132 debug-print-function $FUNCNAME "$@"
134 133
135 has src_configure ${BASE_EXPF} || base_src_configure 134 has src_configure ${BASE_EXPF} || base_src_configure
136 base_src_make $@ 135 base_src_make "$@"
137} 136}
138 137
139# @FUNCTION: base_src_make 138# @FUNCTION: base_src_make
140# @DESCRIPTION: 139# @DESCRIPTION:
141# Actual function that runs emake command. 140# Actual function that runs emake command.
142base_src_make() { 141base_src_make() {
143 debug-print-function $FUNCNAME "$@" 142 debug-print-function $FUNCNAME "$@"
144 143
145 if [[ -f Makefile || -f GNUmakefile || -f makefile ]]; then 144 if [[ -f Makefile || -f GNUmakefile || -f makefile ]]; then
146 emake $@ || die "died running emake, $FUNCNAME:make" 145 emake "$@" || die "died running emake, $FUNCNAME"
147 fi 146 fi
148} 147}
149 148
150# @FUNCTION: base_src_install 149# @FUNCTION: base_src_install
151# @DESCRIPTION: 150# @DESCRIPTION:
153# installs documents and html documents from DOCS and HTML_DOCS 152# installs documents and html documents from DOCS and HTML_DOCS
154# arrays. 153# arrays.
155base_src_install() { 154base_src_install() {
156 debug-print-function $FUNCNAME "$@" 155 debug-print-function $FUNCNAME "$@"
157 156
158 emake DESTDIR="${D}" $@ install || die "died running make install, $FUNCNAME:make" 157 emake DESTDIR="${D}" "$@" install || die "died running make install, $FUNCNAME"
159 base_src_install_docs 158 base_src_install_docs
160} 159}
161 160
162# @FUNCTION: base_src_install_docs 161# @FUNCTION: base_src_install_docs
163# @DESCRIPTION: 162# @DESCRIPTION:

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20