diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-09-07 18:34:00 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-09-07 18:34:00 +0000 |
commit | a2ff661670c6f8b373f4e4757b826f969af0285e (patch) | |
tree | ddb85906342dc18cf95c250d0c650fd052a2f14c /eclass/vdr-plugin.eclass | |
parent | Version bump. (diff) | |
download | historical-a2ff661670c6f8b373f4e4757b826f969af0285e.tar.gz historical-a2ff661670c6f8b373f4e4757b826f969af0285e.tar.bz2 historical-a2ff661670c6f8b373f4e4757b826f969af0285e.zip |
Added code to warn about a missing call to vdr-plugin_pkg_setup.
Diffstat (limited to 'eclass/vdr-plugin.eclass')
-rw-r--r-- | eclass/vdr-plugin.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass index a990cec3c43b..c7ab431a3419 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.29 2006/08/29 10:33:19 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.30 2006/09/07 18:34:00 zzam Exp $ # # Author: # Matthias Schwarzott <zzam@gentoo.org> @@ -126,6 +126,13 @@ vdr-plugin_pkg_setup() { } vdr-plugin_src_unpack() { + if [[ -z ${VDR_INCLUDE_DIR} ]]; then + eerror "Wrong use of vdr-plugin.eclass." + eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin_pkg_setup." + echo + eerror "Please report this at bugs.gentoo.org." + die "vdr-plugin_pkg_setup not called!" + fi [ -z "$1" ] && vdr-plugin_src_unpack unpack add_local_patch patchmakefile while [ "$1" ]; do |