diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2005-10-28 08:58:19 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2005-10-28 08:58:19 +0000 |
commit | 27a9802e28191dfe7286d77854531b3beb1f4a6a (patch) | |
tree | ca0bc779a88a64946b47c9ff6967528852a17d47 /eclass/vdr-plugin.eclass | |
parent | Version bump. (diff) | |
download | historical-27a9802e28191dfe7286d77854531b3beb1f4a6a.tar.gz historical-27a9802e28191dfe7286d77854531b3beb1f4a6a.tar.bz2 historical-27a9802e28191dfe7286d77854531b3beb1f4a6a.zip |
made src_compile modular
Diffstat (limited to 'eclass/vdr-plugin.eclass')
-rw-r--r-- | eclass/vdr-plugin.eclass | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass index 5a28bd412554..2f38aeb93bbf 100644 --- a/eclass/vdr-plugin.eclass +++ b/eclass/vdr-plugin.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.6 2005/10/22 20:39:21 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.7 2005/10/28 08:58:19 zzam Exp $ # # Author: # Matthias Schwarzott <zzam@gentoo.org> @@ -155,11 +155,23 @@ vdr-plugin_install_source_tree() { } vdr-plugin_src_compile() { - [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_copy_source_tree + [ -z "$1" ] && vdr-plugin_src_compile prepare compile - cd ${S} + while [ "$1" ]; do + + case "$1" in + prepare) + [[ -n "${VDRSOURCE_DIR}" ]] && vdr-plugin_copy_source_tree + ;; + compile) + cd ${S} - emake ${VDRPLUGIN_MAKE_TARGET:-all} || die "emake failed" + emake ${VDRPLUGIN_MAKE_TARGET:-all} || die "emake failed" + ;; + esac + + shift + done } vdr-plugin_src_install() { |