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

Diff of /eclass/base.eclass

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

Revision 1.51 Revision 1.52
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.51 2010/05/25 20:37:12 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.52 2010/05/25 21:16:54 reavertm 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#
119# EAPI is greater or equal to 2. Runs basic econf. 119# EAPI is greater or equal to 2. Runs basic econf.
120base_src_configure() { 120base_src_configure() {
121 debug-print-function $FUNCNAME "$@" 121 debug-print-function $FUNCNAME "$@"
122 122
123 # 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
124 [[ -x ${ECONF_SOURCE:-.}/configure ]] && econf $@ 124 [[ -x ${ECONF_SOURCE:-.}/configure ]] && econf "$@"
125} 125}
126 126
127# @FUNCTION: base_src_compile 127# @FUNCTION: base_src_compile
128# @DESCRIPTION: 128# @DESCRIPTION:
129# The base src_compile function, calls src_configure with 129# The base src_compile function, calls src_configure with
130# EAPI older than 2. 130# EAPI older than 2.
131base_src_compile() { 131base_src_compile() {
132 debug-print-function $FUNCNAME "$@" 132 debug-print-function $FUNCNAME "$@"
133 133
134 has src_configure ${BASE_EXPF} || base_src_configure 134 has src_configure ${BASE_EXPF} || base_src_configure
135 base_src_make $@ 135 base_src_make "$@"
136} 136}
137 137
138# @FUNCTION: base_src_make 138# @FUNCTION: base_src_make
139# @DESCRIPTION: 139# @DESCRIPTION:
140# Actual function that runs emake command. 140# Actual function that runs emake command.
141base_src_make() { 141base_src_make() {
142 debug-print-function $FUNCNAME "$@" 142 debug-print-function $FUNCNAME "$@"
143 143
144 if [[ -f Makefile || -f GNUmakefile || -f makefile ]]; then 144 if [[ -f Makefile || -f GNUmakefile || -f makefile ]]; then
145 emake $@ || die "died running emake, $FUNCNAME:make" 145 emake "$@" || die "died running emake, $FUNCNAME:make"
146 fi 146 fi
147} 147}
148 148
149# @FUNCTION: base_src_install 149# @FUNCTION: base_src_install
150# @DESCRIPTION: 150# @DESCRIPTION:
152# installs documents and html documents from DOCS and HTML_DOCS 152# installs documents and html documents from DOCS and HTML_DOCS
153# arrays. 153# arrays.
154base_src_install() { 154base_src_install() {
155 debug-print-function $FUNCNAME "$@" 155 debug-print-function $FUNCNAME "$@"
156 156
157 emake DESTDIR="${D}" $@ install || die "died running make install, $FUNCNAME:make" 157 emake DESTDIR="${D}" "$@" install || die "died running make install, $FUNCNAME:make"
158 base_src_install_docs 158 base_src_install_docs
159} 159}
160 160
161# @FUNCTION: base_src_install_docs 161# @FUNCTION: base_src_install_docs
162# @DESCRIPTION: 162# @DESCRIPTION:

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

  ViewVC Help
Powered by ViewVC 1.1.20